mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 18:58:21 -05:00
0f3d578efc
Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
29 lines
741 B
C
29 lines
741 B
C
/*
|
|
* Netlink helper functions for driver wrappers
|
|
* Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef NETLINK_H
|
|
#define NETLINK_H
|
|
|
|
struct netlink_data;
|
|
struct ifinfomsg;
|
|
|
|
struct netlink_config {
|
|
void *ctx;
|
|
void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
|
|
size_t len);
|
|
void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
|
|
size_t len);
|
|
};
|
|
|
|
struct netlink_data * netlink_init(struct netlink_config *cfg);
|
|
void netlink_deinit(struct netlink_data *netlink);
|
|
int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
|
|
int linkmode, int operstate);
|
|
|
|
#endif /* NETLINK_H */
|