diff options
author | Steven Barth <steven@midlink.org> | 2014-01-17 00:41:49 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-01-17 00:41:49 +0100 |
commit | 9cd56141e80ea7d19350584d382d303f884d0aa5 (patch) | |
tree | 8247c73cc61193fc844a63fd7a9f773375578d88 /interface.c | |
parent | 1418ef786f275b8458462ee3494573524ca0042c (diff) |
Remove automatically assigned IPv6 routing table
This puts IPv6 routes back into the main table where they are expected.
Instead the newly-fixed source-address restrictions should be used.
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/interface.c b/interface.c index 0032e57..b2c8baf 100644 --- a/interface.c +++ b/interface.c @@ -26,7 +26,6 @@ struct vlist_tree interfaces; static LIST_HEAD(iface_all_users); -static unsigned int interface_serial = 0; enum { IFACE_ATTR_IFNAME, @@ -605,13 +604,6 @@ interface_alloc(const char *name, struct blob_attr *config) DPRINTF("Failed to resolve routing table: %s\n", (char *) blobmsg_data(cur)); } - // Set a default exteranl routing table for IPv6 to do source-based-filtering - struct interface *iface_old = vlist_find(&interfaces, name, iface_old, node); - if (iface_old && iface_old->ip6table > 1000 && iface_old->ip6table < 2000) - iface->ip6table = iface_old->ip6table; - else - iface->ip6table = 1000 + ++interface_serial; - if ((cur = tb[IFACE_ATTR_IP6TABLE])) { if (!system_resolve_rt_table(blobmsg_data(cur), &iface->ip6table)) DPRINTF("Failed to resolve routing table: %s\n", (char *) blobmsg_data(cur)); |