X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/a2057a3157b41dd588b28066bd486ab81565770c..b1098fedcb27f9133115fb92ae0df6b42ed61a24:/sys/netiso/cltp_usrreq.c diff --git a/sys/netiso/cltp_usrreq.c b/sys/netiso/cltp_usrreq.c index bb85b078f2..c992cb2fd4 100644 --- a/sys/netiso/cltp_usrreq.c +++ b/sys/netiso/cltp_usrreq.c @@ -30,7 +30,8 @@ * 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 */ @@ -55,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() { @@ -69,6 +75,7 @@ int cltp_cksum = 1; /* ARGUSED */ +int cltp_input(m0, srcsa, dstsa, cons_channel, output) struct mbuf *m0; struct sockaddr *srcsa, *dstsa; @@ -81,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; @@ -155,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; { @@ -163,6 +171,7 @@ cltp_notify(isop) sowwakeup(isop->isop_socket); } +void cltp_ctlinput(cmd, sa) int cmd; struct sockaddr *sa; @@ -197,6 +206,7 @@ cltp_ctlinput(cmd, sa) } } +int cltp_output(isop, m) register struct isopcb *isop; register struct mbuf *m; @@ -262,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,