| /freebsd-14.2/sys/net/ |
| H A D | if_ethersubr.c | 152 struct ether_header *eh; in ether_requestencap() 163 eh = (struct ether_header *)req->buf; in ether_requestencap() 213 struct ether_header *eh = (struct ether_header *)phdr; in ether_resolve_addr() 291 struct ether_header *eh; in ether_output() 377 eh = mtod(m, struct ether_header *); in ether_output() 448 struct ether_header *eh; in ether_set_pcp() 491 struct ether_header *eh; in ether_output_frame() 525 struct ether_header *eh; in ether_input_internal() 548 eh = mtod(m, struct ether_header *); in ether_input_internal() 873 struct ether_header *eh; in ether_demux() [all …]
|
| H A D | ieee8023ad_lacp.h | 144 struct ether_header ldu_eh; 170 struct ether_header mdu_eh;
|
| /freebsd-14.2/stand/libsa/ |
| H A D | ether.c | 55 struct ether_header *eh; in sendether() 62 eh = (struct ether_header *)pkt - 1; in sendether() 88 struct ether_header *eh; in readether() 103 eh = (struct ether_header *)((uintptr_t)ptr + ETHER_ALIGN); in readether()
|
| H A D | arp.c | 74 struct ether_header eh; in arpwhohas() 125 struct ether_header *eh; in arpwhohas() 127 eh = (struct ether_header *)((uintptr_t)pkt + ETHER_ALIGN); in arpwhohas()
|
| H A D | ip.c | 183 struct ether_header *eh; in readipv4() 322 ipr->ip_total_size += sizeof (struct ether_header); in readipv4() 364 eh = (struct ether_header *)((uintptr_t)ipr->ip_pkt + 2); in readipv4()
|
| /freebsd-14.2/sbin/ipf/ipsend/ |
| H A D | sockraw.c | 72 struct ether_header *eh; in sendip() 75 eh = (struct ether_header *)pkt; in sendip()
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_macfilter.c | 529 struct ether_header *ether_header = mtod(m, struct ether_header *); in macfilter_ether_output() local 530 u_char *ether = ether_header->ether_dhost; in macfilter_ether_output() 570 struct ether_header *ether_header = mtod(m, struct ether_header *); in macfilter_ether_input() local 571 u_char *ether = ether_header->ether_shost; in macfilter_ether_input()
|
| H A D | ng_ether.c | 683 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() 695 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_lower() 700 mtod(m, struct ether_header *)->ether_shost, in ng_ether_rcv_lower() 723 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in ng_ether_rcv_upper() 727 if (m->m_len < sizeof(struct ether_header) && in ng_ether_rcv_upper() 728 (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_upper()
|
| H A D | ng_ether_echo.c | 108 struct ether_header *eh; in ngee_rcvdata() 120 eh = mtod(m, struct ether_header *); in ngee_rcvdata()
|
| H A D | ng_nat.c | 787 struct ether_header *eh; in ng_nat_rcvdata() 789 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in ng_nat_rcvdata() 793 eh = mtod(m, struct ether_header *); in ng_nat_rcvdata() 796 ipofs = sizeof(struct ether_header); in ng_nat_rcvdata()
|
| /freebsd-14.2/sys/net80211/ |
| H A D | ieee80211_input.c | 278 struct ether_header *eh = mtod(m, struct ether_header *); in ieee80211_deliver_data() 318 struct ether_header *eh; in ieee80211_decap() 345 eh = mtod(m, struct ether_header *); in ieee80211_decap() 372 eh = mtod(m, struct ether_header *); in ieee80211_decap() 384 #define FF_LLC_SIZE (sizeof(struct ether_header) + sizeof(struct llc)) in ieee80211_decap1() 385 struct ether_header *eh; in ieee80211_decap1() 402 eh = mtod(m, struct ether_header *); /* 802.3 header is first */ in ieee80211_decap1() 414 + sizeof(struct ether_header) - sizeof(struct llc); in ieee80211_decap1() 417 sizeof(struct ether_header)); in ieee80211_decap1()
|
| H A D | ieee80211_superg.c | 87 memcpy(dst, src, sizeof(struct ether_header)) 273 #define FF_LLC_SIZE (sizeof(struct ether_header) + sizeof(struct llc)) in ieee80211_ff_decap() 297 sizeof(struct ether_header)); in ieee80211_ff_decap() 365 struct ether_header eh1, eh2; in ieee80211_ff_encap() 497 struct ether_header eh1, eh2; in ieee80211_amsdu_encap() 516 sizeof(struct ether_header), in ieee80211_amsdu_encap() 808 ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) { in ieee80211_ff_check() 911 if (ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) in ieee80211_amsdu_check()
|
| H A D | ieee80211_output.c | 80 memcpy(dst, src, sizeof(struct ether_header)) 353 struct ether_header *eh; in ieee80211_start_pkt() 368 if (m->m_len < sizeof(struct ether_header) && in ieee80211_start_pkt() 376 eh = mtod(m, struct ether_header *); in ieee80211_start_pkt() 1201 const struct ether_header *eh = NULL; in ieee80211_classify() 1231 eh = mtod(m, struct ether_header *); in ieee80211_classify() 1413 n->m_len += sizeof(struct ether_header); in ieee80211_mbuf_adjust() 1414 m->m_len -= sizeof(struct ether_header); in ieee80211_mbuf_adjust() 1415 m->m_data += sizeof(struct ether_header); in ieee80211_mbuf_adjust() 1482 struct ether_header eh; in ieee80211_encap() [all …]
|
| H A D | ieee80211_wds.c | 237 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-14.2/sys/dev/virtio/network/ |
| H A D | virtio_net.h | 382 struct ether_header *eh; in virtio_net_rx_csum() 392 eh = mtod(m, struct ether_header *); in virtio_net_rx_csum() 400 offset = sizeof(struct ether_header); in virtio_net_rx_csum() 428 offset = sizeof(struct ether_header); in virtio_net_tx_offload_ctx()
|
| /freebsd-14.2/sys/netgraph/netflow/ |
| H A D | ng_netflow.c | 700 struct ether_header *eh; in ng_netflow_rcvdata() 703 M_CHECK(sizeof(struct ether_header)); in ng_netflow_rcvdata() 704 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata() 712 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata() 714 l3_off = sizeof(struct ether_header); in ng_netflow_rcvdata() 725 eh = mtod(m, struct ether_header *); in ng_netflow_rcvdata() 727 l3_off = sizeof(struct ether_header); in ng_netflow_rcvdata() 735 sizeof(struct ether_header)); in ng_netflow_rcvdata()
|
| /freebsd-14.2/tools/tools/netmap/ |
| H A D | pkt_hash.c | 285 decode_others_n_hash(const struct ether_header *ethh, uint8_t seed) in decode_others_n_hash() 310 decode_vlan_n_hash(const struct ether_header *ethh, uint8_t hash_split, uint8_t seed) in decode_vlan_n_hash() 341 const struct ether_header *ethh = (const struct ether_header *)buffer; in pkt_hdr_hash()
|
| /freebsd-14.2/usr.sbin/rarpd/ |
| H A D | rarpd.c | 122 static void rarp_reply(struct if_info *, struct ether_header *, 421 sizeof(struct ether_header)), in rarp_open() 476 struct ether_header *ep = (struct ether_header *)p; in rarp_check() 649 struct ether_header *ep; in rarp_process() 654 ep = (struct ether_header *)pkt; in rarp_process() 850 rarp_reply(struct if_info *ii, struct ether_header *ep, in_addr_t ipaddr, in rarp_reply()
|
| /freebsd-14.2/sys/dev/xen/netback/ |
| H A D | netback_unit_tests.c | 2070 struct ether_header *eh; in xnb_add_mbuf_cksum_arp() 2076 eh = mtod(mbufc, struct ether_header*); in xnb_add_mbuf_cksum_arp() 2139 struct ether_header *eh; in xnb_fill_eh_and_ip() 2142 eh = mtod(m, struct ether_header*); in xnb_fill_eh_and_ip() 2181 struct ether_header *eh; in xnb_add_mbuf_cksum_icmp() 2193 eh = mtod(mbufc, struct ether_header*); in xnb_add_mbuf_cksum_icmp() 2247 struct ether_header *eh; in xnb_add_mbuf_cksum_udp() 2299 struct ether_header *eh; in xnb_fill_tcp() 2306 eh = mtod(m, struct ether_header*); in xnb_fill_tcp() 2352 struct ether_header *eh; in xnb_add_mbuf_cksum_tcp() [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | uipc_mbufhash.c | 161 const struct ether_header *eh; in m_ether_tcpip_hash() 169 eh = mtod(m, struct ether_header *); in m_ether_tcpip_hash()
|
| /freebsd-14.2/sys/dev/le/ |
| H A D | am79900.c | 258 struct ether_header *eh; in am79900_rint() 324 eh = mtod(m, struct ether_header *); in am79900_rint() 617 struct ether_header eh; in am79900_recv_print() 639 struct ether_header eh; in am79900_xmit_print()
|
| H A D | am7990.c | 217 struct ether_header *eh; in am7990_rint() 286 eh = mtod(m, struct ether_header *); in am7990_rint() 578 struct ether_header eh; in am7990_recv_print() 601 struct ether_header eh; in am7990_xmit_print()
|
| /freebsd-14.2/sbin/dhclient/ |
| H A D | packet.c | 95 struct ether_header eh; in assemble_hw_header() 150 struct ether_header eh; in decode_hw_header()
|
| /freebsd-14.2/stand/libofw/ |
| H A D | ofw_net.c | 99 struct ether_header *eh; in ofwn_put() 182 struct ether_header *eh = ptr; in ofwn_get()
|
| /freebsd-14.2/contrib/tcpdump/ |
| H A D | print-ether.c | 37 struct ether_header { struct 143 const struct ether_header *ehp; in ether_common_print() 170 ehp = (const struct ether_header *)p; in ether_common_print()
|