From: Neale Ranns Date: Mon, 4 Mar 2019 22:11:25 +0000 (-0800) Subject: L2: ARP term - learn but don't send response to GARPs X-Git-Tag: v19.04-rc1~335 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=d2bb61417fdb37d192cf25583d7d8fb50be19291 L2: ARP term - learn but don't send response to GARPs Change-Id: I766767d27f37493dc9f2bde1297c1b620cd1e321 Signed-off-by: Neale Ranns --- 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 */