]> 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)
commit84da369f6c7ccd4b71fb1d013ba6b947b0b24976
tree7c3cae3491a797602578604ced2666e8a1374a2d
parentaee5fbf77043272b18ea2a1c33565eb0b8f42d7a
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: e54dc68016f4 ("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