Home
last modified time | relevance | path

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

/hostap-3.6.0/src/ap/
Dpreauth_auth.c48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local
52 if (len < sizeof(*ethhdr) + sizeof(*hdr)) { in rsn_preauth_receive()
58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive()
59 hdr = (struct ieee802_1x_hdr *) (ethhdr + 1); in rsn_preauth_receive()
61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive()
67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive()
74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
93 len - sizeof(*ethhdr)); in rsn_preauth_receive()
[all …]
Deth_p_oui.c55 const struct l2_ethhdr *ethhdr; in eth_p_rx() local
57 if (len < sizeof(*ethhdr) + sizeof(global_oui) + 1) { in eth_p_rx()
62 ethhdr = (struct l2_ethhdr *) buf; in eth_p_rx()
64 buf += sizeof(*ethhdr); in eth_p_rx()
65 len -= sizeof(*ethhdr); in eth_p_rx()
78 eth_p_oui_deliver(receiver, ethhdr->h_source, ethhdr->h_dest, in eth_p_rx()
168 struct l2_ethhdr *ethhdr; in eth_p_oui_send() local
170 packet_len = sizeof(*ethhdr) + sizeof(global_oui) + 1 + len; in eth_p_oui_send()
176 ethhdr = (struct l2_ethhdr *) packet; in eth_p_oui_send()
177 os_memcpy(ethhdr->h_source, src_addr, ETH_ALEN); in eth_p_oui_send()
[all …]
Dwpa_auth_glue.c1354 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local
1355 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive()
1357 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive()
1359 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive()
1360 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive()
1361 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0) in hostapd_rrb_receive()
1363 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive()
1364 len - sizeof(*ethhdr)); in hostapd_rrb_receive()
/hostap-3.6.0/src/l2_packet/
Dl2_packet_pcap.c124 struct l2_ethhdr *ethhdr; in l2_packet_receive() local
130 if (!l2->rx_callback || !packet || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive()
133 ethhdr = (struct l2_ethhdr *) packet; in l2_packet_receive()
135 buf = (unsigned char *) ethhdr; in l2_packet_receive()
138 buf = (unsigned char *) (ethhdr + 1); in l2_packet_receive()
139 len = hdr.caplen - sizeof(*ethhdr); in l2_packet_receive()
141 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive()
151 struct l2_ethhdr *ethhdr; in l2_packet_receive_cb() local
155 if (!l2->rx_callback || !pkt_data || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb()
158 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb()
[all …]
Dl2_packet_freebsd.c81 struct l2_ethhdr *ethhdr; in l2_packet_receive() local
87 if (!l2->rx_callback || !packet || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive()
90 ethhdr = (struct l2_ethhdr *) packet; in l2_packet_receive()
92 buf = (unsigned char *) ethhdr; in l2_packet_receive()
95 buf = (unsigned char *) (ethhdr + 1); in l2_packet_receive()
96 len = hdr.caplen - sizeof(*ethhdr); in l2_packet_receive()
98 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive()
Dl2_packet_winpcap.c106 struct l2_ethhdr *ethhdr; in l2_packet_receive_cb() local
108 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb()
111 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb()
113 l2->rx_buf = (u8 *) ethhdr; in l2_packet_receive_cb()
116 l2->rx_buf = (u8 *) (ethhdr + 1); in l2_packet_receive_cb()
117 l2->rx_len = hdr->caplen - sizeof(*ethhdr); in l2_packet_receive_cb()
119 l2->rx_src = ethhdr->h_source; in l2_packet_receive_cb()
Dl2_packet_ndis.c283 struct l2_ethhdr *ethhdr = (struct l2_ethhdr *) l2->rx_buf; in l2_packet_callback() local
288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) { in l2_packet_callback()
289 rx_buf = (u8 *) ethhdr; in l2_packet_callback()
292 rx_buf = (u8 *) (ethhdr + 1); in l2_packet_callback()
293 rx_len = l2->rx_written - sizeof(*ethhdr); in l2_packet_callback()
295 rx_src = ethhdr->h_source; in l2_packet_callback()
Dl2_packet_zephyr.c82 struct l2_ethhdr *ethhdr; in l2_packet_receive() local
95 ethhdr = (struct l2_ethhdr *) buf; in l2_packet_receive()
96 if (ethhdr->h_proto != htons(l2->protocol)) { in l2_packet_receive()