Searched refs:l2_hdr (Results 1 - 24 of 24) sorted by relevance

/external/wpa_supplicant_8/hostapd/src/l2_packet/
H A Dl2_packet_none.c24 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
45 * whether l2->l2_hdr is set).
71 void *rx_callback_ctx, int l2_hdr)
81 l2->l2_hdr = l2_hdr;
99 void *rx_callback_ctx, int l2_hdr)
102 rx_callback_ctx, l2_hdr);
67 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) argument
94 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet.h55 * @l2_hdr: 1 = include layer 2 header, 0 = do not include header
59 * address (MAC address) of the the packet. If l2_hdr is set to 0, buf
62 * l2_hdr=1 to include the layer 2 header in the data buffer.
68 void *rx_callback_ctx, int l2_hdr);
81 void *rx_callback_ctx, int l2_hdr);
100 * @dst_addr: Destination address for the packet (only used if l2_hdr == 0)
102 * l2_hdr == 0)
103 * @buf: Packet contents to be sent; including layer 2 header if l2_hdr was
106 * @len: Length of the buffer (including l2 header only if l2_hdr == 1)
H A Dl2_packet_pcap.c38 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls member in struct:l2_packet_data
87 if (l2->l2_hdr) {
134 if (l2->l2_hdr) {
159 if (l2->l2_hdr) {
283 void *rx_callback_ctx, int l2_hdr)
293 l2->l2_hdr = l2_hdr;
320 void *rx_callback_ctx, int l2_hdr)
323 rx_callback_ctx, l2_hdr);
279 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) argument
315 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_freebsd.c43 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
58 if (!l2->l2_hdr) {
91 if (l2->l2_hdr) {
231 void *rx_callback_ctx, int l2_hdr)
241 l2->l2_hdr = l2_hdr;
264 void *rx_callback_ctx, int l2_hdr)
267 rx_callback_ctx, l2_hdr);
227 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) argument
259 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_winpcap.c55 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls to member in struct:l2_packet_data
81 if (l2->l2_hdr) {
112 if (l2->l2_hdr) {
202 void *rx_callback_ctx, int l2_hdr)
217 l2->l2_hdr = l2_hdr;
256 void *rx_callback_ctx, int l2_hdr)
259 rx_callback_ctx, l2_hdr);
198 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) argument
251 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_linux.c30 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
101 if (l2->l2_hdr) {
249 void *rx_callback_ctx, int l2_hdr)
261 l2->l2_hdr = l2_hdr;
266 l2->fd = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM,
317 void *rx_callback_ctx, int l2_hdr)
339 rx_callback_ctx, l2_hdr);
357 l2->fd_br_rx = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM,
245 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) argument
312 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_ndis.c73 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls to member in struct:l2_packet_data
112 if (l2->l2_hdr) {
288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) {
352 void *rx_callback_ctx, int l2_hdr)
377 l2->l2_hdr = l2_hdr;
458 void *rx_callback_ctx, int l2_hdr)
461 rx_callback_ctx, l2_hdr);
348 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) argument
453 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_privsep.c132 void *rx_callback_ctx, int l2_hdr)
184 reg_cmd[1] = l2_hdr;
239 void *rx_callback_ctx, int l2_hdr)
242 rx_callback_ctx, l2_hdr);
128 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) argument
234 l2_packet_init_bridge( const char *br_ifname, 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) argument
/external/wpa_supplicant_8/src/l2_packet/
H A Dl2_packet_none.c24 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
45 * whether l2->l2_hdr is set).
71 void *rx_callback_ctx, int l2_hdr)
81 l2->l2_hdr = l2_hdr;
99 void *rx_callback_ctx, int l2_hdr)
102 rx_callback_ctx, l2_hdr);
67 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) argument
94 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet.h55 * @l2_hdr: 1 = include layer 2 header, 0 = do not include header
59 * address (MAC address) of the the packet. If l2_hdr is set to 0, buf
62 * l2_hdr=1 to include the layer 2 header in the data buffer.
68 void *rx_callback_ctx, int l2_hdr);
81 void *rx_callback_ctx, int l2_hdr);
100 * @dst_addr: Destination address for the packet (only used if l2_hdr == 0)
102 * l2_hdr == 0)
103 * @buf: Packet contents to be sent; including layer 2 header if l2_hdr was
106 * @len: Length of the buffer (including l2 header only if l2_hdr == 1)
H A Dl2_packet_pcap.c38 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls member in struct:l2_packet_data
87 if (l2->l2_hdr) {
134 if (l2->l2_hdr) {
159 if (l2->l2_hdr) {
283 void *rx_callback_ctx, int l2_hdr)
293 l2->l2_hdr = l2_hdr;
320 void *rx_callback_ctx, int l2_hdr)
323 rx_callback_ctx, l2_hdr);
279 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) argument
315 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_freebsd.c43 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
58 if (!l2->l2_hdr) {
91 if (l2->l2_hdr) {
231 void *rx_callback_ctx, int l2_hdr)
241 l2->l2_hdr = l2_hdr;
264 void *rx_callback_ctx, int l2_hdr)
267 rx_callback_ctx, l2_hdr);
227 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) argument
259 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_winpcap.c55 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls to member in struct:l2_packet_data
81 if (l2->l2_hdr) {
112 if (l2->l2_hdr) {
202 void *rx_callback_ctx, int l2_hdr)
217 l2->l2_hdr = l2_hdr;
256 void *rx_callback_ctx, int l2_hdr)
259 rx_callback_ctx, l2_hdr);
198 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) argument
251 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_linux.c30 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
101 if (l2->l2_hdr) {
249 void *rx_callback_ctx, int l2_hdr)
261 l2->l2_hdr = l2_hdr;
266 l2->fd = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM,
317 void *rx_callback_ctx, int l2_hdr)
339 rx_callback_ctx, l2_hdr);
357 l2->fd_br_rx = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM,
245 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) argument
312 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_ndis.c73 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls to member in struct:l2_packet_data
112 if (l2->l2_hdr) {
288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) {
352 void *rx_callback_ctx, int l2_hdr)
377 l2->l2_hdr = l2_hdr;
458 void *rx_callback_ctx, int l2_hdr)
461 rx_callback_ctx, l2_hdr);
348 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) argument
453 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_privsep.c132 void *rx_callback_ctx, int l2_hdr)
184 reg_cmd[1] = l2_hdr;
239 void *rx_callback_ctx, int l2_hdr)
242 rx_callback_ctx, l2_hdr);
128 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) argument
234 l2_packet_init_bridge( const char *br_ifname, 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) argument
/external/wpa_supplicant_8/wpa_supplicant/src/l2_packet/
H A Dl2_packet_none.c24 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
45 * whether l2->l2_hdr is set).
71 void *rx_callback_ctx, int l2_hdr)
81 l2->l2_hdr = l2_hdr;
99 void *rx_callback_ctx, int l2_hdr)
102 rx_callback_ctx, l2_hdr);
67 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) argument
94 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet.h55 * @l2_hdr: 1 = include layer 2 header, 0 = do not include header
59 * address (MAC address) of the the packet. If l2_hdr is set to 0, buf
62 * l2_hdr=1 to include the layer 2 header in the data buffer.
68 void *rx_callback_ctx, int l2_hdr);
81 void *rx_callback_ctx, int l2_hdr);
100 * @dst_addr: Destination address for the packet (only used if l2_hdr == 0)
102 * l2_hdr == 0)
103 * @buf: Packet contents to be sent; including layer 2 header if l2_hdr was
106 * @len: Length of the buffer (including l2 header only if l2_hdr == 1)
H A Dl2_packet_pcap.c38 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls member in struct:l2_packet_data
87 if (l2->l2_hdr) {
134 if (l2->l2_hdr) {
159 if (l2->l2_hdr) {
283 void *rx_callback_ctx, int l2_hdr)
293 l2->l2_hdr = l2_hdr;
320 void *rx_callback_ctx, int l2_hdr)
323 rx_callback_ctx, l2_hdr);
279 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) argument
315 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_freebsd.c43 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
58 if (!l2->l2_hdr) {
91 if (l2->l2_hdr) {
231 void *rx_callback_ctx, int l2_hdr)
241 l2->l2_hdr = l2_hdr;
264 void *rx_callback_ctx, int l2_hdr)
267 rx_callback_ctx, l2_hdr);
227 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) argument
259 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_winpcap.c55 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls to member in struct:l2_packet_data
81 if (l2->l2_hdr) {
112 if (l2->l2_hdr) {
202 void *rx_callback_ctx, int l2_hdr)
217 l2->l2_hdr = l2_hdr;
256 void *rx_callback_ctx, int l2_hdr)
259 rx_callback_ctx, l2_hdr);
198 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) argument
251 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_linux.c30 int l2_hdr; /* whether to include layer 2 (Ethernet) header data member in struct:l2_packet_data
101 if (l2->l2_hdr) {
249 void *rx_callback_ctx, int l2_hdr)
261 l2->l2_hdr = l2_hdr;
266 l2->fd = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM,
317 void *rx_callback_ctx, int l2_hdr)
339 rx_callback_ctx, l2_hdr);
357 l2->fd_br_rx = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM,
245 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) argument
312 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_ndis.c73 int l2_hdr; /* whether to include layer 2 (Ethernet) header in calls to member in struct:l2_packet_data
112 if (l2->l2_hdr) {
288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) {
352 void *rx_callback_ctx, int l2_hdr)
377 l2->l2_hdr = l2_hdr;
458 void *rx_callback_ctx, int l2_hdr)
461 rx_callback_ctx, l2_hdr);
348 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) argument
453 l2_packet_init_bridge( const char *br_ifname, 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) argument
H A Dl2_packet_privsep.c132 void *rx_callback_ctx, int l2_hdr)
184 reg_cmd[1] = l2_hdr;
239 void *rx_callback_ctx, int l2_hdr)
242 rx_callback_ctx, l2_hdr);
128 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) argument
234 l2_packet_init_bridge( const char *br_ifname, 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) argument

Completed in 161 milliseconds