diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2006-08-27 03:06:05 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 22:18:21 (GMT) |
commit | 25030a7f9eeab2dcefff036469e0e2b4f956198f (patch) | |
tree | 923030c42f1c2bf4aa9cd851df13b95bd0fe542b /include/net/tc_act | |
parent | 6a28ec8cd0c6993a4ac0d52f4347f7ed077b5cac (diff) | |
download | linux-25030a7f9eeab2dcefff036469e0e2b4f956198f.tar.xz |
[UDP]: Unify UDPv4 and UDPv6 ->get_port()
This patch creates one common function which is called by
udp_v4_get_port() and udp_v6_get_port(). As a result,
* duplicated code is removed
* udp_port_rover and local port lookup can now be removed from udp.h
* further savings follow since the same function will be used by UDP-Litev4
and UDP-Litev6
In contrast to the patch sent in response to Yoshifujis comments
(fixed by this variant), the code below also removes the
EXPORT_SYMBOL(udp_port_rover), since udp_port_rover can now remain
local to net/ipv4/udp.c.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tc_act')
0 files changed, 0 insertions, 0 deletions