]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit839e933f00d49cdf27f67a6d09c1b4c4f0fa99f0
tree7c3cae3491a797602578604ced2666e8a1374a2d
parent9302cdeebfba6f5330052d6dd8c930a9e80d83d8
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: d7433464b8f0 ("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