Home
last modified time | relevance | path

Searched refs:ether_header (Results 1 – 25 of 126) sorted by relevance

123456

/freebsd-12-stable/sys/net/
Dif_ethersubr.c94 CTASSERT(sizeof (struct ether_header) == ETHER_ADDR_LEN * 2 + 2);
148 struct ether_header *eh; in ether_requestencap()
159 eh = (struct ether_header *)req->buf; in ether_requestencap()
196 req->bufsize = sizeof(struct ether_header); in ether_requestencap()
207 struct ether_header *eh; in ether_resolve_addr()
216 eh = (struct ether_header *)phdr; in ether_resolve_addr()
288 struct ether_header *eh; in ether_output()
374 eh = mtod(m, struct ether_header *); in ether_output()
444 struct ether_header *eh; in ether_set_pcp()
446 eh = mtod(*mp, struct ether_header *); in ether_set_pcp()
[all …]
Dieee8023ad_lacp.h146 struct ether_header ldu_eh;
172 struct ether_header mdu_eh;
/freebsd-12-stable/stand/libsa/
Dether.c60 struct ether_header *eh; in sendether()
67 eh = (struct ether_header *)pkt - 1; in sendether()
93 struct ether_header *eh; in readether()
108 eh = (struct ether_header *)((uintptr_t)ptr + ETHER_ALIGN); in readether()
Darp.c79 struct ether_header eh; in arpwhohas()
130 struct ether_header *eh; in arpwhohas()
132 eh = (struct ether_header *)((uintptr_t)pkt + ETHER_ALIGN); in arpwhohas()
Dip.c186 struct ether_header *eh; in readipv4()
325 ipr->ip_total_size += sizeof (struct ether_header); in readipv4()
367 eh = (struct ether_header *)((uintptr_t)ipr->ip_pkt + 2); in readipv4()
/freebsd-12-stable/sys/netgraph/
Dng_ether.c683 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in ng_ether_rcv_lower()
687 if (m->m_len < sizeof(struct ether_header) in ng_ether_rcv_lower()
688 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_lower()
696 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_lower()
701 mtod(m, struct ether_header *)->ether_shost, in ng_ether_rcv_lower()
724 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in ng_ether_rcv_upper()
728 if (m->m_len < sizeof(struct ether_header) && in ng_ether_rcv_upper()
729 (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_upper()
Dng_ether_echo.c110 struct ether_header *eh; in ngee_rcvdata()
122 eh = mtod(m, struct ether_header *); in ngee_rcvdata()
/freebsd-12-stable/sys/net80211/
Dieee80211_input.c278 struct ether_header *eh = mtod(m, struct ether_header *); in ieee80211_deliver_data()
316 struct ether_header *eh; in ieee80211_decap()
343 eh = mtod(m, struct ether_header *); in ieee80211_decap()
370 eh = mtod(m, struct ether_header *); in ieee80211_decap()
382 #define FF_LLC_SIZE (sizeof(struct ether_header) + sizeof(struct llc)) in ieee80211_decap1()
383 struct ether_header *eh; in ieee80211_decap1()
400 eh = mtod(m, struct ether_header *); /* 802.3 header is first */ in ieee80211_decap1()
412 + sizeof(struct ether_header) - sizeof(struct llc); in ieee80211_decap1()
415 sizeof(struct ether_header)); in ieee80211_decap1()
Dieee80211_superg.c89 memcpy(dst, src, sizeof(struct ether_header))
274 #define FF_LLC_SIZE (sizeof(struct ether_header) + sizeof(struct llc)) in ieee80211_ff_decap()
298 sizeof(struct ether_header)); in ieee80211_ff_decap()
366 struct ether_header eh1, eh2; in ieee80211_ff_encap()
498 struct ether_header eh1, eh2; in ieee80211_amsdu_encap()
517 sizeof(struct ether_header), in ieee80211_amsdu_encap()
810 ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) { in ieee80211_ff_check()
913 if (ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) in ieee80211_amsdu_check()
Dieee80211_output.c81 memcpy(dst, src, sizeof(struct ether_header))
350 struct ether_header *eh; in ieee80211_start_pkt()
365 if (m->m_len < sizeof(struct ether_header) && in ieee80211_start_pkt()
366 (m = m_pullup(m, sizeof(struct ether_header))) == NULL) { in ieee80211_start_pkt()
373 eh = mtod(m, struct ether_header *); in ieee80211_start_pkt()
1197 const struct ether_header *eh = NULL; in ieee80211_classify()
1227 eh = mtod(m, struct ether_header *); in ieee80211_classify()
1275 m_copydata(m, sizeof(struct ether_header) + in ieee80211_classify()
1288 m_copydata(m, sizeof(struct ether_header) + in ieee80211_classify()
1342 #define TO_BE_RECLAIMED (sizeof(struct ether_header) - sizeof(struct llc)) in ieee80211_mbuf_adjust()
[all …]
Dieee80211_wds.c239 const struct ether_header *eh = mtod(m, const struct ether_header *); in ieee80211_dwds_mcast()
419 struct ether_header *eh; in wds_input()
636 eh = mtod(m, struct ether_header *); in wds_input()
/freebsd-12-stable/sbin/ipf/ipsend/
Dsockraw.c73 struct ether_header *eh; in sendip()
76 eh = (struct ether_header *)pkt; in sendip()
/freebsd-12-stable/sys/netgraph/netflow/
Dng_netflow.c697 struct ether_header *eh; in ng_netflow_rcvdata()
700 M_CHECK(sizeof(struct ether_header)); in ng_netflow_rcvdata()
701 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
708 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
710 l3_off = sizeof(struct ether_header); in ng_netflow_rcvdata()
720 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata()
722 l3_off = sizeof(struct ether_header); in ng_netflow_rcvdata()
730 sizeof(struct ether_header)); in ng_netflow_rcvdata()
/freebsd-12-stable/sys/netpfil/ipfw/
Dip_fw_pfil.c341 struct ether_header save_eh; in ipfw_check_frame()
342 struct ether_header *eh; in ipfw_check_frame()
369 eh = mtod(m, struct ether_header *); in ipfw_check_frame()
389 if (eh != mtod(m, struct ether_header *)) in ipfw_check_frame()
390 bcopy(&save_eh, mtod(m, struct ether_header *), in ipfw_check_frame()
/freebsd-12-stable/contrib/tcpdump/
Dprint-ether.c95 register const struct ether_header *ep; in ether_hdr_print()
98 ep = (const struct ether_header *)bp; in ether_hdr_print()
137 const struct ether_header *ep; in ether_print()
162 ep = (const struct ether_header *)p; in ether_print()
Dether.h46 struct ether_header { struct
/freebsd-12-stable/tools/tools/netmap/
Dpkt_hash.c286 decode_others_n_hash(const struct ether_header *ethh, uint8_t seed) in decode_others_n_hash()
311 decode_vlan_n_hash(const struct ether_header *ethh, uint8_t hash_split, uint8_t seed) in decode_vlan_n_hash()
342 const struct ether_header *ethh = (const struct ether_header *)buffer; in pkt_hdr_hash()
/freebsd-12-stable/usr.sbin/rarpd/
Drarpd.c124 static void rarp_reply(struct if_info *, struct ether_header *,
423 sizeof(struct ether_header)), in rarp_open()
478 struct ether_header *ep = (struct ether_header *)p; in rarp_check()
651 struct ether_header *ep; in rarp_process()
656 ep = (struct ether_header *)pkt; in rarp_process()
852 rarp_reply(struct if_info *ii, struct ether_header *ep, in_addr_t ipaddr, in rarp_reply()
/freebsd-12-stable/sys/dev/xen/netback/
Dnetback_unit_tests.c2080 const size_t pkt_len = sizeof(struct ether_header) + in xnb_add_mbuf_cksum_arp()
2083 struct ether_header *eh; in xnb_add_mbuf_cksum_arp()
2089 eh = mtod(mbufc, struct ether_header*); in xnb_add_mbuf_cksum_arp()
2152 struct ether_header *eh; in xnb_fill_eh_and_ip()
2155 eh = mtod(m, struct ether_header*); in xnb_fill_eh_and_ip()
2191 const size_t pkt_len = sizeof(struct ether_header) + in xnb_add_mbuf_cksum_icmp()
2194 struct ether_header *eh; in xnb_add_mbuf_cksum_icmp()
2206 eh = mtod(mbufc, struct ether_header*); in xnb_add_mbuf_cksum_icmp()
2257 const size_t pkt_len = sizeof(struct ether_header) + in xnb_add_mbuf_cksum_udp()
2260 struct ether_header *eh; in xnb_add_mbuf_cksum_udp()
[all …]
/freebsd-12-stable/stand/libofw/
Dofw_net.c97 struct ether_header *eh; in ofwn_put()
180 struct ether_header *eh = ptr; in ofwn_get()
/freebsd-12-stable/sys/kern/
Duipc_mbufhash.c163 const struct ether_header *eh; in m_ether_tcpip_hash()
171 eh = mtod(m, struct ether_header *); in m_ether_tcpip_hash()
/freebsd-12-stable/sys/dev/le/
Dam79900.c260 struct ether_header *eh; in am79900_rint()
326 eh = mtod(m, struct ether_header *); in am79900_rint()
619 struct ether_header eh; in am79900_recv_print()
641 struct ether_header eh; in am79900_xmit_print()
Dam7990.c219 struct ether_header *eh; in am7990_rint()
288 eh = mtod(m, struct ether_header *); in am7990_rint()
580 struct ether_header eh; in am7990_recv_print()
603 struct ether_header eh; in am7990_xmit_print()
/freebsd-12-stable/sbin/dhclient/
Dpacket.c97 struct ether_header eh; in assemble_hw_header()
152 struct ether_header eh; in decode_hw_header()
/freebsd-12-stable/sys/dev/ep/
Dif_ep.c750 #define EROUND ((sizeof(struct ether_header) + 3) & ~3) in epread()
751 #define EOFF (EROUND - sizeof(struct ether_header)) in epread()
756 mtod(top, uint16_t *), sizeof(struct ether_header) / 2); in epread()
757 top->m_len = sizeof(struct ether_header); in epread()
758 rx_fifo -= sizeof(struct ether_header); in epread()

123456