L2: ARP term - learn but don't send response to GARPs 08/18008/2
authorNeale Ranns <nranns@cisco.com>
Mon, 4 Mar 2019 22:11:25 +0000 (14:11 -0800)
committerJohn Lo <loj@cisco.com>
Tue, 5 Mar 2019 03:54:52 +0000 (03:54 +0000)
Change-Id: I766767d27f37493dc9f2bde1297c1b620cd1e321
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/ethernet/arp.c

index 6b651e7..724cfa8 100644 (file)
@@ -2410,6 +2410,9 @@ arp_term_l2bd (vlib_main_t * vm,
 
          if (PREDICT_FALSE (!macp0))
            goto next_l2_feature;       /* MAC not found */
+         if (PREDICT_FALSE (arp0->ip4_over_ethernet[0].ip4.as_u32 ==
+                            arp0->ip4_over_ethernet[1].ip4.as_u32))
+           goto next_l2_feature;       /* GARP */
 
          /* MAC found, send ARP reply -
             Convert ARP request packet to ARP reply */