diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-03-12 21:46:37 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-03-12 21:46:37 +0000 |
commit | efc76f729a310b7d56af307d9e7009b46bd6ccbf (patch) | |
tree | 2c624cee0eb5ca0598a24a7eb17008dbe6b098de /sys/netinet/in_pcb.h | |
parent | e729c4f2fdf47d5be39525c14cf799edff3d11ab (diff) | |
download | src-efc76f729a310b7d56af307d9e7009b46bd6ccbf.tar.gz src-efc76f729a310b7d56af307d9e7009b46bd6ccbf.zip |
Merge the two identical implementations for local port selections from
in_pcbbind_setup() and in6_pcbsetport() in a single in_pcb_lport().
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=219579
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 4ba19e61d9d2..8aea479d48c3 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -491,6 +491,8 @@ void in_pcbinfo_init(struct inpcbinfo *, const char *, struct inpcbhead *, void in_pcbpurgeif0(struct inpcbinfo *, struct ifnet *); int in_pcballoc(struct socket *, struct inpcbinfo *); int in_pcbbind(struct inpcb *, struct sockaddr *, struct ucred *); +int in_pcb_lport(struct inpcb *, struct in_addr *, u_short *, + struct ucred *, int); int in_pcbbind_setup(struct inpcb *, struct sockaddr *, in_addr_t *, u_short *, struct ucred *); int in_pcbconnect(struct inpcb *, struct sockaddr *, struct ucred *); |