From 507c0513d1766757d969530c51fe7d368354538d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 19 May 2022 17:21:23 +0200 Subject: 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 --- proto-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto-shell.c') diff --git a/proto-shell.c b/proto-shell.c index e20d539..9cdbc7f 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -129,7 +129,7 @@ proto_shell_update_host_dep(struct proto_shell_dependency *dep) } if (!dep->any) - iface = interface_ip_add_target_route(&dep->host, dep->v6, iface); + iface = interface_ip_add_target_route(&dep->host, dep->v6, iface, false); if (!iface) goto out; -- cgit v1.2.1