2016-11-27 20:08:44 +01:00
|
|
|
/*
|
|
|
|
* Common definitions for Wired Ethernet driver interfaces
|
|
|
|
* Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi>
|
|
|
|
* Copyright (c) 2004, Gunter Burchardt <tira@isx.de>
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DRIVER_WIRED_COMMON_H
|
|
|
|
#define DRIVER_WIRED_COMMON_H
|
|
|
|
|
|
|
|
struct driver_wired_common_data {
|
|
|
|
char ifname[IFNAMSIZ + 1];
|
|
|
|
void *ctx;
|
|
|
|
|
|
|
|
int sock; /* raw packet socket for driver access */
|
|
|
|
int pf_sock;
|
|
|
|
int membership, multi, iff_allmulti, iff_up;
|
|
|
|
};
|
|
|
|
|
|
|
|
static const u8 pae_group_addr[ETH_ALEN] =
|
|
|
|
{ 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 };
|
|
|
|
|
2016-11-27 20:08:47 +01:00
|
|
|
int driver_wired_get_ifflags(const char *ifname, int *flags);
|
2016-11-27 20:08:48 +01:00
|
|
|
int driver_wired_set_ifflags(const char *ifname, int flags);
|
2016-11-27 20:08:46 +01:00
|
|
|
int driver_wired_multi(const char *ifname, const u8 *addr, int add);
|
2016-11-27 20:08:45 +01:00
|
|
|
int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add);
|
|
|
|
|
2016-11-27 20:08:44 +01:00
|
|
|
#endif /* DRIVER_WIRED_COMMON_H */
|