Allows to add identical routes in different routing tables
Signed-off-by: Hans Dedecker <[email protected]>
---
interface-ip.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/interface-ip.c b/interface-ip.c
index d5a3832..c641233 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -399,6 +399,9 @@ route_cmp(const void *k1, const void *k2, void *ptr)
if (r1->sourcemask != r2->sourcemask)
return r1->sourcemask - r2->sourcemask;
+ if (r1->table != r2->table)
+ return r1->table - r2->table;
+
int maskcmp = memcmp(&r1->source, &r2->source, sizeof(r1->source));
if (maskcmp)
return maskcmp;
--
1.7.1
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel