Home
last modified time | relevance | path

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

12345

/src/sys/net/
H A Dif_ethersubr.c144 struct ether_header *eh; in ether_requestencap()
155 eh = (struct ether_header *)req->buf; in ether_requestencap()
192 req->bufsize = sizeof(struct ether_header); in ether_requestencap()
205 struct ether_header *eh = (struct ether_header *)phdr; in ether_resolve_addr()
283 struct ether_header *eh; in ether_output()
369 eh = mtod(m, struct ether_header *); in ether_output()
440 struct ether_header *eh; in ether_set_pcp()
442 eh = mtod(*mp, struct ether_header *); in ether_set_pcp()
483 struct ether_header *eh; in ether_output_frame()
485 eh = mtod(m, struct ether_header *); in ether_output_frame()
[all …]
H A Dbpf_ifnet.c96 struct ether_header *eh; in bpf_ifnet_write()
98 eh = mtod(m, struct ether_header *); in bpf_ifnet_write()
H A Dieee8023ad_lacp.h144 struct ether_header ldu_eh;
170 struct ether_header mdu_eh;
H A Dethernet.h60 struct ether_header { struct
65 _Static_assert(sizeof(struct ether_header) == ETHER_HDR_LEN, argument
/src/stand/libsa/
H A Dether.c55 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 Darp.c74 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 Dip.c201 struct ether_header *eh; in readipv4()
343 ipr->ip_total_size = n + sizeof(*ip) + sizeof(struct ether_header); in readipv4()
353 eh = (struct ether_header *)((uintptr_t)ipr->ip_pkt + 2); in readipv4()
/src/sys/netgraph/
H A Dng_ether.c687 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in ng_ether_rcv_lower()
691 if (m->m_len < sizeof(struct ether_header) in ng_ether_rcv_lower()
692 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_lower()
699 && (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_lower()
704 mtod(m, struct ether_header *)->ether_shost, in ng_ether_rcv_lower()
727 if (m->m_pkthdr.len < sizeof(struct ether_header)) { in ng_ether_rcv_upper()
731 if (m->m_len < sizeof(struct ether_header) && in ng_ether_rcv_upper()
732 (m = m_pullup(m, sizeof(struct ether_header))) == NULL) in ng_ether_rcv_upper()
H A Dng_macfilter.c529 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 Dng_ether_echo.c108 struct ether_header *eh; in ngee_rcvdata()
120 eh = mtod(m, struct ether_header *); in ngee_rcvdata()
/src/sbin/ipf/ipsend/
H A Dsockraw.c69 struct ether_header *eh; in sendip()
72 eh = (struct ether_header *)pkt; in sendip()
/src/sys/net80211/
H A Dieee80211_input.c277 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()
H A Dieee80211_superg.c87 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()
498 struct ether_header eh1, eh2; in ieee80211_amsdu_encap()
517 sizeof(struct ether_header), in ieee80211_amsdu_encap()
825 ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) { in ieee80211_ff_check()
928 if (ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) in ieee80211_amsdu_check()
H A Dieee80211_wds.c232 const struct ether_header *eh = mtod(m, const struct ether_header *); in ieee80211_dwds_mcast()
414 struct ether_header *eh; in wds_input()
631 eh = mtod(m, struct ether_header *); in wds_input()
H A Dieee80211_output.c80 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()
369 (m = m_pullup(m, sizeof(struct ether_header))) == NULL) { in ieee80211_start_pkt()
376 eh = mtod(m, struct ether_header *); in ieee80211_start_pkt()
1188 const struct ether_header *eh = NULL; in ieee80211_classify()
1218 eh = mtod(m, struct ether_header *); in ieee80211_classify()
1271 m_copydata(m, sizeof(struct ether_header) + in ieee80211_classify()
1286 m_copydata(m, sizeof(struct ether_header) + in ieee80211_classify()
1340 #define TO_BE_RECLAIMED (sizeof(struct ether_header) - sizeof(struct llc)) in ieee80211_mbuf_adjust()
[all …]
/src/sys/dev/virtio/network/
H A Dvirtio_net.h390 struct ether_header *eh; in virtio_net_rx_csum()
400 eh = mtod(m, struct ether_header *); in virtio_net_rx_csum()
408 offset = sizeof(struct ether_header); in virtio_net_rx_csum()
436 offset = sizeof(struct ether_header); in virtio_net_tx_offload_ctx()
/src/sys/netgraph/netflow/
H A Dng_netflow.c700 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()
/src/tools/tools/netmap/
H A Dpkt_hash.c285 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()
/src/usr.sbin/rarpd/
H A Drarpd.c114 static void rarp_reply(struct if_info *, struct ether_header *,
413 sizeof(struct ether_header)), in rarp_open()
468 struct ether_header *ep = (struct ether_header *)p; in rarp_check()
641 struct ether_header *ep; in rarp_process()
646 ep = (struct ether_header *)pkt; in rarp_process()
842 rarp_reply(struct if_info *ii, struct ether_header *ep, in_addr_t ipaddr, in rarp_reply()
/src/sys/dev/xen/netback/
H A Dnetback_unit_tests.c2068 const size_t pkt_len = sizeof(struct ether_header) + in xnb_add_mbuf_cksum_arp()
2071 struct ether_header *eh; in xnb_add_mbuf_cksum_arp()
2077 eh = mtod(mbufc, struct ether_header*); in xnb_add_mbuf_cksum_arp()
2140 struct ether_header *eh; in xnb_fill_eh_and_ip()
2143 eh = mtod(m, struct ether_header*); in xnb_fill_eh_and_ip()
2179 const size_t pkt_len = sizeof(struct ether_header) + in xnb_add_mbuf_cksum_icmp()
2182 struct ether_header *eh; in xnb_add_mbuf_cksum_icmp()
2194 eh = mtod(mbufc, struct ether_header*); in xnb_add_mbuf_cksum_icmp()
2245 const size_t pkt_len = sizeof(struct ether_header) + in xnb_add_mbuf_cksum_udp()
2248 struct ether_header *eh; in xnb_add_mbuf_cksum_udp()
[all …]
/src/sys/kern/
H A Duipc_mbufhash.c161 const struct ether_header *eh; in m_ether_tcpip_hash()
169 eh = mtod(m, struct ether_header *); in m_ether_tcpip_hash()
/src/stand/libofw/
H A Dofw_net.c99 struct ether_header *eh; in ofwn_put()
182 struct ether_header *eh = ptr; in ofwn_get()
/src/sbin/dhclient/
H A Dpacket.c95 struct ether_header eh; in assemble_hw_header()
153 struct ether_header eh; in decode_hw_header()
/src/contrib/tcpdump/
H A Dprint-ether.c37 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()
/src/libexec/bootpd/tools/bootptest/
H A Dprint-bootp.c99 struct ether_header *eh; in bootp_print()
103 eh = (struct ether_header *) packetp; in bootp_print()

12345