Home
last modified time | relevance | path

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

/xnu-12377.81.4/bsd/net/
H A Dether_if_module.c371 struct ether_header * eh_p; in ether_remove_vlan_encapsulation()
373 struct ether_header new_eh; in ether_remove_vlan_encapsulation()
413 eh_p = (struct ether_header *)(void *) in ether_remove_vlan_encapsulation()
451 struct ether_header * __single eh = (struct ether_header *)(void *)frame_header; in ether_demux()
637 struct ether_header *eh; in ether_frameout_extended()
687 eh = mtod(*m, struct ether_header *); in ether_frameout_extended()
H A Dether_inet_pr_module.c185 struct ether_header *eh __single = mbuf_pkthdr_header(m); in ether_inet_input()
244 const struct ether_header *eh; in ether_inet_pre_output()
275 eh = (const struct ether_header *)__DECONST(void *, dst_netaddr->sa_data); in ether_inet_pre_output()
421 struct ether_header *eh; in ether_inet_arp()
462 eh = mtod(m, struct ether_header *); in ether_inet_arp()
H A Dif_bridge.c658 struct ether_header *, mblist, bool);
1223 static void brlog_ether_header(struct ether_header *);
1415 brlog_ether_header(struct ether_header *eh) in brlog_ether_header()
1792 error = bpf_attach(ifp, DLT_EN10MB, sizeof(struct ether_header), in bridge_clone_create()
2401 struct ether_header * eh_p; in bridge_iff_input()
2426 brlog_ether_header((struct ether_header *) in bridge_iff_input()
2439 if (mbuf_pkthdr_len(m) < sizeof(struct ether_header)) { in bridge_iff_input()
2442 mbuf_pkthdr_len(m), sizeof(struct ether_header)); in bridge_iff_input()
2445 if (mbuf_len(m) < sizeof(struct ether_header)) { in bridge_iff_input()
2446 error = mbuf_pullup(data, sizeof(struct ether_header)); in bridge_iff_input()
[all …]
H A Dether_inet6_pr_module.c114 struct ether_header *eh = (struct ether_header *)(void *)header; in ether_inet6_input()
H A Detherdefs.h71 typedef struct ether_header ether_header_t;
H A Dif_bond.c551 size = length + sizeof(struct ether_header); in packet_buffer_allocate()
574 return m_mtod_current(buf) + sizeof(struct ether_header); in packet_buffer_byteptr()
1046 get_bpf_header(mbuf_t m, struct ether_header * eh_p, in get_bpf_header()
1053 header = (struct ether_header *__bidi_indexable)eh_p; in get_bpf_header()
1060 offsetof(struct ether_header, ether_type)); /* dst+src ether */ in get_bpf_header()
1075 bond_bpf_tap_common(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p, in bond_bpf_tap_common()
1087 bond_bpf_tap_in(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in bond_bpf_tap_in()
1093 bond_bpf_tap_out(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in bond_bpf_tap_out()
1258 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in bond_clone_create()
1329 ether_header_hash(struct ether_header * eh_p) in ether_header_hash()
[all …]
H A Dethernet.h91 typedef struct ether_header { struct
H A Dbpf.c331 bpf_set_bcast_mcast(mbuf_t m, struct ether_header * eh) in bpf_set_bcast_mcast()
384 hlen = sizeof(struct ether_header); in bpf_movein()
511 struct ether_header * eh; in bpf_movein()
513 eh = (struct ether_header *)(void *)sockp->sa_data; in bpf_movein()
536 struct ether_header *eh; in bpf_movein()
538 eh = mtod(m, struct ether_header *); in bpf_movein()
3913 uint32_t ethlen = sizeof(struct ether_header); in get_ether_trunc_len()
3918 struct ether_header eh = {}; in get_ether_trunc_len()
3919 err = bpf_copydata(pkt, off, sizeof(struct ether_header), &eh); in get_ether_trunc_len()
3929 ethlen += get_ip_trunc_len(pkt, off + sizeof(struct ether_header), in get_ether_trunc_len()
[all …]
H A Dbridgestp.c298 struct ether_header *eh; in bstp_transmit_tcn()
319 eh = mtod(m, struct ether_header *); in bstp_transmit_tcn()
416 struct ether_header *eh; in bstp_send_bpdu()
431 eh = mtod(m, struct ether_header *); in bstp_send_bpdu()
549 struct ether_header *eh; in bstp_input()
560 eh = mtod(m, struct ether_header *); in bstp_input()
H A Dif_fake.c635 get_bpf_header(mbuf_t m, struct ether_header * eh_p, in get_bpf_header()
642 header = (struct ether_header *__bidi_indexable)eh_p; in get_bpf_header()
649 offsetof(struct ether_header, ether_type)); /* dst+src ether */ in get_bpf_header()
664 fake_bpf_tap_common(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p, in fake_bpf_tap_common()
676 fake_bpf_tap_in(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in fake_bpf_tap_in()
683 fake_bpf_tap_out(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in fake_bpf_tap_out()
3459 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in feth_ifnet_set_attrs()
3717 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in feth_clone_create()
H A Dif_vlan.c957 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in vlan_clone_create()
1130 struct ether_header * eh_p; in vlan_input_packet_list()
1136 eh_p = (struct ether_header *)scan->m_pkthdr.pkt_hdr; in vlan_input_packet_list()
H A Ddlil.h148 struct ether_header;
H A Ddlil.c3016 struct ether_header *eh; in ifnet_enqueue_single()
3020 if (__improbable(len < sizeof(struct ether_header))) { in ifnet_enqueue_single()
3023 sizeof(struct ether_header))) == NULL) { in ifnet_enqueue_single()
3027 eh = mtod(p->cp_mbuf, struct ether_header *); in ifnet_enqueue_single()
3030 hlen = sizeof(struct ether_header) + in ifnet_enqueue_single()
3038 hlen = sizeof(struct ether_header) + in ifnet_enqueue_single()
3055 eh = mtod(p->cp_mbuf, struct ether_header *); in ifnet_enqueue_single()
3110 struct ether_header *eh; in ifnet_enqueue_single()
3115 if (__improbable(pktlen < sizeof(struct ether_header))) { in ifnet_enqueue_single()
3120 eh = (struct ether_header *)(void *)baddr; in ifnet_enqueue_single()
[all …]
H A Ddlil_input.c888 struct ether_header eh; in dlil_input_packet_list_common()
889 struct ether_header *ehp = NULL; in dlil_input_packet_list_common()
892 ehp = (struct ether_header *)(void *)frame_header; in dlil_input_packet_list_common()
H A Dif_headless.c1089 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in headless_ifnet_set_attrs()
1204 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in headless_clone_create()
H A Dpfvar.h1444 struct ether_header *eh;
2286 struct ether_header *, struct ip_fw_args *);
2290 struct ether_header *, struct ip_fw_args *);
H A Dif_redirect.c928 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in redirect_netif_prepare()
1282 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in redirect_clone_create()
H A Dpf.c235 u_int16_t, struct ether_header *, struct ifnet *);
332 static int pf_test6(int, struct ifnet *, pbuf_t **, struct ether_header *,
336 struct ether_header *, struct ip_fw_args *);
2671 u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp) in pf_send_tcp()
9692 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test_mbuf()
9715 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test()
10290 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test6_mbuf()
10313 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test6()
/xnu-12377.81.4/bsd/netinet/
H A Dip_flowid.h95 struct ether_header *fwa_eh; /* for bridged packets */
H A Dip_compat.h708 typedef struct ether_header ether_header_t;
/xnu-12377.81.4/tests/skywalk/
H A Dskt_netifdirect.c99 (sizeof(struct ether_header) + sizeof(struct ip6_hdr) + \
195 struct ether_header eth_hdr; in skt_netif_ipv6_udp_frame_populate()
260 struct ether_header *eth_hdr; in skt_netif_ipv6_udp_frame_process()
272 eth_hdr = (struct ether_header *)buf; in skt_netif_ipv6_udp_frame_process()
/xnu-12377.81.4/tests/
H A Dbpflib.c257 sizeof(struct ether_arp) + sizeof(struct ether_header)) in main()
/xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c553 const struct ether_header *eh; in fsw_ethernet_demux()
560 eh = (struct ether_header *)(void *)baddr; in fsw_ethernet_demux()
/xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_var.h221 struct ether_header _eth;