32
32
* Move a device between namespaces
34
extern int lxc_device_move(int ifindex, pid_t pid);
34
extern int lxc_netdev_move_by_index(int ifindex, pid_t pid);
37
37
* Delete a network device
39
extern int lxc_device_delete(const char *name);
42
* Delete a network device by the index
44
extern int lxc_device_delete_index(int ifindex);
47
* Set the device network up
49
extern int lxc_device_up(const char *name);
52
* Set the device network down
54
extern int lxc_device_down(const char *name);
39
extern int lxc_netdev_delete_by_name(const char *name);
40
extern int lxc_netdev_delete_by_index(int ifindex);
57
43
* Change the device name
59
extern int lxc_device_rename(const char *oldname, const char *newname);
45
extern int lxc_netdev_rename_by_name(const char *oldname, const char *newname);
46
extern int lxc_netdev_rename_by_index(int ifindex, const char *newname);
49
* Set the device network up or down
51
extern int lxc_netdev_up(const char *name);
52
extern int lxc_netdev_down(const char *name);
62
55
* Change the mtu size for the specified device
64
extern int lxc_device_set_mtu(const char *name, int mtu);
57
extern int lxc_netdev_set_mtu(const char *name, int mtu);
67
* Create a veth network device
60
* Create a virtual network devices
69
62
extern int lxc_veth_create(const char *name1, const char *name2);
72
* Create a macvlan network device
74
63
extern int lxc_macvlan_create(const char *master, const char *name, int mode);
77
* Create a vlan network device
79
64
extern int lxc_vlan_create(const char *master, const char *name, ushort vid);