summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorzhaoqingling <zhao.qingling@zte.com.cn>2017-12-23 15:20:59 +0800
committerNeale Ranns <nranns@cisco.com>2018-01-06 12:24:48 +0000
commitb4c42cdc6bbbf464f3f0034b2b39d4e20fd23a25 (patch)
tree999eb2ba6505490a6043439085f3ebfcd656f792 /src/vnet
parent6d1caf91147ee8676b57216ca891af0f44d7a074 (diff)
VPP-1110 BVI reply ARP that doesn't request BVI loacl IP.
Change-Id: I66ae618edaa12c2b4e4afe276da689673b02c9cd Signed-off-by: zhaoqingling <zhao.qingling@zte.com.cn>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ethernet/arp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/ethernet/arp.c b/src/vnet/ethernet/arp.c
index f46e6f5a5bc..149f0a5dc96 100644
--- a/src/vnet/ethernet/arp.c
+++ b/src/vnet/ethernet/arp.c
@@ -1123,6 +1123,12 @@ arp_input (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
&arp0->ip4_over_ethernet[0]);
goto drop1;
}
+ else if (arp0->opcode ==
+ clib_host_to_net_u16 (ETHERNET_ARP_OPCODE_request) &&
+ (dst_is_local0 == 0))
+ {
+ goto drop1;
+ }
send_reply:
/* Send a reply.