This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5] |
#define | MACSTR "%02x:%02x:%02x:%02x:%02x:%02x" |
#define | ETH_P_EAPOL 0x888e |
#define | ETH_P_RSN_PREAUTH 0x88c7 |
Functions | |
l2_packet_data * | l2_packet_init (const char *ifname, const u8 *own_addr, unsigned short protocol, void(*rx_callback)(void *ctx, const u8 *src_addr, const u8 *buf, size_t len), void *rx_callback_ctx, int l2_hdr) |
Initialize l2_packet interface. | |
void | l2_packet_deinit (struct l2_packet_data *l2) |
Deinitialize l2_packet interface. | |
int | l2_packet_get_own_addr (struct l2_packet_data *l2, u8 *addr) |
Get own layer 2 address. | |
int | l2_packet_send (struct l2_packet_data *l2, const u8 *dst_addr, u16 proto, const u8 *buf, size_t len) |
Send a packet. | |
int | l2_packet_get_ip_addr (struct l2_packet_data *l2, char *buf, size_t len) |
Get the current IP address from the interface. | |
void | l2_packet_notify_auth_start (struct l2_packet_data *l2) |
Notify l2_packet about start of authentication. | |
Variables | |
l2_ethhdr | STRUCT_PACKED |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
This file defines an interface for layer 2 (link layer) packet sending and receiving. l2_packet_linux.c is one implementation for such a layer 2 implementation using Linux packet sockets and l2_packet_pcap.c another one using libpcap and libdnet. When porting wpa_supplicant to other operating systems, a new l2_packet implementation may need to be added.
Definition in file l2_packet.h.
|
Deinitialize l2_packet interface.
Definition at line 225 of file l2_packet_freebsd.c. Here is the call graph for this function: |
|
Get the current IP address from the interface.
Definition at line 235 of file l2_packet_freebsd.c. Here is the call graph for this function: |
|
Get own layer 2 address.
Definition at line 45 of file l2_packet_freebsd.c. |
|
Initialize l2_packet interface.
Definition at line 193 of file l2_packet_freebsd.c. Here is the call graph for this function: |
|
Notify l2_packet about start of authentication.
Definition at line 271 of file l2_packet_freebsd.c. |
|
Send a packet.
Definition at line 52 of file l2_packet_freebsd.c. |