Home
last modified time | relevance | path

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

/xnu-8020.121.3/bsd/net/
H A Dether_if_module.c355 struct ether_header *eh = (struct ether_header *)(void *)frame_header; in ether_demux()
537 struct ether_header *eh; in ether_frameout_extended()
570 M_PREPEND(*m, sizeof(struct ether_header), M_DONTWAIT, 0); in ether_frameout_extended()
576 *prepend_len = sizeof(struct ether_header); in ether_frameout_extended()
582 eh = mtod(*m, struct ether_header *); in ether_frameout_extended()
H A Dif_bridge.c1135 static void brlog_ether_header(struct ether_header *);
1323 brlog_ether_header(struct ether_header *eh) in brlog_ether_header()
1604 error = bpf_attach(ifp, DLT_EN10MB, sizeof(struct ether_header), in bridge_clone_create()
2135 brlog_ether_header((struct ether_header *) in bridge_iff_input()
2150 if (mbuf_pkthdr_len(m) < sizeof(struct ether_header)) { in bridge_iff_input()
2153 mbuf_pkthdr_len(m), sizeof(struct ether_header)); in bridge_iff_input()
2156 if (mbuf_len(m) < sizeof(struct ether_header)) { in bridge_iff_input()
2157 error = mbuf_pullup(data, sizeof(struct ether_header)); in bridge_iff_input()
2161 sizeof(struct ether_header), in bridge_iff_input()
4191 struct ether_header *eh;
[all …]
H A Dether_inet_pr_module.c180 struct ether_header *eh = mbuf_pkthdr_header(m); in ether_inet_input()
235 const struct ether_header *eh; in ether_inet_pre_output()
266 eh = (const struct ether_header *)(uintptr_t)(size_t) in ether_inet_pre_output()
413 struct ether_header *eh; in ether_inet_arp()
H A Dether_inet6_pr_module.c112 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 Dethernet.h91 typedef struct ether_header { struct
H A Dif_bond.c506 size = length + sizeof(struct ether_header); in packet_buffer_allocate()
528 return buf->m_data + sizeof(struct ether_header); in packet_buffer_byteptr()
1009 const struct ether_header * eh_p, in bond_bpf_vlan()
1022 bcopy(eh_p, vlh_p, offsetof(struct ether_header, ether_type)); in bond_bpf_vlan()
1039 const struct ether_header * eh_p; in bond_bpf_output()
1040 eh_p = mtod(m, const struct ether_header *); in bond_bpf_output()
1054 bond_bpf_input(ifnet_t ifp, mbuf_t m, const struct ether_header * eh_p, in bond_bpf_input()
1238 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in bond_clone_create()
1344 ether_header_hash(struct ether_header * eh_p) in ether_header_hash()
1443 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header); in ip_header_hash()
[all …]
H A Dbpf.c294 hlen = sizeof(struct ether_header); in bpf_movein()
419 struct ether_header *eh; in bpf_movein()
421 eh = mtod(m, struct ether_header *); in bpf_movein()
3251 uint32_t ethlen = sizeof(struct ether_header); in get_ether_trunc_len()
3256 struct ether_header eh = {}; in get_ether_trunc_len()
3257 err = bpf_copydata(pkt, off, sizeof(struct ether_header), &eh); in get_ether_trunc_len()
3267 ethlen += get_ip_trunc_len(pkt, off + sizeof(struct ether_header), in get_ether_trunc_len()
3270 ethlen += get_ip6_trunc_len(pkt, off + sizeof(struct ether_header), in get_ether_trunc_len()
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 Ddlil.h148 struct ether_header;
H A Dif_headless.c1089 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in headless_ifnet_set_attrs()
1207 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in headless_clone_create()
H A Ddlil.c4953 struct ether_header *eh; in ifnet_enqueue_ifclassq()
4957 if (__improbable(len < sizeof(struct ether_header))) { in ifnet_enqueue_ifclassq()
4960 sizeof(struct ether_header))) == NULL) { in ifnet_enqueue_ifclassq()
4964 eh = (struct ether_header *)mbuf_data(p->cp_mbuf); in ifnet_enqueue_ifclassq()
4967 hlen = sizeof(struct ether_header) + in ifnet_enqueue_ifclassq()
4975 hlen = sizeof(struct ether_header) + in ifnet_enqueue_ifclassq()
4992 eh = (struct ether_header *)mbuf_data( in ifnet_enqueue_ifclassq()
5048 struct ether_header *eh; in ifnet_enqueue_ifclassq()
5053 if (__improbable(pktlen < sizeof(struct ether_header))) { in ifnet_enqueue_ifclassq()
5058 eh = (struct ether_header *)(void *)baddr; in ifnet_enqueue_ifclassq()
[all …]
H A Dpfvar.h1433 struct ether_header *eh;
2211 struct ether_header *, struct ip_fw_args *);
2215 struct ether_header *, struct ip_fw_args *);
H A Dif_fake.c2643 ifnet_set_hdrlen(ifp, sizeof(struct ether_header)); in feth_ifnet_set_attrs()
2822 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in feth_clone_create()
2998 sizeof(struct ether_header)); in feth_output_common()
H A Dpf.c227 u_int16_t, struct ether_header *, struct ifnet *);
325 static int pf_test6(int, struct ifnet *, pbuf_t **, struct ether_header *,
329 struct ether_header *, struct ip_fw_args *);
2573 u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp) in pf_send_tcp()
9507 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test_mbuf()
9530 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test()
10104 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test6_mbuf()
10127 struct ether_header *eh, struct ip_fw_args *fwa) in pf_test6()
H A Dif_vlan.c1035 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); in vlan_clone_create()
/xnu-8020.121.3/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-8020.121.3/tests/
H A Dbpflib.c190 sizeof(struct ether_arp) + sizeof(struct ether_header)) in main()
/xnu-8020.121.3/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c539 const struct ether_header *eh; in fsw_ethernet_demux()
546 eh = (struct ether_header *)(void *)baddr; in fsw_ethernet_demux()
/xnu-8020.121.3/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_var.h220 struct ether_header _eth;