X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system.h;h=cfe7c9f3fa1d277a2f2b8da6540a0439260a7ca6;hp=a2bcf044e96e469e1274b98c4d652a8f2ee6a4e9;hb=2f976c53919e49b9008e9d5f23349be3c992e87b;hpb=6103b065ee1fa7c9e3766b981cd090928683a2a6 diff --git a/system.h b/system.h index a2bcf04..cfe7c9f 100644 --- a/system.h +++ b/system.h @@ -1,6 +1,7 @@ #ifndef __NETIFD_SYSTEM_H #define __NETIFD_SYSTEM_H +#include #include #include "device.h" #include "interface-ip.h" @@ -32,14 +33,19 @@ int system_bridge_delif(struct device *bridge, struct device *dev); int system_vlan_add(struct device *dev, int id); int system_vlan_del(struct device *dev); +void system_if_clear_state(struct device *dev); int system_if_up(struct device *dev); int system_if_down(struct device *dev); int system_if_check(struct device *dev); +int system_if_dump_stats(struct device *dev, struct blob_buf *b); int system_add_address(struct device *dev, struct device_addr *addr); int system_del_address(struct device *dev, struct device_addr *addr); int system_add_route(struct device *dev, struct device_route *route); int system_del_route(struct device *dev, struct device_route *route); +int system_flush_routes(void); + +time_t system_get_rtime(void); #endif