summaryrefslogtreecommitdiff
path: root/interface-ip.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-05-19 17:21:23 +0200
committerFelix Fietkau <nbd@nbd.name>2022-05-19 17:21:24 +0200
commit507c0513d1766757d969530c51fe7d368354538d (patch)
tree21aa6169dacb0e913139a7409672f7342670078d /interface-ip.h
parent4b4849cf5e5a784aca40be55158744811b172e76 (diff)
downloadnetifd-507c0513d1766757d969530c51fe7d368354538d.tar.gz
interface-ip: add support for excluding interfaces in host route lookup
When adding host routes needed for an interface to communicate, it may be necessary to skip the interface itself, in case it provides a default route. This helps with avoiding accidental loops Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'interface-ip.h')
-rw-r--r--interface-ip.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-ip.h b/interface-ip.h
index b17ad94..8843349 100644
--- a/interface-ip.h
+++ b/interface-ip.h
@@ -184,7 +184,8 @@ void interface_ip_flush(struct interface_ip_settings *ip);
void interface_ip_set_enabled(struct interface_ip_settings *ip, bool enabled);
void interface_ip_update_metric(struct interface_ip_settings *ip, int metric);
-struct interface *interface_ip_add_target_route(union if_addr *addr, bool v6, struct interface *iface);
+struct interface *interface_ip_add_target_route(union if_addr *addr, bool v6, struct interface *iface,
+ bool exclude);
struct device_prefix* interface_ip_add_device_prefix(struct interface *iface,
struct in6_addr *addr, uint8_t length, time_t valid_until, time_t preferred_until,