ipv6: do not create neighbor entries for local delivery
Subsystems (3)
PATCH 1/1 ipv6: do not create neighbor entries for local delivery
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/route.c +1 -1
@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);
Signature · 1 line
1.8.1
David Miller
maintainerFrom: Jiri Pirko <[email protected]>
Date: Wed, 30 Jan 2013 09:26:08 +0100
Quoted 6 lines
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Quoted 7 lines
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>
Applied and queued up for -stable, thanks.
Quoted 22 lines · Jiri Pirko
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/route.c +0
-0
net/ipv6/route.c restart: · line 934
Quoted 8 lines
net/ipv6/route.c +1
-1@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms
--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 ms
This also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms
--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 ms
However with this patch, this is very broken:
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument
--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Thanks,
Debabrata
Quoted 50 lines · Debabrata Banerjee
Quoted 9 lines · Jiri Pirko
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Quoted 6 lines
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>[...]
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 7 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Which kernel version are you using? Perhaps you miss another fix? It works for me. Also I cannot find this patch in net-next?
Greetings,
Hannes
Em 08-08-2013 16:01, Hannes Frederic Sowa escreveu:
Quoted 56 lines · Debabrata Banerjee
Quoted 55 lines · Jiri Pirko
Quoted 9 lines
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Quoted 6 lines
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>[...]
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument
Quoted 5 lines
Quoted 2 lines
--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0msWhich kernel version are you using? Perhaps you miss another fix? It works for me. Also I cannot find this patch in net-next?
It wasn't needed/applied as the route cache was removed.
Regards,
Marcelo
Quoted 42 lines · Marcelo Ricardo Leitner
Em 08-08-2013 16:01, Hannes Frederic Sowa escreveu:
Quoted 41 lines · Debabrata Banerjee
Quoted 40 lines · Jiri Pirko
Quoted 1 line
From: Marcelo Ricardo Leitner <[email protected]>
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0msWhich kernel version are you using? Perhaps you miss another fix? It works for
me. Also I cannot find this patch in net-next?It wasn't needed/applied as the route cache was removed.
Do you mean the rt->n(eighbour) removal? There was no removal of a route cache in IPv6 land. The cache is merely in the routing table itself.
Greetings,
Hannes
Em 08-08-2013 16:06, Hannes Frederic Sowa escreveu:
Quoted 46 lines · Marcelo Ricardo Leitner
Quoted 45 lines
Em 08-08-2013 16:01, Hannes Frederic Sowa escreveu:
Quoted 44 lines · Debabrata Banerjee
Quoted 42 lines · Jiri Pirko
Quoted 1 line
From: Marcelo Ricardo Leitner <[email protected]>
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Which kernel version are you using? Perhaps you miss another fix? It works for
me. Also I cannot find this patch in net-next?It wasn't needed/applied as the route cache was removed.
Do you mean the
rt->n(eighbour)removal? There was no removal of a route cache in IPv6 land. The cache is merely in the routing table itself.
Yes, my bad, sorry. s/route/neighour/. It was discussed on this thread:
http://article.gmane.org/gmane.linux.network/255318
"Note also that YOSHIFUJI Hideaki's patches to remove the cached neighbour entirely from ipv6 routes will have the same effect, so your patch won't be needed."
Thanks,
Marcelo
Quoted 58 lines · Marcelo Ricardo Leitner
Em 08-08-2013 16:06, Hannes Frederic Sowa escreveu:
Quoted 51 lines · Marcelo Ricardo Leitner
Quoted 50 lines
Em 08-08-2013 16:01, Hannes Frederic Sowa escreveu:
Quoted 48 lines · Debabrata Banerjee
Quoted 35 lines · Jiri Pirko
Quoted 1 line
From: Marcelo Ricardo Leitner <[email protected]>
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 7 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0msWhich kernel version are you using? Perhaps you miss another fix? It works
for
me. Also I cannot find this patch in net-next?Quoted 5 lines
Quoted 1 line
It wasn't needed/applied as the route cache was removed.
Do you mean the
rt->n(eighbour)removal? There was no removal of a route cache
in IPv6 land. The cache is merely in the routing table itself.
Quoted 6 lines
Yes, my bad, sorry. s/route/neighour/. It was discussed on this thread:
http://article.gmane.org/gmane.linux.network/255318"Note also that YOSHIFUJI Hideaki's patches to remove the cached neighbour entirely from ipv6 routes will have the same effect, so your patch won't be needed."
Ok, thanks!
But it somehow managed to get into stable kernels, nor? Kernels after rt->n removal should not be affected. At least the example above works on my net-next kernel correctly.
Greetings,
Hannes
Quoted 4 lines · Hannes Frederic Sowa
Which kernel version are you using? Perhaps you miss another fix? It works for me. Also I cannot find this patch in net-next?
Just pulled and tried longterm 3.2.50, behavior is the same, broken.
-Debabrata
Em 08-08-2013 16:16, Hannes Frederic Sowa escreveu:
Quoted 66 lines · Marcelo Ricardo Leitner
Quoted 58 lines
Em 08-08-2013 16:06, Hannes Frederic Sowa escreveu:
Quoted 51 lines · Marcelo Ricardo Leitner
Quoted 50 lines
Em 08-08-2013 16:01, Hannes Frederic Sowa escreveu:
Quoted 48 lines · Debabrata Banerjee
Quoted 35 lines · Jiri Pirko
Quoted 1 line
From: Marcelo Ricardo Leitner <[email protected]>
I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 7 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument--- 2001::9 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0msWhich kernel version are you using? Perhaps you miss another fix? It works
for
me. Also I cannot find this patch in net-next?Quoted 5 lines
Quoted 1 line
It wasn't needed/applied as the route cache was removed.
Do you mean the
rt->n(eighbour)removal? There was no removal of a route cache
in IPv6 land. The cache is merely in the routing table itself.Quoted 6 lines
Yes, my bad, sorry. s/route/neighour/. It was discussed on this thread:
http://article.gmane.org/gmane.linux.network/255318"Note also that YOSHIFUJI Hideaki's patches to remove the cached neighbour entirely from ipv6 routes will have the same effect, so your patch won't be needed."
Quoted 5 lines
Ok, thanks!
But it somehow managed to get into stable kernels, nor? Kernels after
rt->nremoval should not be affected. At least the example above works on my net-next kernel correctly.
Yes, it did, as a intermediate fix, let's say. As we wouldn't remove the cache for -stable tree, this patch seems reasonable to avoid creating a flood of non-wanted entries. Without it, when using TPROXY, it was creating neighbor entries for IP addresses that were behind a gateway.
In case it helps:
http://thread.gmane.org/gmane.linux.network/255234/focus=257293
http://article.gmane.org/gmane.linux.network/257433 (this thread, actually)
Thanks,
Marcelo
Quoted 65 lines · Debabrata Banerjee
Quoted 22 lines · Jiri Pirko
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/route.c +0
-0net/ipv6/route.c restart: · line 934
Quoted 8 lines
net/ipv6/route.c +1
-1@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 ms
Quoted 6 lines
However with this patch, this is very broken:
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argument
I do think that the patch above is fine. I wonder why you get a blackhole route back here. Maybe backtracking in ip6_pol_route or in fib6_lookup_1 was way too aggressive?
Quoted 68 lines · Hannes Frederic Sowa
Quoted 67 lines · Debabrata Banerjee
Quoted 22 lines · Jiri Pirko
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/route.c +0
-0net/ipv6/route.c restart: · line 934
Quoted 8 lines
net/ipv6/route.c +1
-1@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 8 lines
Quoted 4 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argumentI do think that the patch above is fine. I wonder why you get a blackhole route back here. Maybe backtracking in
ip6_pol_routeor infib6_lookup_1was way too aggressive?
Ah sorry, before rt->n removal everything worked a bit
different. rt6_alloc_cow did fill rt->n back then. To fix both things we would have to bind a neighbour towards the loopback interface into the non-cloned rt6_info if it feeds packets towards lo. Pretty big change for old stable kernels, I guess. :/
Marcelo, any idea how to deal with this? My guess would be a revert, but I don't know the impact on the tproxy issue.
Greetings,
Hannes
Em 08-08-2013 17:16, Hannes Frederic Sowa escreveu:
Quoted 78 lines · Hannes Frederic Sowa
Quoted 68 lines · Debabrata Banerjee
Quoted 67 lines · Jiri Pirko
Quoted 22 lines
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/route.c +0
-0net/ipv6/route.c restart: · line 934
Quoted 8 lines
net/ipv6/route.c +1
-1@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 8 lines
Quoted 4 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argumentI do think that the patch above is fine. I wonder why you get a blackhole route back here. Maybe backtracking in
ip6_pol_routeor infib6_lookup_1was way too aggressive?
Quoted 8 lines
Ah sorry, before
rt->nremoval everything worked a bit
different.rt6_alloc_cowdid fillrt->nback then. To fix both things we would have to bind a neighbour towards the loopback interface into the non-clonedrt6_infoif it feeds packets towards lo. Pretty big change for old stable kernels, I guess. :/Marcelo, any idea how to deal with this? My guess would be a revert, but I don't know the impact on the tproxy issue.
Good question :) Nothing so far, sorry.
The impact would be returning to the previous state, that a tproxy server is limited to neighbor cache size. And just making it larger is not a good option as it will introduce big latency spikes during cleanup.
I'll have to rebuild the tproxy environment I had to test this out again, it will take a while. Keep you posted.
Cheers,
Marcelo
Em 08-08-2013 17:45, Marcelo Ricardo Leitner escreveu:
Quoted 88 lines
Em 08-08-2013 17:16, Hannes Frederic Sowa escreveu:
Quoted 78 lines · Hannes Frederic Sowa
Quoted 68 lines · Debabrata Banerjee
Quoted 67 lines · Jiri Pirko
Quoted 22 lines
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/route.c +0
-0net/ipv6/route.c restart: · line 934
Quoted 8 lines
net/ipv6/route.c +1
-1@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 8 lines
Quoted 4 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argumentI do think that the patch above is fine. I wonder why you get a blackhole route back here. Maybe backtracking in
ip6_pol_routeor infib6_lookup_1was way too aggressive?Quoted 8 lines
Ah sorry, before
rt->nremoval everything worked a bit
different.rt6_alloc_cowdid fillrt->nback then. To fix both things we would have to bind a neighbour towards the loopback interface into the non-clonedrt6_infoif it feeds packets towards lo. Pretty big change for old stable kernels, I guess. :/Marcelo, any idea how to deal with this? My guess would be a revert, but I don't know the impact on the tproxy issue.
Quoted 8 lines
Good question :) Nothing so far, sorry.
The impact would be returning to the previous state, that a tproxy server is limited to neighbor cache size. And just making it larger is not a good option as it will introduce big latency spikes during cleanup.
I'll have to rebuild the tproxy environment I had to test this out again, it will take a while. Keep you posted.
Aye, and thanks for assisting on this, Hannes, appreciated.
Cheers,
Marcelo
Em 08-08-2013 17:16, Hannes Frederic Sowa escreveu:
Quoted 78 lines · Hannes Frederic Sowa
Quoted 68 lines · Debabrata Banerjee
Quoted 67 lines · Jiri Pirko
Quoted 22 lines
From: Marcelo Ricardo Leitner <[email protected]>
They will be created at output, if ever needed. This avoids creating empty neighbor entries when TPROXYing/Forwarding packets for addresses that are not even directly reachable.
Note that IPv4 already handles it this way. No neighbor entries are created for local input.
Tested by myself and customer.
Signed-off-by Jiri Pirko <[email protected]>Signed-off-by Marcelo Ricardo Leitner <[email protected]>--- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/ipv6/route.c +0
-0net/ipv6/route.c restart: · line 934
Quoted 8 lines
net/ipv6/route.c +1
-1@@ -928,7 +928,7 @@ restart:dst_hold (&rt->dst);read_unlock_bh (&table->tb6_lock); -if (!rt->n && !(rt->rt6i_flags &RTF_NONEXTHOP )) +if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);I'm not sure this patch is doing the right thing. It seems to break IPv6 loopback functionality, it is no longer equivalent to IPv4, as stated above. It doesn't just stop neighbor creation but it stops cached route creation. Seems like a scary change for a stable tree. See below:
$ ip -4 route show local local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1This local route enables us to use the whole loopback network, any address inside 127.0.0.0/8 will work.
$ ping -c1 127.0.0.9 PING 127.0.0.9 (127.0.0.9) 56(84) bytes of data. 64 bytes from 127.0.0.9: icmp_seq=1 ttl=64 time=0.012 ms--- 127.0.0.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.012/0.012/0.012/0.000 msThis also used to work equivalently for IPv6 local loopback routes:
$ ip -6 route add local 2001:::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes 64 bytes from 2001::9: icmp_seq=1 ttl=64 time=0.010 ms--- 2001::9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.010/0.010/0.010/0.000 msHowever with this patch, this is very broken:
Quoted 8 lines
Quoted 4 lines
$ ip -6 route add local 2001::/64 dev lo $ ping6 -c1 2001::9 PING 2001::9(2001::9) 56 data bytes ping: sendmsg: Invalid argumentI do think that the patch above is fine. I wonder why you get a blackhole route back here. Maybe backtracking in
ip6_pol_routeor infib6_lookup_1was way too aggressive?
Quoted 8 lines
Ah sorry, before
rt->nremoval everything worked a bit
different.rt6_alloc_cowdid fillrt->nback then. To fix both things we would have to bind a neighbour towards the loopback interface into the non-clonedrt6_infoif it feeds packets towards lo. Pretty big change for old stable kernels, I guess. :/Marcelo, any idea how to deal with this? My guess would be a revert, but I don't know the impact on the tproxy issue.
Hannes, would something like this be acceptable? I'm hoping it's not too ugly/hacky... as far as I could track back, input and output routines were merged mainly due code similarity.
TPROXY scenario needs to not create this neighbor entries on INPUT path, while Debabrata ping test needs it on OUTPUT path. This patch limits my previous patch to INPUT only then.
Initial testing here seems good, TPROXY seems to be working as expected and also the ping6 test.
What do you think?
Regards,
Marcelo
net/ipv6/route.c +7 -4
@@ -791,7 +791,7 @@ static struct rt6_info *rt6_alloc_clone(struct rt6_info *ort, }static struct rt6_info *ip6_pol_route (struct net *net,struct fib6_table *table,int oif, -struct flowi6 *fl6,int flags) +struct flowi6 *fl6,int flags,int output) {struct fib6_node *fn;struct rt6_info *rt, *nrt;
@@ -799,8 +799,11 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,int attempts =3 ;int err;int reachable = net->ipv6.devconf_all->forwarding ?0 :RT6_LOOKUP_F_REACHABLE ; +int local =RTF_NONEXTHOP ; strict |= flags &RT6_LOOKUP_F_IFACE ; +if (!output) + local |=RTF_LOCAL ; relookup:read_lock_bh (&table->tb6_lock);
@@ -820,7 +823,7 @@ restart:read_unlock_bh (&table->tb6_lock);if (!dst_get_neighbour_raw (&rt->dst) - && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) + && !(rt->rt6i_flags & local)) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);
@@ -864,7 +867,7 @@ out2:static struct rt6_info *ip6_pol_route_input (struct net *net,struct fib6_table *table,struct flowi6 *fl6,int flags) { -return ip6_pol_route (net, table, fl6->flowi6_iif, fl6, flags); +return ip6_pol_route (net, table, fl6->flowi6_iif, fl6, flags,0 ); }void ip6_route_input (struct sk_buff *skb)
@@ -890,7 +893,7 @@ void ip6_route_input(struct sk_buff *skb)static struct rt6_info *ip6_pol_route_output (struct net *net,struct fib6_table *table,struct flowi6 *fl6,int flags) { -return ip6_pol_route (net, table, fl6->flowi6_oif, fl6, flags); +return ip6_pol_route (net, table, fl6->flowi6_oif, fl6, flags,1 ); } struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,
Hi Marcelo!
Quoted 3 lines · Marcelo Ricardo Leitner
Hannes, would something like this be acceptable? I'm hoping it's not too ugly/hacky... as far as I could track back, input and output routines were merged mainly due code similarity.
Your idea seems sound and I don't think it is very ugly or hacky. It's as minimal as a stable-only patch should be. But we could simplify the logic a bit. ;) See below.
Quoted 3 lines
TPROXY scenario needs to not create this neighbor entries on INPUT path, while Debabrata ping test needs it on OUTPUT path. This patch limits my previous patch to INPUT only then.
Yes, agreed. I don't see anything which could break because of this patch. So I would go with it.
Quoted 11 lines
Initial testing here seems good, TPROXY seems to be working as expected and also the ping6 test.
What do you think?
net/ipv6/route.c +0
-0
net/ipv6/route.c static struct rt6_info *rt6_alloc_clone(struct rt6_info *ort, · line 794
Quoted 5 lines
net/ipv6/route.c +1
-1@@ -791,7 +791,7 @@ static struct rt6_info *rt6_alloc_clone(struct rt6_info *ort, }static struct rt6_info *ip6_pol_route (struct net *net,struct fib6_table *table,int oif, -struct flowi6 *fl6,int flags) +struct flowi6 *fl6,int flags,int output)
bool input
net/ipv6/route.c static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, · line 806
Quoted 12 lines
net/ipv6/route.c +3
-0{struct fib6_node *fn;struct rt6_info *rt, *nrt;@@ -799,8 +799,11 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,int attempts =3 ;int err;int reachable = net->ipv6.devconf_all->forwarding ?0 :RT6_LOOKUP_F_REACHABLE ; +int local =RTF_NONEXTHOP ; strict |= flags &RT6_LOOKUP_F_IFACE ; +if (!output) + local |=RTF_LOCAL ;
if (input) local |= RTF_LOCAL;
Quoted 13 lines
net/ipv6/route.c +1
-1relookup:read_lock_bh (&table->tb6_lock);@@ -820,7 +823,7 @@ restart:read_unlock_bh (&table->tb6_lock);if (!dst_get_neighbour_raw (&rt->dst) - && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) + && !(rt->rt6i_flags & local)) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);
net/ipv6/route.c out2: · line 870
Quoted 5 lines
net/ipv6/route.c +1
-1@@ -864,7 +867,7 @@ out2:static struct rt6_info *ip6_pol_route_input (struct net *net,struct fib6_table *table,struct flowi6 *fl6,int flags) { -return ip6_pol_route (net, table, fl6->flowi6_iif, fl6, flags); +return ip6_pol_route (net, table, fl6->flowi6_iif, fl6, flags,0 );
true);
net/ipv6/route.c void ip6_route_input(struct sk_buff *skb) · line 896
Quoted 9 lines
net/ipv6/route.c +1
-1}void ip6_route_input (struct sk_buff *skb)@@ -890,7 +893,7 @@ void ip6_route_input(struct sk_buff *skb)static struct rt6_info *ip6_pol_route_output (struct net *net,struct fib6_table *table,struct flowi6 *fl6,int flags) { -return ip6_pol_route (net, table, fl6->flowi6_oif, fl6, flags); +return ip6_pol_route (net, table, fl6->flowi6_oif, fl6, flags,1 );
false);
net/ipv6/route.c void ip6_route_input(struct sk_buff *skb) · line 899
Quoted 3 lines
net/ipv6/route.c +0
-0} struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,
Thanks,
Hannes
Em 12-08-2013 19:26, Hannes Frederic Sowa escreveu:
Quoted 11 lines
Hi Marcelo!
Quoted 3 lines · Marcelo Ricardo Leitner
Hannes, would something like this be acceptable? I'm hoping it's not too ugly/hacky... as far as I could track back, input and output routines were merged mainly due code similarity.
Your idea seems sound and I don't think it is very ugly or hacky. It's as minimal as a stable-only patch should be. But we could simplify the logic a bit. ;) See below.
Quoted 11 lines
Quoted 3 lines
TPROXY scenario needs to not create this neighbor entries on INPUT path, while Debabrata ping test needs it on OUTPUT path. This patch limits my previous patch to INPUT only then.
Yes, agreed. I don't see anything which could break because of this patch. So I would go with it.
Quoted 4 lines
Initial testing here seems good, TPROXY seems to be working as expected and also the ping6 test.
What do you think?
Aye Hannes, thanks! I'll rework the patch based on your points, do some more testings in here and post it probably only by tomorrow.
Thanks!
Marcelo
Quoted 73 lines
net/ipv6/route.c static struct rt6_info *rt6_alloc_clone(struct rt6_info *ort, · line 794
Quoted 10 lines
net/ipv6/route.c +1
-1@@ -791,7 +791,7 @@ static struct rt6_info *rt6_alloc_clone(struct rt6_info *ort, }static struct rt6_info *ip6_pol_route (struct net *net,struct fib6_table *table,int oif, -struct flowi6 *fl6,int flags) +struct flowi6 *fl6,int flags,int output)bool input
net/ipv6/route.c static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, · line 806
Quoted 12 lines
net/ipv6/route.c +3
-0{struct fib6_node *fn;struct rt6_info *rt, *nrt;@@ -799,8 +799,11 @@ static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,int attempts =3 ;int err;int reachable = net->ipv6.devconf_all->forwarding ?0 :RT6_LOOKUP_F_REACHABLE ; +int local =RTF_NONEXTHOP ; strict |= flags &RT6_LOOKUP_F_IFACE ; +if (!output) + local |=RTF_LOCAL ;if (input) local |= RTF_LOCAL;Quoted 13 lines
net/ipv6/route.c +1
-1relookup:read_lock_bh (&table->tb6_lock);@@ -820,7 +823,7 @@ restart:read_unlock_bh (&table->tb6_lock);if (!dst_get_neighbour_raw (&rt->dst) - && !(rt->rt6i_flags & (RTF_NONEXTHOP |RTF_LOCAL ))) + && !(rt->rt6i_flags & local)) nrt =rt6_alloc_cow (rt, &fl6->daddr, &fl6->saddr);else if (!(rt->dst.flags &DST_HOST )) nrt =rt6_alloc_clone (rt, &fl6->daddr);net/ipv6/route.c out2: · line 870
Quoted 5 lines
net/ipv6/route.c +1
-1@@ -864,7 +867,7 @@ out2:static struct rt6_info *ip6_pol_route_input (struct net *net,struct fib6_table *table,struct flowi6 *fl6,int flags) { -return ip6_pol_route (net, table, fl6->flowi6_iif, fl6, flags); +return ip6_pol_route (net, table, fl6->flowi6_iif, fl6, flags,0 );true);net/ipv6/route.c void ip6_route_input(struct sk_buff *skb) · line 896
Quoted 9 lines
net/ipv6/route.c +1
-1}void ip6_route_input (struct sk_buff *skb)@@ -890,7 +893,7 @@ void ip6_route_input(struct sk_buff *skb)static struct rt6_info *ip6_pol_route_output (struct net *net,struct fib6_table *table,struct flowi6 *fl6,int flags) { -return ip6_pol_route (net, table, fl6->flowi6_oif, fl6, flags); +return ip6_pol_route (net, table, fl6->flowi6_oif, fl6, flags,1 );false);net/ipv6/route.c void ip6_route_input(struct sk_buff *skb) · line 899
Quoted 3 lines
net/ipv6/route.c +0
-0} struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,Thanks,
Hannes