]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Make none-tunnel-dst tunnel port work with lwtunnel
authorwenxu <wenxu@ucloud.cn>
Sat, 19 Jan 2019 05:11:25 +0000 (13:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 01:54:12 +0000 (17:54 -0800)
commit669927bd14f158766a94f662df3a107650097a5c
treeada00d0ab5a5a040df915f8786d520d07cec01f1
parentb3c67f3e6389a38c28bd479a7138fb383ad73fda
ip_tunnel: Make none-tunnel-dst tunnel port work with lwtunnel

ip l add dev tun type gretap key 1000
ip a a dev tun 10.0.0.1/24

Packets with tun-id 1000 can be recived by tun dev. But packet can't
be sent through dev tun for non-tunnel-dst

With this patch: tunnel-dst can be get through lwtunnel like beflow:
ip r a 10.0.0.7 encap ip dst 172.168.0.11 dev tun

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