1*85732ac8SCy Schubert /* 2*85732ac8SCy Schubert * Common definitions for Wired Ethernet driver interfaces 3*85732ac8SCy Schubert * Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi> 4*85732ac8SCy Schubert * Copyright (c) 2004, Gunter Burchardt <tira@isx.de> 5*85732ac8SCy Schubert * 6*85732ac8SCy Schubert * This software may be distributed under the terms of the BSD license. 7*85732ac8SCy Schubert * See README for more details. 8*85732ac8SCy Schubert */ 9*85732ac8SCy Schubert 10*85732ac8SCy Schubert #ifndef DRIVER_WIRED_COMMON_H 11*85732ac8SCy Schubert #define DRIVER_WIRED_COMMON_H 12*85732ac8SCy Schubert 13*85732ac8SCy Schubert struct driver_wired_common_data { 14*85732ac8SCy Schubert char ifname[IFNAMSIZ + 1]; 15*85732ac8SCy Schubert void *ctx; 16*85732ac8SCy Schubert 17*85732ac8SCy Schubert int sock; /* raw packet socket for driver access */ 18*85732ac8SCy Schubert int pf_sock; 19*85732ac8SCy Schubert int membership, multi, iff_allmulti, iff_up; 20*85732ac8SCy Schubert }; 21*85732ac8SCy Schubert 22*85732ac8SCy Schubert static const u8 pae_group_addr[ETH_ALEN] = 23*85732ac8SCy Schubert { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 }; 24*85732ac8SCy Schubert 25*85732ac8SCy Schubert int wired_multicast_membership(int sock, int ifindex, const u8 *addr, int add); 26*85732ac8SCy Schubert int driver_wired_get_ssid(void *priv, u8 *ssid); 27*85732ac8SCy Schubert int driver_wired_get_bssid(void *priv, u8 *bssid); 28*85732ac8SCy Schubert int driver_wired_get_capa(void *priv, struct wpa_driver_capa *capa); 29*85732ac8SCy Schubert 30*85732ac8SCy Schubert int driver_wired_init_common(struct driver_wired_common_data *common, 31*85732ac8SCy Schubert const char *ifname, void *ctx); 32*85732ac8SCy Schubert void driver_wired_deinit_common(struct driver_wired_common_data *common); 33*85732ac8SCy Schubert 34*85732ac8SCy Schubert #endif /* DRIVER_WIRED_COMMON_H */ 35