projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cdb17d
)
ip: do not add local routes for host dependencies
author
Felix Fietkau
<nbd@nbd.name>
Wed, 7 Mar 2018 22:14:57 +0000
(23:14 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 7 Mar 2018 22:15:12 +0000
(23:15 +0100)
This avoids creating invalid routes in cases where another daemon is
handling local routes for an interface, e.g. on mesh interfaces
Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index dcf3390ec153127687078f86130dcf8f4187a2a6..6ccc03ee762029c36db15af0e7a0ad090f080561 100644
(file)
--- a/
interface-ip.c
+++ b/
interface-ip.c
@@
-262,6
+262,7
@@
interface_ip_add_target_route(union if_addr *addr, bool v6, struct interface *if
}
}
+done:
if (!r_next) {
free(route);
return NULL;
@@
-272,8
+273,6
@@
interface_ip_add_target_route(union if_addr *addr, bool v6, struct interface *if
route->mtu = r_next->mtu;
route->metric = r_next->metric;
route->table = r_next->table;
-
-done:
route->iface = iface;
if (defaultroute_target)
free(route);