fib: Incorrect logic for IPv6 link-local attached export. 69/34769/1
authorNeale Ranns <neale@graphiant.com>
Sun, 19 Dec 2021 15:10:20 +0000 (15:10 +0000)
committerNeale Ranns <neale@graphiant.com>
Sun, 19 Dec 2021 15:10:20 +0000 (15:10 +0000)
Type: fix

IPv6 link-local FIB entries are never needed for attached export.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I08aad78e754d89ad54d07a211fb7a0d7fbc7a0fe

src/vnet/fib/fib_entry_src.c

index 388f08c..5e66de7 100644 (file)
@@ -1508,7 +1508,7 @@ fib_route_attached_cross_table (const fib_entry_t *fib_entry,
         /* Ignore link local addresses these also can't be imported/exported */
         if (ip6_address_is_link_local_unicast (&pfx->fp_addr.ip6))
         {
-            return (!0);
+            return (0);
         }
         break;
     case FIB_PROTOCOL_IP4: