[IPV4]: Use network-order dport for all visible inet_lookup_*
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 Aug 2006 22:47:12 +0000 (15:47 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:54:14 +0000 (14:54 -0700)
commit8f491069b40be5d627007a343f99759e9da6a178
treeba2be735de32fa30015fe22febf4329c8e79ca25
parent832b4c5e184391773e462653aa862a8cab71f38d
[IPV4]: Use network-order dport for all visible inet_lookup_*

Right now most inet_lookup_* functions take a host-order hnum instead
of a network-order dport because that's how it is represented
internally.

This means that users of these functions have to be careful about
using the right byte-order.  To add more confusion, inet_lookup takes
a network-order dport unlike all other functions.

So this patch changes all visible inet_lookup functions to take a
dport and move all dport->hnum conversion inside them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/dccp/ipv4.c
net/ipv4/inet_hashtables.c
net/ipv4/tcp_ipv4.c