FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
netlink.c File Reference
+ Include dependency graph for netlink.c:

Go to the source code of this file.

Data Structures

struct  vnet_netlink_msg_t
 

Functions

static void vnet_netlink_msg_init (vnet_netlink_msg_t *m, u16 type, u16 flags, void *msg_data, int msg_len)
 
static void vnet_netlink_msg_add_rtattr (vnet_netlink_msg_t *m, u16 rta_type, void *rta_data, int rta_data_len)
 
static clib_error_tvnet_netlink_msg_send (vnet_netlink_msg_t *m, vnet_netlink_msg_t **replies)
 
clib_error_tvnet_netlink_set_link_name (int ifindex, char *new_ifname)
 
clib_error_tvnet_netlink_set_link_netns (int ifindex, int netns_fd, char *new_ifname)
 
clib_error_tvnet_netlink_set_link_master (int ifindex, char *master_ifname)
 
clib_error_tvnet_netlink_set_link_addr (int ifindex, u8 *mac)
 
clib_error_tvnet_netlink_set_link_state (int ifindex, int up)
 
clib_error_tvnet_netlink_get_link_mtu (int ifindex, u32 *mtu)
 
clib_error_tvnet_netlink_set_link_mtu (int ifindex, int mtu)
 
clib_error_tvnet_netlink_add_ip4_addr (int ifindex, void *addr, int pfx_len)
 
clib_error_tvnet_netlink_add_ip6_addr (int ifindex, void *addr, int pfx_len)
 
clib_error_tvnet_netlink_add_ip4_route (void *dst, u8 dst_len, void *gw)
 
clib_error_tvnet_netlink_add_ip6_route (void *dst, u8 dst_len, void *gw)
 

Function Documentation

◆ vnet_netlink_add_ip4_addr()

clib_error_t* vnet_netlink_add_ip4_addr ( int  ifindex,
void *  addr,
int  pfx_len 
)

Definition at line 317 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_add_ip4_route()

clib_error_t* vnet_netlink_add_ip4_route ( void *  dst,
u8  dst_len,
void *  gw 
)

Definition at line 363 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_add_ip6_addr()

clib_error_t* vnet_netlink_add_ip6_addr ( int  ifindex,
void *  addr,
int  pfx_len 
)

Definition at line 340 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_add_ip6_route()

clib_error_t* vnet_netlink_add_ip6_route ( void *  dst,
u8  dst_len,
void *  gw 
)

Definition at line 388 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_get_link_mtu()

clib_error_t* vnet_netlink_get_link_mtu ( int  ifindex,
u32 mtu 
)

Definition at line 226 of file netlink.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_netlink_msg_add_rtattr()

static void vnet_netlink_msg_add_rtattr ( vnet_netlink_msg_t m,
u16  rta_type,
void *  rta_data,
int  rta_data_len 
)
static

Definition at line 52 of file netlink.c.

+ Here is the caller graph for this function:

◆ vnet_netlink_msg_init()

static void vnet_netlink_msg_init ( vnet_netlink_msg_t m,
u16  type,
u16  flags,
void *  msg_data,
int  msg_len 
)
static

Definition at line 36 of file netlink.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_netlink_msg_send()

static clib_error_t* vnet_netlink_msg_send ( vnet_netlink_msg_t m,
vnet_netlink_msg_t **  replies 
)
static

Definition at line 66 of file netlink.c.

+ Here is the caller graph for this function:

◆ vnet_netlink_set_link_addr()

clib_error_t* vnet_netlink_set_link_addr ( int  ifindex,
u8 mac 
)

Definition at line 189 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_set_link_master()

clib_error_t* vnet_netlink_set_link_master ( int  ifindex,
char *  master_ifname 
)

Definition at line 166 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_set_link_mtu()

clib_error_t* vnet_netlink_set_link_mtu ( int  ifindex,
int  mtu 
)

Definition at line 299 of file netlink.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_netlink_set_link_name()

clib_error_t* vnet_netlink_set_link_name ( int  ifindex,
char *  new_ifname 
)

Definition at line 124 of file netlink.c.

+ Here is the call graph for this function:

◆ vnet_netlink_set_link_netns()

clib_error_t* vnet_netlink_set_link_netns ( int  ifindex,
int  netns_fd,
char *  new_ifname 
)

Definition at line 144 of file netlink.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_netlink_set_link_state()

clib_error_t* vnet_netlink_set_link_state ( int  ifindex,
int  up 
)

Definition at line 207 of file netlink.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: