X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=libeap%2Fsrc%2Fl2_packet%2Fl2_packet_winpcap.c;h=74085a3169af8309d9d82a48ea641fd3eda904e3;hb=4f319dde67a76fe0aaf33f6d2788968012584ada;hp=f76b386fc033a9c3cd1fc8afb6608bff3fcaac61;hpb=acc2e49c1b52930eb717443fee098d4e7773bd5a;p=mech_eap.git diff --git a/libeap/src/l2_packet/l2_packet_winpcap.c b/libeap/src/l2_packet/l2_packet_winpcap.c index f76b386..74085a3 100644 --- a/libeap/src/l2_packet/l2_packet_winpcap.c +++ b/libeap/src/l2_packet/l2_packet_winpcap.c @@ -2,14 +2,8 @@ * WPA Supplicant - Layer2 packet handling with WinPcap RX thread * Copyright (c) 2003-2006, Jouni Malinen * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. + * This software may be distributed under the terms of the BSD license. + * See README for more details. * * This l2_packet implementation is explicitly for WinPcap and Windows events. * l2_packet_pcap.c has support for WinPcap, but it requires polling to receive @@ -254,6 +248,18 @@ struct l2_packet_data * l2_packet_init( } +struct l2_packet_data * 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) +{ + return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, + rx_callback_ctx, l2_hdr); +} + + static void l2_packet_deinit_timeout(void *eloop_ctx, void *timeout_ctx) { struct l2_packet_data *l2 = eloop_ctx;