lwtunnel: add options process for arp request
authorXin Long <lucien.xin@gmail.com>
Wed, 6 Nov 2019 09:01:03 +0000 (17:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:14:21 +0000 (21:14 -0800)
commitf52f11ec8ad49f697e5158ff87c39b44dab45f51
tree7c3cae3491a797602578604ced2666e8a1374a2d
parent426071f1f3995d7e9603246bffdcbf344cd31719
lwtunnel: add options process for arp request

Without options copied to the dst tun_info in iptunnel_metadata_reply()
called by arp_process for handling arp_request, the generated arp_reply
packet may be dropped or sent out with wrong options for some tunnels
like erspan and vxlan, and the traffic will break.

Fixes: 63d008a4e9ee ("ipv4: send arp replies to the correct tunnel")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c