BSD 4_3_Net_2 release
[unix-history] / usr / src / sys / netiso / iso_proto.c
index 148f690..f4a5c22 100644 (file)
@@ -1,3 +1,38 @@
+/*-
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)iso_proto.c 7.8 (Berkeley) 5/6/91
+ */
+
 /***********************************************************
                Copyright IBM Corporation 1987
 
 /***********************************************************
                Copyright IBM Corporation 1987
 
@@ -26,7 +61,6 @@ SOFTWARE.
  */
 /* $Header: iso_proto.c,v 4.4 88/09/08 08:38:42 hagens Exp $ 
  * $Source: /usr/argo/sys/netiso/RCS/iso_proto.c,v $ 
  */
 /* $Header: iso_proto.c,v 4.4 88/09/08 08:38:42 hagens Exp $ 
  * $Source: /usr/argo/sys/netiso/RCS/iso_proto.c,v $ 
- *     @(#)iso_proto.c 7.6 (Berkeley) %G% *
  *
  * iso_proto.c : protocol switch tables in the ISO domain
  *
  *
  * iso_proto.c : protocol switch tables in the ISO domain
  *
@@ -34,10 +68,6 @@ SOFTWARE.
  * TP and CLNP are implemented here.
  */
 
  * TP and CLNP are implemented here.
  */
 
-#ifndef lint
-static char *rcsid = "$Header: iso_proto.c,v 4.4 88/09/08 08:38:42 hagens Exp $";
-#endif
-
 #ifdef ISO
 #include "types.h"
 #include "param.h"
 #ifdef ISO
 #include "types.h"
 #include "param.h"
@@ -56,7 +86,8 @@ int   tp_ctloutput();
 int    tpclnp_ctlinput();
 int    tpclnp_input();
 int    tp_usrreq();
 int    tpclnp_ctlinput();
 int    tpclnp_input();
 int    tp_usrreq();
-int    tp_init(),tp_slowtimo(),tp_drain();
+int    tp_init(), tp_slowtimo(), tp_drain();
+int    cons_init(), tpcons_input();
 
 int    esis_input(), esis_ctlinput(), esis_init(), esis_usrreq();
 int    cltp_input(), cltp_ctlinput(), cltp_init(), cltp_usrreq(), cltp_output();
 
 int    esis_input(), esis_ctlinput(), esis_init(), esis_usrreq();
 int    cltp_input(), cltp_ctlinput(), cltp_init(), cltp_usrreq(), cltp_output();
@@ -100,7 +131,7 @@ struct protosw isosw[] = {
 
 /* ES-IS protocol */
 { SOCK_DGRAM,  &isodomain,             ISOPROTO_ESIS,          PR_ATOMIC|PR_ADDR,
 
 /* ES-IS protocol */
 { SOCK_DGRAM,  &isodomain,             ISOPROTO_ESIS,          PR_ATOMIC|PR_ADDR,
-  esis_input,  0,                              esis_ctlinput,                          0,
+  esis_input,  0,                              esis_ctlinput,          0,
   esis_usrreq,
   esis_init,   0,                              0,                                      0
 },
   esis_usrreq,
   esis_init,   0,                              0,                                      0
 },
@@ -113,11 +144,20 @@ struct protosw isosw[] = {
 },
 
 /* ISOPROTO_TP */
 },
 
 /* ISOPROTO_TP */
-{ SOCK_SEQPACKET,      &isodomain,     ISOPROTO_TP,    PR_CONNREQUIRED|PR_WANTRCVD,
+{ SOCK_SEQPACKET,      &isodomain,     ISOPROTO_TP,            PR_CONNREQUIRED|PR_WANTRCVD,
   tpclnp_input,                0,                      tpclnp_ctlinput,        tp_ctloutput,
   tp_usrreq,
   tpclnp_input,                0,                      tpclnp_ctlinput,        tp_ctloutput,
   tp_usrreq,
-  tp_init,                     0,                      tp_slowtimo,    tp_drain,
+  tp_init,                     0,                      tp_slowtimo,            tp_drain,
+},
+
+#ifdef TPCONS
+/* ISOPROTO_TP */
+{ SOCK_SEQPACKET,      &isodomain,     ISOPROTO_TP0,           PR_CONNREQUIRED|PR_WANTRCVD,
+  tpcons_input,                0,                      0,                                      tp_ctloutput,
+  tp_usrreq,
+  cons_init,           0,                      0,                                      0,
 },
 },
+#endif
 
 };
 
 
 };