wpa_supplicant / hostapd 2.0

netlink.h

Go to the documentation of this file.
00001 
00010 #ifndef NETLINK_H
00011 #define NETLINK_H
00012 
00013 struct netlink_data;
00014 struct ifinfomsg;
00015 
00016 struct netlink_config {
00017         void *ctx;
00018         void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
00019                            size_t len);
00020         void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
00021                            size_t len);
00022 };
00023 
00024 struct netlink_data * netlink_init(struct netlink_config *cfg);
00025 void netlink_deinit(struct netlink_data *netlink);
00026 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
00027                            int linkmode, int operstate);
00028 
00029 #endif /* NETLINK_H */
00030 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines