]> git.baikalelectronics.ru Git - kernel.git/commit
raw: fix a typo in raw_icmp_error()
authorEric Dumazet <edumazet@google.com>
Thu, 23 Jun 2022 19:35:40 +0000 (19:35 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 25 Jun 2022 05:48:33 +0000 (22:48 -0700)
commit409458d7e4554bc9dbe132bf72fafe7ac10ad506
treeb63a5a553ffd089f3c08caad5650ff7673e24d13
parent263503bd4c4ff2e4320098786faf38a73f5d9959
raw: fix a typo in raw_icmp_error()

I accidentally broke IPv4 traceroute, by swapping iph->saddr
and iph->daddr.

Probably because raw_icmp_error() and raw_v4_input()
use different order for iph->saddr and iph->daddr.

Fixes: d83bf44ec1ae ("raw: use more conventional iterators")
Reported-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220623193540.2851799-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/raw.c