pktgen: Dont leak kernel memory
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 24 Oct 2009 13:55:20 +0000 (06:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2009 13:55:20 +0000 (06:55 -0700)
commit66ed1e5ec1d979e572554643063734a7664261bb
treeebe8b3f132b4191d1f1c663e75f93e778db0cd6c
parent62e20a624b18e135870ae781087bc63fdda829ba
pktgen: Dont leak kernel memory

While playing with pktgen, I realized IP ID was not filled and a
random value was taken, possibly leaking 2 bytes of kernel memory.

We can use an increasing ID, this can help diagnostics anyway.

Also clear packet payload, instead of leaking kernel memory.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c