diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-10-20 21:44:31 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-10-20 21:44:31 +0000 |
commit | 1b97e2dc441e3e2d9bc1df9086655dd77899b3fd (patch) | |
tree | ceaf77dd17b34312c742dc161a676427954f2c37 /sys/netinet/in_pcb.h | |
parent | 25eef24259f2674c89d56fc85b39a13ded23749f (diff) | |
download | FreeBSD-src-1b97e2dc441e3e2d9bc1df9086655dd77899b3fd.zip FreeBSD-src-1b97e2dc441e3e2d9bc1df9086655dd77899b3fd.tar.gz |
Split out most of the logic from in_pcbbind() into a new function
called in_pcbbind_setup() that does everything except commit the
changes to the PCB. There should be no functional change here, but
in_pcbbind_setup() will be used by the soon-to-appear IP_SENDSRCADDR
control message implementation to check or allocate the source
address and port.
Discussed on: -net
Approved by: re
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 f08151b..7f26114 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -328,6 +328,8 @@ struct inpcb * in_rtchange(struct inpcb *, int); int in_pcballoc(struct socket *, struct inpcbinfo *, struct thread *); int in_pcbbind(struct inpcb *, struct sockaddr *, struct thread *); +int in_pcbbind_setup(struct inpcb *, struct sockaddr *, in_addr_t *, + u_short *, struct thread *); int in_pcbconnect(struct inpcb *, struct sockaddr *, struct thread *); void in_pcbdetach(struct inpcb *); void in_pcbdisconnect(struct inpcb *); |