]> git.baikalelectronics.ru Git - kernel.git/commit
iptunnel: Set tun_flags in the iptunnel_metadata_reply from src
authorwenxu <wenxu@ucloud.cn>
Sun, 23 Dec 2018 08:18:39 +0000 (16:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Dec 2018 22:20:25 +0000 (14:20 -0800)
commit755ba3bb840317b3e862354d8eddc7f9bbcb8044
tree214f39ee45cff0c006d5c27d902eaa52267151f0
parente1ecac452289cbccef408cd74592452ad24b20ae
iptunnel: Set tun_flags in the iptunnel_metadata_reply from src

ip l add tun type gretap external
ip r a 10.0.0.2 encap ip id 1000 dst 172.168.0.2 key dev tun
ip a a 10.0.0.1/24 dev tun

The peer arp request to 10.0.0.1 with tunnel_id, but the arp reply
only set the tun_id but not the tun_flags with TUNNEL_KEY. The arp
reply packet don't contain tun_id field.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c