]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Removes workaround related to import of kernel device routes.
authorOndrej Zajicek <santiago@crfreenet.org>
Mon, 15 Aug 2011 00:12:54 +0000 (02:12 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 23 Nov 2013 21:48:27 +0000 (22:48 +0100)
Thanks to Benjamin Cama for notification.

sysdep/linux/netlink.c

index 08dc11b6e1f3f3a78c3e50c41dcba662f4e059eb..df9ed622016b2335d0e072abdfc6e409eb7906c8 100644 (file)
@@ -862,19 +862,6 @@ nl_parse_route(struct nlmsghdr *h, int scan)
       else
        {
          ra.dest = RTD_DEVICE;
-
-         /*
-          * In Linux IPv6, 'native' device routes have proto
-          * RTPROT_BOOT and not RTPROT_KERNEL (which they have in
-          * IPv4 and which is expected). We cannot distinguish
-          * 'native' and user defined device routes, so we ignore all
-          * such device routes and for consistency, we have the same
-          * behavior in IPv4. Anyway, users should use RTPROT_STATIC
-          * for their 'alien' routes.
-          */
-
-         if (i->rtm_protocol == RTPROT_BOOT)
-           src = KRT_SRC_KERNEL;
        }
 
       break;