diff options
Diffstat (limited to 'sys/netns/ns_pcb.h')
| -rw-r--r-- | sys/netns/ns_pcb.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/sys/netns/ns_pcb.h b/sys/netns/ns_pcb.h index 59bf6761fda4..affb5df5a6be 100644 --- a/sys/netns/ns_pcb.h +++ b/sys/netns/ns_pcb.h @@ -31,9 +31,12 @@ * SUCH DAMAGE. * * from: @(#)ns_pcb.h 7.4 (Berkeley) 6/28/90 - * $Id: ns_pcb.h,v 1.2 1993/10/16 19:54:30 rgrimes Exp $ + * $Id: ns_pcb.h,v 1.5 1993/12/19 00:54:01 wollman Exp $ */ +#ifndef _NETNS_NS_PCB_H_ +#define _NETNS_NS_PCB_H_ 1 + /* * Ns protocol interface control block. */ @@ -76,6 +79,18 @@ struct nspcb { #ifdef KERNEL -struct nspcb nspcb; /* head of list */ -struct nspcb *ns_pcblookup(); -#endif +extern struct nspcb nspcb; /* head of list */ + +extern int ns_pcballoc(struct socket *, struct nspcb *); +extern int ns_pcbbind(struct nspcb *, struct mbuf *); +extern int ns_pcbconnect(struct nspcb *, struct mbuf *); +extern void ns_pcbdisconnect(struct nspcb *); +extern void ns_pcbdetach(struct nspcb *); +extern void ns_setsockaddr(struct nspcb *, struct mbuf *); +extern void ns_setpeeraddr(struct nspcb *, struct mbuf *); +typedef void (*ns_notify_func_t)(struct nspcb *, int); +extern void ns_pcbnotify(struct ns_addr *, int, ns_notify_func_t, long); +extern struct nspcb *ns_pcblookup(struct ns_addr *, int /*u_short*/, int); + +#endif /* KERNEL */ +#endif /* _NETNS_NS_PCB_H_ */ |
