Searched refs:eh (Results 1 - 14 of 14) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbridge.h119 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 Dether_inet_pr_module.c187 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 Dether_at_pr_module.c147 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 Dether_if_module.c372 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 Dbridge.c518 * 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 Dif_fddisubr.c262 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 Ddlil.c1327 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 Dkdp_udp.c379 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 Dip_fw2.c560 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 Dip_fw2.h451 struct ether_header *eh; /* for bridged packets */ member in struct:ip_fw_args
H A Dip_input.c554 args.eh = NULL;
H A Dip_output.c274 args.eh = NULL;
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dicmp6.c897 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 Dip6_output.c209 struct ip6_ext *eh = (struct ip6_ext *)(hp); \
211 ((eh)->ip6e_len + 1) << 3); \

Completed in 100 milliseconds