]> git.ipfire.org Git - location/libloc.git/commitdiff
location-importer: DELETE multicast and "reserved for future usage" address space
authorPeter Müller <peter.mueller@ipfire.org>
Wed, 13 May 2020 19:33:54 +0000 (19:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 May 2020 20:46:20 +0000 (20:46 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location-importer.in

index 3c179bd7a456c4b527fb8aac7dfdadd0ea383806..f1da3e4289f1e43f9e516532f9ecf031d685bb75 100644 (file)
@@ -543,6 +543,10 @@ class CLI(object):
                                        -- DELETE IPv6 to IPv4 (6to4) address space
                                        DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.88.99.0/24';
 
+                                       -- DELETE multicast and reserved address space
+                                       DELETE FROM announcements WHERE family(network) = 4 AND network <<= '224.0.0.0/4';
+                                       DELETE FROM announcements WHERE family(network) = 4 AND network <<= '240.0.0.0/4';
+
                                        -- Delete networks that are too small to be in the global routing table
                                        DELETE FROM announcements WHERE family(network) = 6 AND masklen(network) > 48;
                                        DELETE FROM announcements WHERE family(network) = 4 AND masklen(network) > 24;