Searched refs:ethhdr (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dl2_packet.c95 struct l2_ethhdr *ethhdr; local
105 ethhdr = (struct l2_ethhdr *)buf;
106 if (buflen < sizeof (*ethhdr) ||
107 (ntohs(ethhdr->h_proto) != ETHERTYPE_EAPOL &&
108 ntohs(ethhdr->h_proto) != ETHERTYPE_RSN_PREAUTH))
111 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source,
112 (unsigned char *)(ethhdr + 1), buflen - sizeof (*ethhdr));
H A Dwpa.c807 struct l2_ethhdr *ethhdr; local
823 rlen = sizeof (*ethhdr) + sizeof (*hdr) + sizeof (*reply);
829 ethhdr = (struct l2_ethhdr *)rbuf;
830 (void) memcpy(ethhdr->h_dest, bssid, IEEE80211_ADDR_LEN);
831 (void) memcpy(ethhdr->h_source, wpa_s->own_addr, IEEE80211_ADDR_LEN);
832 ethhdr->h_proto = htons(ETHERTYPE_EAPOL);
834 hdr = (struct ieee802_1x_hdr *)(ethhdr + 1);
859 rlen - sizeof (*ethhdr), reply->key_mic);
878 struct l2_ethhdr *ethhdr; local
934 rlen = sizeof (*ethhdr)
1111 struct l2_ethhdr *ethhdr; local
1304 struct l2_ethhdr *ethhdr; local
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dtrill.c201 struct ether_header *ethhdr; local
228 ethhdr = (struct ether_header *)fwd_mp->b_rptr;
229 ethtype = ntohs(ethhdr->ether_type);
383 struct ether_header *ethhdr; local
443 ethhdr = (struct ether_header *)(mp->b_rptr + trillhdrlen);
444 if (ethhdr->ether_type == htons(ETHERTYPE_VLAN)) {
452 ethhdr = (struct ether_header *)(mp->b_rptr +
456 tci = ntohs(((struct ether_vlan_header *)ethhdr)->ether_tci);
464 if (ethhdr->ether_dhost.ether_addr_octet[0] & 1)
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_rxtx.c490 struct ether_header *ethhdr; local
581 ethhdr = (struct ether_header *)(DMA_VPTR(ssbdp->pbuf));
585 if (ntohs(ethhdr->ether_type) == ETHERTYPE_IP) {
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c4825 struct ether_header *ethhdr; local
4832 ethhdr = (struct ether_header *)((void *)bp);
4840 etherType = ntohs(ethhdr->ether_type);
5081 struct ether_header *ethhdr; local
5096 ethhdr = (struct ether_header *)((void *)bp);
5108 etherType = ntohs(ethhdr->ether_type);
5175 struct ether_header *ethhdr; local
5183 ethhdr = (struct ether_header *)(void *)bp;
5192 etherType = ntohs(ethhdr->ether_type);

Completed in 107 milliseconds