Searched refs:ether_header (Results 1 - 25 of 128) sorted by relevance

123456

/freebsd-9.3-release/contrib/tcpdump/
H A Dether.h47 struct ether_header { struct
55 * compilers may pad "struct ether_header" to a multiple of 4 bytes,
56 * for example, so "sizeof (struct ether_header)" may not give the right
H A Dprint-rrcp.c91 register const struct ether_header *ep;
95 ep = (const struct ether_header *)cp;
H A Dprint-ether.c97 register const struct ether_header *ep;
100 ep = (const struct ether_header *)bp;
135 struct ether_header *ep;
154 ep = (struct ether_header *)p;
H A Dprint-ipfc.c84 struct ether_header ehdr;
/freebsd-9.3-release/lib/libstand/
H A Dether.c65 struct ether_header *eh;
72 eh = (struct ether_header *)pkt - 1;
101 struct ether_header *eh;
108 eh = (struct ether_header *)pkt - 1;
H A Darp.c80 struct ether_header eh;
87 struct ether_header eh;
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Dsirix.c67 struct ether_header *eh = (struct ether_header *)pkt;
H A Dsockraw.c72 struct ether_header *eh;
75 eh = (struct ether_header *)pkt;
/freebsd-9.3-release/sys/netgraph/
H A Dng_ether_echo.c110 struct ether_header *eh;
122 eh = mtod(m, struct ether_header *);
H A Dng_ether.c686 if (m->m_pkthdr.len < sizeof(struct ether_header)) {
690 if (m->m_len < sizeof(struct ether_header)
691 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL)
699 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL)
704 mtod(m, struct ether_header *)->ether_shost,
727 if (m->m_pkthdr.len < sizeof(struct ether_header)) {
731 if (m->m_len < sizeof(struct ether_header) &&
732 (m = m_pullup(m, sizeof(struct ether_header))) == NULL)
H A Dng_pppoe.h216 struct ether_header eh;
/freebsd-9.3-release/sys/net/
H A Dif_ethersubr.c86 int (*ef_inputp)(struct ifnet*, struct ether_header *eh, struct mbuf *m);
105 CTASSERT(sizeof (struct ether_header) == ETHER_ADDR_LEN * 2 + 2);
167 struct ether_header *eh;
291 eh = (struct ether_header *)dst->sa_data;
297 eh = (struct ether_header *)dst->sa_data;
327 eh = mtod(m, struct ether_header *);
459 struct ether_header *eh;
460 struct ether_header save_eh;
495 eh = mtod(m, struct ether_header *);
517 if (eh != mtod(m, struct ether_header *))
[all...]
H A Dif_ef.c103 extern int (*ef_inputp)(struct ifnet*, struct ether_header *eh, struct mbuf *m);
115 static int ef_input(struct ifnet*, struct ether_header *, struct mbuf *);
237 ef_inputEII(struct mbuf *m, struct ether_header *eh, u_short ether_type)
266 ef_inputSNAP(struct mbuf *m, struct ether_header *eh, struct llc* l,
286 ef_input8022(struct mbuf *m, struct ether_header *eh, struct llc* l,
309 ef_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
H A Dieee8023ad_lacp.h143 struct ether_header ldu_eh;
169 struct ether_header mdu_eh;
/freebsd-9.3-release/sys/boot/ofw/libofw/
H A Dofw_net.c97 struct ether_header *eh;
166 struct ether_header *eh = pkt;
/freebsd-9.3-release/sys/net80211/
H A Dieee80211_superg.c84 memcpy(dst, src, sizeof(struct ether_header))
247 #define FF_LLC_SIZE (sizeof(struct ether_header) + sizeof(struct llc))
272 sizeof(struct ether_header));
339 const struct ether_header *eh)
345 m_adj(m, sizeof(struct ether_header) - sizeof(struct llc));
355 M_PREPEND(m, sizeof(struct ether_header), M_DONTWAIT);
358 "%s: no space for ether_header\n", __func__);
363 mtod(m, struct ether_header *)->ether_type = htons(payload);
378 struct ether_header eh1, eh2;
397 sizeof(struct ether_header),
[all...]
H A Dieee80211_input.c249 struct ether_header *eh = mtod(m, struct ether_header *);
282 struct ether_header *eh;
307 eh = mtod(m, struct ether_header *);
334 eh = mtod(m, struct ether_header *);
346 #define FF_LLC_SIZE (sizeof(struct ether_header) + sizeof(struct llc))
347 struct ether_header *eh;
360 eh = mtod(m, struct ether_header *); /* 802.3 header is first */
363 + sizeof(struct ether_header) - sizeof(struct llc);
366 sizeof(struct ether_header));
[all...]
/freebsd-9.3-release/sys/dev/snc/
H A Ddp83932.c137 #define SNC_SHOWTXHDR 0x01 /* show tx ether_header */
138 #define SNC_SHOWRXHDR 0x02 /* show rx ether_header */
574 if (totlen < ETHERMIN + sizeof(struct ether_header)) {
575 int pad = ETHERMIN + sizeof(struct ether_header) - totlen;
577 totlen = ETHERMIN + sizeof(struct ether_header);
914 struct ether_header eh;
983 * Do not trunc ether_header length.
1062 struct ether_header *et;
1065 if (len <= sizeof(struct ether_header) ||
1066 len > ETHERMTU + sizeof(struct ether_header)) {
[all...]
/freebsd-9.3-release/sys/netatalk/
H A Daarp.c186 struct ether_header *eh;
226 eh = (struct ether_header *)sa.sa_data;
366 struct ether_header *eh;
520 eh = (struct ether_header *)sa.sa_data;
609 struct ether_header *eh;
669 eh = (struct ether_header *)sa.sa_data;
/freebsd-9.3-release/contrib/ipfilter/ipsd/
H A Dsdlpi.c204 *fwp++ = ENF_PUSHWORD + sizeof(struct ether_header)/sizeof(short)+4;
209 *fwp++ = ENF_PUSHWORD + sizeof(struct ether_header)/sizeof(short)+4;
H A Dsnit.c142 *fwp++ = ENF_PUSHWORD + sizeof(struct ether_header)/sizeof(short)+4;
147 *fwp++ = ENF_PUSHWORD + sizeof(struct ether_header)/sizeof(short)+4;
/freebsd-9.3-release/libexec/bootpd/tools/bootptest/
H A Dprint-bootp.c103 register struct ether_header *eh;
107 eh = (struct ether_header *) packetp;
/freebsd-9.3-release/sbin/dhclient/
H A Dpacket.c100 struct ether_header eh;
169 struct ether_header eh;
/freebsd-9.3-release/sys/boot/powerpc/ps3/
H A Dps3net.c114 struct ether_header *eh;
198 struct ether_header *eh;
/freebsd-9.3-release/sys/netgraph/netflow/
H A Dng_netflow.c682 struct ether_header *eh;
685 M_CHECK(sizeof(struct ether_header));
686 eh = mtod(m, struct ether_header *);
693 eh = mtod(m, struct ether_header *);
695 l3_off = sizeof(struct ether_header);
704 eh = mtod(m, struct ether_header *);
706 l3_off = sizeof(struct ether_header);
714 sizeof(struct ether_header));

Completed in 163 milliseconds

123456