aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2011-03-12 21:46:37 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2011-03-12 21:46:37 +0000
commitefc76f729a310b7d56af307d9e7009b46bd6ccbf (patch)
tree2c624cee0eb5ca0598a24a7eb17008dbe6b098de /sys/netinet/in_pcb.h
parente729c4f2fdf47d5be39525c14cf799edff3d11ab (diff)
downloadsrc-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.h2
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 *);