Home
last modified time | relevance | path

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

/xnu-11417.121.6/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()
632 struct ether_header *eh; in ether_frameout_extended()
682 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.c656 struct ether_header *, mblist, bool);
1221 static void brlog_ether_header(struct ether_header *);
1413 brlog_ether_header(struct ether_header *eh) in brlog_ether_header()
1704 error = bpf_attach(ifp, DLT_EN10MB, sizeof(struct ether_header), in bridge_clone_create()
2315 struct ether_header * eh_p; in bridge_iff_input()
2339 brlog_ether_header((struct ether_header *) in bridge_iff_input()
2352 if (mbuf_pkthdr_len(m) < sizeof(struct ether_header)) { in bridge_iff_input()
2355 mbuf_pkthdr_len(m), sizeof(struct ether_header)); in bridge_iff_input()
2358 if (mbuf_len(m) < sizeof(struct ether_header)) { in bridge_iff_input()
2359 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.c550 size = length + sizeof(struct ether_header); in packet_buffer_allocate()
573 return m_mtod_current(buf) + sizeof(struct ether_header); in packet_buffer_byteptr()
1045 get_bpf_header(mbuf_t m, struct ether_header * eh_p, in get_bpf_header()
1052 header = (struct ether_header *__bidi_indexable)eh_p; in get_bpf_header()
1059 offsetof(struct ether_header, ether_type)); /* dst+src ether */ in get_bpf_header()
1074 bond_bpf_tap_common(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p, in bond_bpf_tap_common()
1086 bond_bpf_tap_in(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in bond_bpf_tap_in()
1092 bond_bpf_tap_out(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in bond_bpf_tap_out()
1257 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in bond_clone_create()
1328 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()
3886 uint32_t ethlen = sizeof(struct ether_header); in get_ether_trunc_len()
3891 struct ether_header eh = {}; in get_ether_trunc_len()
3892 err = bpf_copydata(pkt, off, sizeof(struct ether_header), &eh); in get_ether_trunc_len()
3902 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.c637 get_bpf_header(mbuf_t m, struct ether_header * eh_p, in get_bpf_header()
644 header = (struct ether_header *__bidi_indexable)eh_p; in get_bpf_header()
651 offsetof(struct ether_header, ether_type)); /* dst+src ether */ in get_bpf_header()
666 fake_bpf_tap_common(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p, in fake_bpf_tap_common()
678 fake_bpf_tap_in(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in fake_bpf_tap_in()
685 fake_bpf_tap_out(ifnet_t ifp, mbuf_t m, struct ether_header * eh_p) in fake_bpf_tap_out()
3432 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in feth_ifnet_set_attrs()
3681 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_input.c884 struct ether_header eh; in dlil_input_packet_list_common()
885 struct ether_header *ehp = NULL; in dlil_input_packet_list_common()
888 ehp = (struct ether_header *)(void *)frame_header; in dlil_input_packet_list_common()
H A Ddlil.c3053 struct ether_header *eh; in ifnet_enqueue_ifclassq()
3057 if (__improbable(len < sizeof(struct ether_header))) { in ifnet_enqueue_ifclassq()
3060 sizeof(struct ether_header))) == NULL) { in ifnet_enqueue_ifclassq()
3064 eh = mtod(p->cp_mbuf, struct ether_header *); in ifnet_enqueue_ifclassq()
3067 hlen = sizeof(struct ether_header) + in ifnet_enqueue_ifclassq()
3075 hlen = sizeof(struct ether_header) + in ifnet_enqueue_ifclassq()
3092 eh = mtod(p->cp_mbuf, struct ether_header *); in ifnet_enqueue_ifclassq()
3147 struct ether_header *eh; in ifnet_enqueue_ifclassq()
3152 if (__improbable(pktlen < sizeof(struct ether_header))) { in ifnet_enqueue_ifclassq()
3157 eh = (struct ether_header *)(void *)baddr; in ifnet_enqueue_ifclassq()
[all …]
H A Dif_headless.c1088 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in headless_ifnet_set_attrs()
1203 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.c232 u_int16_t, struct ether_header *, struct ifnet *);
329 static int pf_test6(int, struct ifnet *, pbuf_t **, struct ether_header *,
333 struct ether_header *, struct ip_fw_args *);
2668 u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp) in pf_send_tcp()
9671 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test_mbuf()
9694 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test()
10269 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test6_mbuf()
10292 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test6()
/xnu-11417.121.6/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-11417.121.6/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-11417.121.6/tests/
H A Dbpflib.c257 sizeof(struct ether_arp) + sizeof(struct ether_header)) in main()
/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c552 const struct ether_header *eh; in fsw_ethernet_demux()
559 eh = (struct ether_header *)(void *)baddr; in fsw_ethernet_demux()
/xnu-11417.121.6/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_var.h221 struct ether_header _eth;