X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system.h;h=cfe7c9f3fa1d277a2f2b8da6540a0439260a7ca6;hp=760041731f33a97e9e227abb59704b8d414726f4;hb=6dfd44e127c153e721a398f22b510be1a5e9d0b0;hpb=43d8e8e91a67ba6ecb87621c51614d6325fde7ae diff --git a/system.h b/system.h index 7600417..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" @@ -36,11 +37,15 @@ 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