ether_header
struct ether_header *eh;
eh = (struct ether_header *)p;
struct ether_header eh;
struct ether_header *eh;
struct ether_header *eh;
eh = (struct ether_header *)data;
if (datalen < sizeof(struct ether_header)) {
if (totlen < ETHERMIN + sizeof(struct ether_header)) {
int pad = ETHERMIN + sizeof(struct ether_header) - totlen;
totlen = ETHERMIN + sizeof(struct ether_header);
if (len <= sizeof(struct ether_header) ||
len > ETHERMTU + sizeof(struct ether_header)) {
if (datalen < 4 + sizeof(struct ether_header)) {
struct ether_header *eh;
struct ether_header *eh = pkt;
struct ether_header *eh;
eh = mtod(m0, struct ether_header *);
ether_sprintf(((struct ether_header *)pkt)->ether_dhost),
ether_sprintf(((struct ether_header *)pkt)->ether_shost),
((struct ether_header *)pkt)->ether_type & 0xFFFF);
ether_sprintf(((struct ether_header *)pkt)->ether_dhost),
ether_sprintf(((struct ether_header *)pkt)->ether_shost),
((struct ether_header *)pkt)->ether_type & 0xFFFF);
struct ether_header *eh;
if (m->m_len < sizeof(struct ether_header)) {
m = m_pullup(m, sizeof(struct ether_header));
eh = mtod(m, struct ether_header *);
if (len > ETHERMTU + sizeof(struct ether_header))
struct ether_header eh;
struct ether_header eh;
if (len > ETHERMTU + sizeof(struct ether_header))
struct ether_header eh;
struct ether_header eh;
struct ether_header ehdr;
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
ALIGN(m->m_data + sizeof(struct ether_header)) -
sizeof(struct ether_header);
pad = ALIGN(sizeof(struct ether_header)) - sizeof(struct ether_header);
sizeof(struct ether_header)) {
bcopy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
thismboff = sizeof(struct ether_header);
thisrboff = sizeof(struct ether_header);
resid -= sizeof(struct ether_header);
struct ether_header *eh = mtod(m, struct ether_header *);
struct ether_header eh;
sizeof(struct ether_header));
ALIGN(m->m_data + sizeof(struct ether_header)) -
sizeof(struct ether_header);
struct ether_header *eh;
eh = mtod(m0, struct ether_header *);
m_copydata(m0, sizeof(struct ether_header),
m0->m_pkthdr.len - sizeof(struct ether_header),
sizeof(struct ether_header)) + 18);
m_copydata(m0, sizeof(struct ether_header),
m0->m_pkthdr.len - sizeof(struct ether_header),
sizeof(struct ether_header)) + 2);
BPFATTACH(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
struct ether_header *eh;
sizeof(struct ether_header)) - sizeof(struct ether_header);
eh = mtod(m, struct ether_header *);
mtod(m, caddr_t) + sizeof(struct ether_header),
sizeof(struct ether_header)) > maxlen) {
sizeof(struct ether_header);
sizeof(struct ether_header);
sizeof(struct ether_header), len)) {
m_copyback(m, sizeof(struct ether_header) -
sc->wi_rxbuf + sizeof(struct ether_header) +
pad = ALIGN(sizeof(struct ether_header)) - sizeof(struct ether_header);
struct ether_header *eh;
if (len <= sizeof(struct ether_header) ||
ETHER_VLAN_ENCAP_LEN + ETHERMTU + sizeof(struct ether_header) :
ETHERMTU + sizeof(struct ether_header))) {
eh = mtod(m, struct ether_header *);
struct ether_header eh;
*pgt_ieee80211_encap(struct pgt_softc *, struct ether_header *,
mtod(m, struct ether_header *)->ether_dhost);
struct ether_header eh;
bcopy(mtod(m, struct ether_header *), &eh,
pgt_ieee80211_encap(struct pgt_softc *sc, struct ether_header *eh,
struct ether_header eh;
struct ether_header *eh;
struct ether_header *eh;
if (len < sizeof(struct ether_header)) {
sizeof(struct ether_header)) - sizeof(struct ether_header);
pad = ALIGN(sizeof(struct ether_header)) - sizeof(struct ether_header);
if (len <= sizeof(struct ether_header) ||
if (len <= sizeof(struct ether_header) ||
ieget(struct ie_softc *sc, struct ether_header *ehp)
struct ether_header eh;
struct mbuf *ieget(struct ie_softc *, struct ether_header *);
static __inline int check_eh(struct ie_softc *, struct ether_header *);
check_eh(struct ie_softc *sc, struct ether_header *eh)
/*AQ2_JUMBO_MTU*/ MCLBYTES + sizeof(struct ether_header));
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
sizeof(struct ether_header);
bcopy(sc->tulip_enaddr, mtod(m, struct ether_header *)->ether_dhost,
bcopy(sc->tulip_enaddr, mtod(m, struct ether_header *)->ether_shost,
mtod(m, struct ether_header *)->ether_type = htons(3);
m->m_len = m->m_pkthdr.len = sizeof(struct ether_header) + 3;
struct ether_header *eh;
struct ether_header *eh;
struct ether_header *eh;
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
hdrlen = sizeof(struct ether_header) + sizeof(struct ip) +
sizeof (struct ether_header)) -
sizeof (struct ether_header);
pad = ALIGN(sizeof(struct ether_header)) - sizeof(struct ether_header);
if (len <= sizeof(struct ether_header) ||
len > ETHERMTU + sizeof(struct ether_header)) {
pad = ALIGN(sizeof(struct ether_header)) - sizeof(struct ether_header);
if (len <= sizeof(struct ether_header) ||
len > ETHERMTU + sizeof(struct ether_header)) {
if (total_len < sizeof(struct ether_header)) {
if (len < sizeof(struct ether_header)) {
if (total_len < sizeof(struct ether_header)) {
if ( pktlen < sizeof(struct ether_header) ) {
if (total_len < sizeof(struct ether_header) ||
if (letoh32(msg->rm_datalen) < sizeof(struct ether_header)) {
sizeof(struct ether_header)));
struct ether_header eh;
struct ether_header eh;
eh = (struct ether_header *)pkt - 1;
struct ether_header *eh;
eh = (struct ether_header *)pkt - 1;
struct ether_header *eh;
bridge_arpfilter(struct brl_node *n, struct ether_header *eh, struct mbuf *m)
bridge_filterrule(struct brl_head *h, struct ether_header *eh, struct mbuf *m)
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh, struct mbuf *m)
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
m_adj(m, sizeof(struct ether_header));
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
struct ether_header *ceh;
struct ether_header *beh;
ceh = mtod(m0, struct ether_header *);
beh = mtod(m, struct ether_header *);
u_int hlen = sizeof(struct ether_header) + sizeof(uint32_t);
struct ether_header *beh, *ceh;
beh = mtod(m, struct ether_header *);
ceh = (struct ether_header *)(itagp + 1);
struct ether_header *eh;
struct ether_header *, struct mbuf *);
int bridge_localbroadcast(struct ifnet *, struct ether_header *,
eh = mtod(m, struct ether_header *);
int bridge_blocknonip(struct ether_header *, struct mbuf *);
void bridge_send_icmp_err(struct ifnet *, struct ether_header *,
struct ether_header *eh, struct mbuf *m)
struct ether_header *, struct mbuf *);
int bridge_ipsec(struct ifnet *, struct ether_header *, int, struct llc *,
bridge_localbroadcast(struct ifnet *ifp, struct ether_header *eh,
bridge_blocknonip(struct ether_header *eh, struct mbuf *m)
bridge_ipsec(struct ifnet *ifp, struct ether_header *eh, int hassnap,
struct ether_header *eh, struct mbuf *m)
bridge_fragment(struct ifnet *brifp, struct ifnet *ifp, struct ether_header *eh,
struct ether_header *eh, struct mbuf *n, int hassnap, struct llc *llc,
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header eh;
struct ether_header *, struct mbuf *);
u_int8_t bridge_filterrule(struct brl_head *, struct ether_header *,
void bridge_fragment(struct ifnet *, struct ifnet *, struct ether_header *,
m = m_pullup(m, sizeof(struct ether_header));
ext->eh = mtod(m0, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
m_adj(m, sizeof(struct ether_header));
struct ether_header *eh = mtod(m0, struct ether_header *);
struct rtentry *rt, struct ether_header *eh)
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header eh;
memcpy(mtod(m, struct ether_header *), &eh, sizeof(eh));
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
if (m->m_pkthdr.len < sizeof(struct ether_header)) {
m = m_pullup(m, sizeof(struct ether_header));
n = m_getptr(m, sizeof(struct ether_header), &off);
struct ether_header *eh;
eh = mtod(m0, struct ether_header *);
if (m->m_len < sizeof(struct ether_header)) {
m = m_pullup(m, sizeof(struct ether_header));
n = m_getptr(m, sizeof(struct ether_header), &off);
if (len + sizeof(struct ether_header) > MCLBYTES)
if (len + sizeof(struct ether_header) > MHLEN) {
m->m_data += sizeof(struct ether_header);
struct ether_header *eh;
eh = (struct ether_header *)&dst.sa_data;
sc->sc_sppp.pp_if.if_hdrlen = sizeof(struct ether_header) + PPPOE_HEADERLEN;
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
memcpy(shost, mtod(m, struct ether_header*)->ether_shost, ETHER_ADDR_LEN);
m_adj(m, sizeof(struct ether_header));
struct ether_header *eh;
eh = (struct ether_header*)&dst.sa_data;
const struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh, copy;
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
const struct ether_header *eh;
eh = mtod(m, struct ether_header *);
const struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh, copy;
eh = mtod(m, struct ether_header *);
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header eh;
if (m0->m_pkthdr.len < (sizeof(struct ether_header) + sizeof(pppoe)))
m_copydata(m0, sizeof(struct ether_header),
m_copydata(m0, 0, sizeof(struct ether_header), &eh);
((struct ether_header *)session->peer.sa.sa_data)->ether_dhost,
KASSERT(m0->m_pkthdr.len >= (sizeof(struct ether_header) +
m_copydata(m0, sizeof(struct ether_header),
hlen = sizeof(struct ether_header) + sizeof(struct pipex_pppoe_header);
M_PREPEND(m0, ETHER_ALIGN + sizeof(struct ether_header), M_NOWAIT);
struct ether_header *eh;
eh = mtod(m0, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
m_copydata(m, sizeof(struct ether_header),
struct ether_header ldu_eh;
struct ether_header mdu_eh;
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header eh;
struct ether_header *eh = mtod(m, struct ether_header *);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header eh;
struct ether_header eh;
if (m->m_len < sizeof(struct ether_header)) {
m = m_pullup(m, sizeof(struct ether_header));
memcpy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
m_adj(m, sizeof(struct ether_header) - LLC_SNAPFRAMELEN);
struct ether_header *eh;
eh = mtod(m, struct ether_header *);
struct ether_header *eh;
M_PREPEND(m, sizeof(struct ether_header), M_DONTWAIT);
eh = mtod(m, struct ether_header *);
len = m->m_len - sizeof(struct ether_header);
struct ether_header *eh;
eh = (struct ether_header *)sa.sa_data;
struct ether_header *eh;
eh = (struct ether_header *)sa.sa_data;
struct ether_header *eh;
eh = (struct ether_header *)sa.sa_data;
struct rtentry *, struct ether_header *);
struct ether_header *eh;
struct ether_header *eh = mtod(m, struct ether_header *);
struct ether_header hdr;
struct ether_header eh;
struct ether_header eh;
struct ether_header eh;
rmlen = sizeof(struct ether_header) + sizeof(struct ip6_hdr) +
struct ether_header eh;
struct ether_header *ether;
ether = (struct ether_header *)(buf + bufix);
return sizeof(struct ether_header);
struct ether_header x_hdr;
offset = ((int)s_offset(struct ether_header *, ether_type))/sizeof(u_short);
struct ether_header *eh;
eh = (struct ether_header *)sa->sa_data;
struct ether_header ehdr;
struct ether_header *ether;
ether = (struct ether_header *)(pkt + bpf->bh_hdrlen);
off = bpf->bh_hdrlen + sizeof(struct ether_header);
struct ether_header ether;
iov[0].iov_len = sizeof(struct ether_header);
sizeof(struct ether_header)),
struct ether_header *ep = (struct ether_header *) p;
struct ether_header *ep;
ep = (struct ether_header *) pkt;
rarp_reply(struct if_info *ii, struct if_addr *ia, struct ether_header *ep,
struct ether_header *, u_int32_t, struct hostent *);
const struct ether_header *eh;
eh = (struct ether_header *)packetp;
const struct ether_header *eh;
eh = (struct ether_header *)packetp;
struct ether_header *ep;
if (caplen < sizeof(struct ether_header)) {
length -= sizeof(struct ether_header);
caplen -= sizeof(struct ether_header);
ep = (struct ether_header *)p;
p += sizeof(struct ether_header);
const struct ether_header *ep;
ep = (const struct ether_header *)bp;
eh = (struct ether_header *)pbuf;
if (plen < sizeof(struct ether_header)) {
etype = EXTRACT_16BITS(pbuf + offsetof(struct ether_header, ether_type));
pbuf += sizeof(struct ether_header);
plen -= sizeof(struct ether_header);
len -= sizeof(struct ether_header);
struct ether_header *eh;
struct ether_header ehdr;
struct ether_header *ep;
if (caplen < sizeof(struct ether_header) + NULL_HDRLEN) {
length -= sizeof(struct ether_header);
caplen -= sizeof(struct ether_header);
ep = (struct ether_header *)(p + NULL_HDRLEN);
p += NULL_HDRLEN + sizeof(struct ether_header);
packetp += sizeof(struct ether_header);
struct ether_header eh;
struct ether_header *eh;
eh = (struct ether_header *)(buf + offset);
struct ether_header *eh = NULL;
eh = (struct ether_header *)(payload);
struct ether_header *eh;
eh = (struct ether_header *)iov->iov_base;