netlink.c File Reference
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "priv_netlink.h"
#include "netlink.h"
Go to the source code of this file.
Classes |
struct | netlink_data |
Functions |
void | netlink_deinit (struct netlink_data *netlink) |
struct netlink_data * | netlink_init (struct netlink_config *cfg) |
static void | netlink_receive (int sock, void *eloop_ctx, void *sock_ctx) |
static void | netlink_receive_link (struct netlink_data *netlink, void(*cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf, size_t len), struct nlmsghdr *h) |
int | netlink_send_oper_ifla (struct netlink_data *netlink, int ifindex, int linkmode, int operstate) |
Function Documentation
static void netlink_receive |
( |
int |
sock, |
|
|
void * |
eloop_ctx, |
|
|
void * |
sock_ctx | |
|
) |
| | [static] |
static void netlink_receive_link |
( |
struct netlink_data * |
netlink, |
|
|
void(*)(void *ctx, struct ifinfomsg *ifi, u8 *buf, size_t len) |
cb, |
|
|
struct nlmsghdr * |
h | |
|
) |
| | [static] |
int netlink_send_oper_ifla |
( |
struct netlink_data * |
netlink, |
|
|
int |
ifindex, |
|
|
int |
linkmode, |
|
|
int |
operstate | |
|
) |
| | |