]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
note todo for overlapping networks
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jan 2018 17:14:36 +0000 (12:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jan 2018 17:14:36 +0000 (12:14 -0500)
e.g.

192.168/16 is allowed, and so is 192.168.1/24.  They're overlapping
and the second is unnecessary.

src/modules/proto_radius/proto_radius_udp.c

index baa77644e91e5d7f4de8dafe24120e32880c5b08..c557ee81e8e8bff4a2452cef6ad0deb513790f31 100644 (file)
@@ -1406,6 +1406,15 @@ static int mod_bootstrap(void *instance, CONF_SECTION *cs)
                                return -1;
                        }
 
+                       /*
+                        *      @todo - look for 192.168/16 followed
+                        *      by 192.168.1/24, or vice-versa.
+                        *      i.e. the networks MUST be disjoint!
+                        *
+                        *      Or maybe that can be added as a flag
+                        *      to fr_trie_alloc() ?
+                        */
+
                        /*
                         *      Insert the network into the trie.
                         *      Lookups will return the fr_ipaddr_t of