Home
last modified time | relevance | path

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

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