]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit019f6f8c7afd9bd172910c9ef2aff8774468b554
treeba2be735de32fa30015fe22febf4329c8e79ca25
parentbe185894fe3e434a42233430ffec477b67224c2b
[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