]> git.puffer.fish Git - mirror/frr.git/commitdiff
ripd: ignore request for RTEs from unknown address-families
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 10 Nov 2016 14:54:07 +0000 (12:54 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 25 Nov 2016 13:34:39 +0000 (11:34 -0200)
Fixes IxANVL RIP test 6.5.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripd/ripd.c

index ce7a6d1e9940b8f085ba992c77b9e5c045182cb6..d84f863de2e938d23163c04364f5e6ff8a726f6c 100644 (file)
@@ -1687,6 +1687,9 @@ rip_request_process (struct rip_packet *packet, int size,
     }
   else
     {
+      if (ntohs (rte->family) != AF_INET)
+       return;
+
       /* Examine the list of RTEs in the Request one by one.  For each
         entry, look up the destination in the router's routing
         database and, if there is a route, put that route's metric in