]> git.baikalelectronics.ru Git - kernel.git/commit
pktgen: do not abuse IN6_ADDR_HSIZE
authorEric Dumazet <edumazet@google.com>
Sat, 4 Nov 2017 15:27:14 +0000 (08:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 00:16:46 +0000 (09:16 +0900)
commite33bd3e133eff2d024cba8233b5987972f91796c
tree35487079bab6f5b1db6ada128c6361b285b20374
parent2a6a1964c3a7ef3b3b9509f54afb7aa9721c7e46
pktgen: do not abuse IN6_ADDR_HSIZE

pktgen accidentally used IN6_ADDR_HSIZE, instead of using the size of an
IPv6 address.

Since IN6_ADDR_HSIZE recently was increased from 16 to 256, this old
bug is hitting us.

Fixes: a6b356d487e8 ("ipv6: addrconf: add per netns perturbation in inet6_addr_hash()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c