]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
[UDP]: Randomize port selection.
authorStephen Hemminger <shemminger@linux-foundation.org>
Sat, 25 Aug 2007 06:09:41 +0000 (23:09 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:31 +0000 (16:48 -0700)
commit32c1da70810017a98aa6c431a5494a302b6b9a30
tree8583fe356829dd0265c673798262453d4bc36869
parent356f89e12e301376f26795643f3b5931c81c9cd5
[UDP]: Randomize port selection.

This patch causes UDP port allocation to be randomized like TCP.
The earlier code would always choose same port (ie first empty list).

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv4/udp_impl.h
net/ipv4/udplite.c