The code in tcp_input() to disallow a socket from connecting to itself
[unix-history] / usr / src / sys / net / raw_usrreq.c
index c697a40..aa2b157 100644 (file)
@@ -1,10 +1,10 @@
 /*
 /*
- * Copyright (c) 1980, 1986 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1980, 1986, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)raw_usrreq.c        7.12 (Berkeley) %G%
+ *     @(#)raw_usrreq.c        8.1 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -23,6 +23,7 @@
 /*
  * Initialize raw connection block q.
  */
 /*
  * Initialize raw connection block q.
  */
+void
 raw_init()
 {
 
 raw_init()
 {
 
@@ -38,6 +39,7 @@ raw_init()
 /*
  * Raw protocol interface.
  */
 /*
  * Raw protocol interface.
  */
+void
 raw_input(m0, proto, src, dst)
        struct mbuf *m0;
        register struct sockproto *proto;
 raw_input(m0, proto, src, dst)
        struct mbuf *m0;
        register struct sockproto *proto;
@@ -94,10 +96,10 @@ raw_input(m0, proto, src, dst)
                }
        } else
                m_freem(m);
                }
        } else
                m_freem(m);
-       return (sockets);
 }
 
 /*ARGSUSED*/
 }
 
 /*ARGSUSED*/
+void
 raw_ctlinput(cmd, arg)
        int cmd;
        struct sockaddr *arg;
 raw_ctlinput(cmd, arg)
        int cmd;
        struct sockaddr *arg;
@@ -109,6 +111,7 @@ raw_ctlinput(cmd, arg)
 }
 
 /*ARGSUSED*/
 }
 
 /*ARGSUSED*/
+int
 raw_usrreq(so, req, m, nam, control)
        struct socket *so;
        int req;
 raw_usrreq(so, req, m, nam, control)
        struct socket *so;
        int req;