summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-04 14:11:25 -0800
committerJohn Lo <loj@cisco.com>2019-03-05 03:54:52 +0000
commitd2bb61417fdb37d192cf25583d7d8fb50be19291 (patch)
treeec22a41090dba6a200d0072c0f2a044fbcc8a6dc /src/vnet
parente1ade684eb5a7e5743abfda47488165452cc5b64 (diff)
L2: ARP term - learn but don't send response to GARPs
Change-Id: I766767d27f37493dc9f2bde1297c1b620cd1e321 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ethernet/arp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/ethernet/arp.c b/src/vnet/ethernet/arp.c
index 6b651e7e20a..724cfa867c8 100644
--- a/src/vnet/ethernet/arp.c
+++ b/src/vnet/ethernet/arp.c
@@ -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 */