system-linux: add a function to clear bridge membership of a device and bring down...
[project/netifd.git] / system.h
1 #ifndef __NETIFD_SYSTEM_H
2 #define __NETIFD_SYSTEM_H
3
4 #include <sys/socket.h>
5 #include "device.h"
6 #include "interface-ip.h"
7
8 int system_init(void);
9
10 int system_bridge_addbr(struct device *bridge);
11 int system_bridge_delbr(struct device *bridge);
12 int system_bridge_addif(struct device *bridge, struct device *dev);
13 int system_bridge_delif(struct device *bridge, struct device *dev);
14
15 int system_vlan_add(struct device *dev, int id);
16 int system_vlan_del(struct device *dev);
17
18 int system_if_up(struct device *dev);
19 int system_if_down(struct device *dev);
20 int system_if_check(struct device *dev);
21
22 int system_add_address(struct device *dev, struct device_addr *addr);
23 int system_del_address(struct device *dev, struct device_addr *addr);
24
25 int system_add_route(struct device *dev, struct device_route *route);
26 int system_del_route(struct device *dev, struct device_route *route);
27
28 #endif