diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-05-19 17:21:23 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-05-19 17:21:24 +0200 |
commit | 507c0513d1766757d969530c51fe7d368354538d (patch) | |
tree | 21aa6169dacb0e913139a7409672f7342670078d /proto-shell.c | |
parent | 4b4849cf5e5a784aca40be55158744811b172e76 (diff) | |
download | netifd-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 'proto-shell.c')
-rw-r--r-- | proto-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |