For consistency take lport as u_short in in{,6}_pcblookup_local.

All callers either pass in an u_short or u_int16_t.

Reviewed by:	rwatson
This commit is contained in:
Bjoern A. Zeeb 2008-07-10 13:23:22 +00:00
parent 6b527d112c
commit cdcb11b92c
4 changed files with 4 additions and 6 deletions

View File

@ -881,7 +881,7 @@ in_pcbpurgeif0(struct inpcbinfo *pcbinfo, struct ifnet *ifp)
#define INP_LOOKUP_MAPPED_PCB_COST 3
struct inpcb *
in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr,
u_int lport_arg, int wild_okay)
u_short lport, int wild_okay)
{
struct inpcb *inp;
#ifdef INET6
@ -890,7 +890,6 @@ in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr,
int matchwild = 3;
#endif
int wildcard;
u_short lport = lport_arg;
INP_INFO_LOCK_ASSERT(pcbinfo);

View File

@ -452,7 +452,7 @@ void in_pcbfree(struct inpcb *);
int in_pcbinshash(struct inpcb *);
struct inpcb *
in_pcblookup_local(struct inpcbinfo *,
struct in_addr, u_int, int);
struct in_addr, u_short, int);
struct inpcb *
in_pcblookup_hash(struct inpcbinfo *, struct in_addr, u_int,
struct in_addr, u_int, int, struct ifnet *);

View File

@ -674,11 +674,10 @@ in6_pcbnotify(struct inpcbinfo *pcbinfo, struct sockaddr *dst,
*/
struct inpcb *
in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr,
u_int lport_arg, int wild_okay)
u_short lport, int wild_okay)
{
register struct inpcb *inp;
int matchwild = 3, wildcard;
u_short lport = lport_arg;
INP_INFO_WLOCK_ASSERT(pcbinfo);

View File

@ -80,7 +80,7 @@ int in6_pcbladdr __P((struct inpcb *, struct sockaddr *,
struct in6_addr **));
struct inpcb *
in6_pcblookup_local __P((struct inpcbinfo *,
struct in6_addr *, u_int, int));
struct in6_addr *, u_short, int));
struct inpcb *
in6_pcblookup_hash __P((struct inpcbinfo *,
struct in6_addr *, u_int, struct in6_addr *,