ipv6: decrease hop limit counter in ip6_forward()
Subsystems (3)
PATCH 1/1 ipv6: decrease hop limit counter in ip6_forward()
Decrease hop limit counter when deliver skb to ndp proxy.
Signed-off-by Kangmin Park <[email protected]>
--- net/ipv6/ip6_output.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
net/ipv6/ip6_output.c +3 -2
@@ -549,9 +549,10 @@ int ip6_forward(struct sk_buff *skb)if (net->ipv6.devconf_all->proxy_ndp &&pneigh_lookup (&nd_tbl, net, &hdr->daddr, skb->dev,0 )) {int proxied =ip6_forward_proxy_check (skb); -if (proxied >0 ) +if (proxied >0 ) { + hdr->hop_limit--;return ip6_input (skb); -else if (proxied <0 ) { + }else if (proxied <0 ) {__IP6_INC_STATS (net, idev,IPSTATS_MIB_INDISCARDS ); goto drop; }
Signature · 1 line
2.26.2
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 6 lines · On Fri, 23 Jul 2021 02:44:43 +0900 you wrote:
Decrease hop limit counter when deliver skb to ndp proxy.
Signed-off-by Kangmin Park <[email protected]>--- net/ipv6/ip6_output.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Here is the summary with links:
- ipv6: decrease hop limit counter in ip6_forward()
https://git.kernel.org/netdev/net/c/46c7655f0b56
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html