Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dl2_packet.c93 struct l2_ethhdr *ethhdr; in l2_packet_receive() local
103 ethhdr = (struct l2_ethhdr *)buf; in l2_packet_receive()
104 if (buflen < sizeof (*ethhdr) || in l2_packet_receive()
105 (ntohs(ethhdr->h_proto) != ETHERTYPE_EAPOL && in l2_packet_receive()
106 ntohs(ethhdr->h_proto) != ETHERTYPE_RSN_PREAUTH)) in l2_packet_receive()
109 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, in l2_packet_receive()
110 (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 …]
/illumos-gate/usr/src/uts/common/io/
H A Dtrill.c202 struct ether_header *ethhdr; in trill_dest_fwd() local
229 ethhdr = (struct ether_header *)fwd_mp->b_rptr; in trill_dest_fwd()
230 ethtype = ntohs(ethhdr->ether_type); in trill_dest_fwd()
384 struct ether_header *ethhdr; in trill_recv() local
444 ethhdr = (struct ether_header *)(mp->b_rptr + trillhdrlen); in trill_recv()
445 if (ethhdr->ether_type == htons(ETHERTYPE_VLAN)) { in trill_recv()
453 ethhdr = (struct ether_header *)(mp->b_rptr + in trill_recv()
457 tci = ntohs(((struct ether_vlan_header *)ethhdr)->ether_tci); in trill_recv()
465 if (ethhdr->ether_dhost.ether_addr_octet[0] & 1) in trill_recv()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_fp.c1738 struct ether_header *ethhdr; in qede_hash_get_txq() local
1756 ethhdr = (struct ether_header *)((void *)bp); in qede_hash_get_txq()
1765 etherType = ntohs(ethhdr->ether_type); in qede_hash_get_txq()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c4829 struct ether_header *ethhdr; in ql_hw_csum_setup() local
4836 ethhdr = (struct ether_header *)((void *)bp); in ql_hw_csum_setup()
4844 etherType = ntohs(ethhdr->ether_type); in ql_hw_csum_setup()
5082 struct ether_header *ethhdr; in ql_tx_hashing() local
5097 ethhdr = (struct ether_header *)((void *)bp); in ql_tx_hashing()
5109 etherType = ntohs(ethhdr->ether_type); in ql_tx_hashing()
5176 struct ether_header *ethhdr; in ql_hw_lso_setup() local
5184 ethhdr = (struct ether_header *)(void *)bp; in ql_hw_lso_setup()
5193 etherType = ntohs(ethhdr->ether_type); in ql_hw_lso_setup()