X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/15637ed4f028f1b013a54c226bcb3c75228ad20d..71b93bfb3dba404c708b790787dc2e5d2fab9343:/sys/netiso/cltp_usrreq.c diff --git a/sys/netiso/cltp_usrreq.c b/sys/netiso/cltp_usrreq.c index c0566f316c..c992cb2fd4 100644 --- a/sys/netiso/cltp_usrreq.c +++ b/sys/netiso/cltp_usrreq.c @@ -30,11 +30,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)cltp_usrreq.c 7.6 (Berkeley) 6/27/91 + * from: @(#)cltp_usrreq.c 7.6 (Berkeley) 6/27/91 + * $Id: cltp_usrreq.c,v 1.4 1993/11/07 17:49:27 wollman Exp $ */ #ifndef CLTPOVAL_SRC /* XXX -- till files gets changed */ #include "param.h" +#include "systm.h" #include "malloc.h" #include "mbuf.h" #include "protosw.h" @@ -54,10 +56,15 @@ #include "cltp_var.h" #endif +struct isopcb cltb; +struct cltpstat cltpstat; + + /* * CLTP protocol implementation. * Per ISO 8602, December, 1987. */ +void cltp_init() { @@ -68,6 +75,7 @@ int cltp_cksum = 1; /* ARGUSED */ +int cltp_input(m0, srcsa, dstsa, cons_channel, output) struct mbuf *m0; struct sockaddr *srcsa, *dstsa; @@ -80,7 +88,7 @@ cltp_input(m0, srcsa, dstsa, cons_channel, output) register struct sockaddr_iso *src = (struct sockaddr_iso *)srcsa; int len, hdrlen = *up + 1, dlen = 0; u_char *uplim = up + hdrlen; - caddr_t dtsap; + caddr_t dtsap = 0; for (len = 0; m; m = m->m_next) len += m->m_len; @@ -154,6 +162,7 @@ bad: * Notify a cltp user of an asynchronous error; * just wake up so that he can collect error status. */ +void cltp_notify(isop) register struct isopcb *isop; { @@ -162,6 +171,7 @@ cltp_notify(isop) sowwakeup(isop->isop_socket); } +void cltp_ctlinput(cmd, sa) int cmd; struct sockaddr *sa; @@ -196,6 +206,7 @@ cltp_ctlinput(cmd, sa) } } +int cltp_output(isop, m) register struct isopcb *isop; register struct mbuf *m; @@ -261,13 +272,14 @@ u_long cltp_recvspace = 40 * (1024 + sizeof(struct sockaddr_iso)); /*ARGSUSED*/ +int cltp_usrreq(so, req, m, nam, control) struct socket *so; int req; struct mbuf *m, *nam, *control; { struct isopcb *isop = sotoisopcb(so); - int s, error = 0; + int s = 0, error = 0; if (req == PRU_CONTROL) return (iso_control(so, (int)m, (caddr_t)nam,