/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | bridge.h | 119 struct ifnet *bridge_in(struct ifnet *ifp, struct ether_header *eh); 121 struct mbuf *bdg_forward(struct mbuf *m0, struct ether_header *eh, struct ifnet *dst); 182 bridge_dst_lookup(struct ether_header *eh) argument 188 if (IS_ETHER_BROADCAST(eh->ether_dhost)) 190 if (eh->ether_dhost[0] & 1) 196 if (BDG_MATCH(p->etheraddr, eh->ether_dhost) ) 201 index= HASH_FN( eh->ether_dhost ); 203 if ( dst && BDG_MATCH( bdg_table[index].etheraddr, eh->ether_dhost) )
|
H A D | ether_inet_pr_module.c | 187 struct ether_header *eh = mbuf_pkthdr_header(m); local 191 if (eh->ether_type == htons(ETHERTYPE_IP)) { 199 if (eh->ether_type == htons(ETHERTYPE_ARP)) 228 const struct ether_header *eh; local 256 eh = (const struct ether_header *)dst_netaddr->sa_data; 257 (void)memcpy(edst, eh->ether_dhost, 6); 258 *(u_short *)type = eh->ether_type; 400 struct ether_header *eh; local 431 result = mbuf_prepend(&m, sizeof(*eh), MBUF_DONTWAIT); 435 eh [all...] |
H A D | ether_at_pr_module.c | 147 const struct ether_header *eh; local 163 eh = (const struct ether_header *)dst_netaddr->sa_data; 164 (void)memcpy(edst, eh->ether_dhost, 6); 165 *(u_short *)type = eh->ether_type; 169 eh = (const struct ether_header *)dst_netaddr->sa_data; 170 (void)memcpy(edst, eh->ether_dhost, 6);
|
H A D | ether_if_module.c | 372 struct ether_header *eh = (struct ether_header *)frame_header; local 373 u_short ether_type = eh->ether_type; 383 if (eh->ether_dhost[0] & 1) { 385 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))) { 515 struct ether_header *eh; local 556 eh = mtod(*m, struct ether_header *); 557 (void)memcpy(&eh->ether_type, ether_type, 558 sizeof(eh [all...] |
H A D | bridge.c | 518 * eh Ethernet header of the incoming packet. 532 bridge_in(struct ifnet *ifp, struct ether_header *eh) argument 541 index= HASH_FN(eh->ether_shost); 547 if (!BDG_MATCH( eh->ether_shost, bdg_table[index].etheraddr) ) { 561 bdg_loops, eh->ether_shost, ".", 578 eh->ether_shost, ".", index, ifp->if_name, ifp->if_unit);) 579 bcopy(eh->ether_shost, bdg_table[index].etheraddr, 6); 582 dst = bridge_dst_lookup(eh); 633 * XXX be careful about eh, it can be a pointer into *m 636 bdg_forward(struct mbuf *m0, struct ether_header *const eh, struc argument [all...] |
H A D | if_fddisubr.c | 262 struct ether_header *eh; local 264 eh = (struct ether_header *)dst->sa_data; 265 (void)memcpy((caddr_t)edst, (caddr_t)eh->ether_dhost, sizeof (edst)); 268 type = eh->ether_type; 530 register struct ether_header *eh; local 539 (caddr_t)eh->ether_dhost, 6); 542 eh = (struct ether_header *)sa.sa_data; 544 eh->ether_shost[i] = fh->fddi_dhost[i]; 545 eh->ether_dhost[i] = fh->fddi_shost[i]; 547 eh [all...] |
H A D | dlil.c | 1327 struct ether_header *eh = mtod(m, struct ether_header *); local 1331 ifp = bridge_dst_lookup(eh); 1506 struct ether_header *eh = mtod(m, struct ether_header *); 1510 ifp = bridge_dst_lookup(eh);
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ |
H A D | kdp_udp.c | 379 struct ether_header *eh = NULL; local 423 eh = (struct ether_header *)&pkt.data[pkt.off]; 424 enaddr_copy(eh->ether_shost, &tmp_enaddr); 425 enaddr_copy(eh->ether_dhost, eh->ether_shost); 426 enaddr_copy(&tmp_enaddr, eh->ether_dhost); 427 eh->ether_type = htons(ETHERTYPE_IP); 447 struct ether_header *eh; local 490 eh = (struct ether_header *)&pkt.data[pkt.off]; 491 enaddr_copy(&adr.loc.ea, eh 596 struct ether_header *eh; local 645 struct ether_header *eh = NULL; local 747 struct ether_header *eh = (struct ether_header *) &pkt.data[0]; local 1181 struct ether_header *eh; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | ip_fw2.c | 560 ipfw_log(struct ip_fw *f, u_int hlen, struct ether_header *eh, argument 666 if (eh != NULL) { /* layer 2 packets are as on the wire */ 1327 if (args->eh != NULL) { 1393 * args->eh (in) Mac header if present, or NULL for layer3 packet. 1431 * args->eh The MAC header. It is non-null for a layer2 1517 if (args->eh == NULL || /* layer 3 packet */ 1519 ntohs(args->eh->ether_type) == ETHERTYPE_IP)) 1533 if (args->eh != NULL) { /* layer 2 packets are as on the wire */ 1619 if (args->eh == NULL && skipto != 0) { 1770 if (args->eh ! [all...] |
H A D | ip_fw2.h | 451 struct ether_header *eh; /* for bridged packets */ member in struct:ip_fw_args
|
H A D | ip_input.c | 554 args.eh = NULL;
|
H A D | ip_output.c | 274 args.eh = NULL;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | icmp6.c | 897 struct ip6_ext *eh; local 907 eh = (struct ip6_ext *)(mtod(m, caddr_t) 910 IP6_EXTHDR_GET(eh, struct ip6_ext *, m, 911 eoff, sizeof(*eh)); 912 if (eh == NULL) { 919 eoff += (eh->ip6e_len + 2) << 2; 921 eoff += (eh->ip6e_len + 1) << 3; 922 nxt = eh->ip6e_nxt;
|
H A D | ip6_output.c | 209 struct ip6_ext *eh = (struct ip6_ext *)(hp); \ 211 ((eh)->ip6e_len + 1) << 3); \
|