/darwin-on-arm/xnu/bsd/net/ |
H A D | ether_inet_pr_module.c | 180 struct ether_header *eh = mbuf_pkthdr_header(m); local 194 if (eh->ether_type == htons(ETHERTYPE_IP)) { 199 if (bcmp(eh->ether_shost, etherbroadcastaddr, 201 arp_llreach_set_reachable(mifp, eh->ether_shost, 210 if (eh->ether_type == htons(ETHERTYPE_ARP)) 234 const struct ether_header *eh; local 264 eh = (const struct ether_header *)(uintptr_t)(size_t) 266 (void) memcpy(edst, eh->ether_dhost, 6); 267 bcopy(&eh->ether_type, type, sizeof (u_short)); 406 struct ether_header *eh; local [all...] |
H A D | ether_at_pr_module.c | 143 const struct ether_header *eh; local 159 eh = (const struct ether_header *)dst_netaddr->sa_data; 160 (void)memcpy(edst, eh->ether_dhost, 6); 161 *(u_short *)type = eh->ether_type; 165 eh = (const struct ether_header *)dst_netaddr->sa_data; 166 (void)memcpy(edst, eh->ether_dhost, 6);
|
H A D | ether_if_module.c | 362 struct ether_header *eh = (struct ether_header *)(void *)frame_header; local 363 u_short ether_type = eh->ether_type; 373 if (eh->ether_dhost[0] & 1) { 375 if (_ether_cmp(etherbroadcastaddr, eh->ether_dhost) == 0) 397 if ((eh->ether_dhost[0] & 1) == 0) { 404 if (_ether_cmp(eh->ether_dhost, ifnet_lladdr(ifp))) { 521 struct ether_header *eh; local 566 eh = mtod(*m, struct ether_header *); 567 (void)memcpy(&eh->ether_type, ether_type, 568 sizeof(eh [all...] |
H A D | ether_inet6_pr_module.c | 114 struct ether_header *eh = (struct ether_header *)(void *)header; local 117 bcopy(&eh->ether_type, ðer_type, sizeof (ether_type)); 131 if (bcmp(eh->ether_shost, etherbroadcastaddr, 133 nd6_llreach_set_reachable(mifp, eh->ether_shost,
|
H A D | if_bridge.c | 751 static void printf_ether_header(struct ether_header *eh); 920 printf_ether_header(struct ether_header *eh) argument 924 eh->ether_shost[0], eh->ether_shost[1], eh->ether_shost[2], 925 eh->ether_shost[3], eh->ether_shost[4], eh->ether_shost[5], 926 eh->ether_dhost[0], eh 3012 struct ether_header *eh; local 3437 struct ether_header *eh; local 3531 struct ether_header *eh; local 3736 struct ether_header *eh; local 5150 bridge_fragment(struct ifnet *ifp, struct mbuf *m, struct ether_header *eh, int snap, struct llc *llc) argument [all...] |
H A D | bridgestp.c | 292 struct ether_header *eh; local 308 m->m_pkthdr.len = sizeof(*eh) + sizeof(bpdu); 311 eh = mtod(m, struct ether_header *); 313 memcpy(eh->ether_shost, ifnet_lladdr(ifp), ETHER_ADDR_LEN); 314 memcpy(eh->ether_dhost, bstp_etheraddr, ETHER_ADDR_LEN); 315 eh->ether_type = htons(sizeof(bpdu)); 323 memcpy(mtod(m, caddr_t) + sizeof(*eh), &bpdu, sizeof(bpdu)); 408 struct ether_header *eh; local 421 eh = mtod(m, struct ether_header *); 427 memcpy(eh 535 struct ether_header *eh; local [all...] |
H A D | bpf.c | 387 struct ether_header *eh = mtod(m, struct ether_header *); local 389 if (ETHER_IS_MULTICAST(eh->ether_dhost)) { 390 if (_ether_cmp(etherbroadcastaddr, eh->ether_dhost) == 0)
|
H A D | pf.c | 2352 u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp) 2354 #pragma unused(eh, ifp) 4609 r->return_ttl, 1, 0, pd->eh, kif->pfik_ifp); 6242 pd->eh, kif->pfik_ifp); 8047 struct ether_header *eh, struct ip_fw_args *fwa) 8108 pd.eh = eh; 8157 pd.eh = eh; 8581 struct ether_header *eh, struc 2348 pf_send_tcp(const struct pf_rule *r, sa_family_t af, const struct pf_addr *saddr, const struct pf_addr *daddr, u_int16_t sport, u_int16_t dport, u_int32_t seq, u_int32_t ack, u_int8_t flags, u_int16_t win, u_int16_t mss, u_int8_t ttl, int tag, u_int16_t rtag, struct ether_header *eh, struct ifnet *ifp) argument 8046 pf_test(int dir, struct ifnet *ifp, struct mbuf **m0, struct ether_header *eh, struct ip_fw_args *fwa) argument 8580 pf_test6(int dir, struct ifnet *ifp, struct mbuf **m0, struct ether_header *eh, struct ip_fw_args *fwa) argument [all...] |
H A D | pfvar.h | 1421 *eh; member in struct:pf_pdesc
|
/darwin-on-arm/xnu/osfmk/kdp/ |
H A D | kdp_udp.c | 479 struct ether_header *eh = NULL; local 523 eh = (struct ether_header *)&pkt.data[pkt.off]; 524 enaddr_copy(eh->ether_shost, &tmp_enaddr); 525 enaddr_copy(eh->ether_dhost, eh->ether_shost); 526 enaddr_copy(&tmp_enaddr, eh->ether_dhost); 527 eh->ether_type = htons(ETHERTYPE_IP); 550 struct ether_header *eh; local 593 eh = (struct ether_header *)&pkt.data[pkt.off]; 594 enaddr_copy(&adr.loc.ea, eh 779 struct ether_header *eh; local 828 struct ether_header *eh = NULL; local 932 struct ether_header *eh = (struct ether_header *) &pkt.data[0]; local 1423 struct ether_header *eh; local [all...] |
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | icmp6.c | 991 struct ip6_ext *eh; local 1001 eh = (struct ip6_ext *)(mtod(m, caddr_t) 1004 IP6_EXTHDR_GET(eh, struct ip6_ext *, m, 1005 eoff, sizeof(*eh)); 1006 if (eh == NULL) { 1013 eoff += (eh->ip6e_len + 2) << 2; 1015 eoff += (eh->ip6e_len + 1) << 3; 1016 nxt = eh->ip6e_nxt;
|
H A D | ip6_output.c | 417 struct ip6_ext *eh = (struct ip6_ext *)(hp); \ 419 ((eh)->ip6e_len + 1) << 3); \
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_fw2.c | 1058 ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh, argument 1164 if (eh != NULL) { /* layer 2 packets are as on the wire */
|