]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Use return value of inet_iif() for __raw_v4_lookup in the while loop
authorStephen Suryaputra <ssuryaextr@gmail.com>
Tue, 25 Jun 2019 00:14:06 +0000 (20:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2019 19:46:02 +0000 (12:46 -0700)
commit66f7260667526f89dee24ae600130ef548d26359
treed3c0a0c7afb16530b4dc0ad7b1630e5b863823cc
parent4ffa10ad47d868920356e9bc51bb69f52cf25295
ipv4: Use return value of inet_iif() for __raw_v4_lookup in the while loop

In commit 5d86c05fda7a9 ("ipv4: Fix raw socket lookup for local
traffic"), the dif argument to __raw_v4_lookup() is coming from the
returned value of inet_iif() but the change was done only for the first
lookup. Subsequent lookups in the while loop still use skb->dev->ifIndex.

Fixes: 5d86c05fda7a9 ("ipv4: Fix raw socket lookup for local traffic")
Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw.c