diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-19 20:51:57 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-19 20:51:57 +0200 |
commit | 33a44b9c7d5e8c87303b8126fe9e01f8979f48e5 (patch) | |
tree | 89132c13680bf45b40af171194c3dd1e27f9aae2 /interface-ip.h | |
parent | a0dedf26ed338ef420784541da0676ad91e181a7 (diff) |
rework route handling, move parser code to interface-ip.c, add extra options and add further support for pulling routes from config
Diffstat (limited to 'interface-ip.h')
-rw-r--r-- | interface-ip.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/interface-ip.h b/interface-ip.h index 4a1776d..13cd10c 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -25,6 +25,9 @@ struct device_addr { struct vlist_node node; enum device_addr_flags flags; + bool enabled; + + struct device *device; /* must be last */ unsigned int mask; @@ -35,10 +38,13 @@ struct device_route { struct vlist_node node; enum device_addr_flags flags; + bool enabled; bool keep; union if_addr nexthop; struct device *device; + int metric; + int mtu; /* must be last */ unsigned int mask; @@ -62,9 +68,12 @@ void interface_add_dns_server_list(struct interface_ip_settings *ip, struct blob void interface_add_dns_search_list(struct interface_ip_settings *ip, struct blob_attr *list); void interface_write_resolv_conf(void); +void interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6); + void interface_ip_update_start(struct interface_ip_settings *ip); void interface_ip_update_complete(struct interface_ip_settings *ip); void interface_ip_flush(struct interface_ip_settings *ip); +void interface_ip_set_enabled(struct interface_ip_settings *ip, bool enabled); #endif |