aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 6734534962df..1618339176ae 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)raw_ip.c 7.8 (Berkeley) 7/25/90
- * $Id: raw_ip.c,v 1.2 1993/10/16 18:26:19 rgrimes Exp $
+ * $Id: raw_ip.c,v 1.4 1993/12/19 00:52:46 wollman Exp $
*/
#include "param.h"
@@ -55,15 +55,16 @@
/*
* Raw interface to IP protocol.
*/
+static struct sockaddr_in ripdst = { sizeof(ripdst), AF_INET };
+static struct sockaddr_in ripsrc = { sizeof(ripsrc), AF_INET };
+static struct sockproto ripproto = { PF_INET };
-struct sockaddr_in ripdst = { sizeof(ripdst), AF_INET };
-struct sockaddr_in ripsrc = { sizeof(ripsrc), AF_INET };
-struct sockproto ripproto = { PF_INET };
/*
* Setup generic address and protocol structures
* for raw_input routine, then pass them along with
* mbuf chain.
*/
+void
rip_input(m)
struct mbuf *m;
{
@@ -84,6 +85,7 @@ rip_input(m)
* Tack on options user may have setup with control call.
*/
#define satosin(sa) ((struct sockaddr_in *)(sa))
+int
rip_output(m, so)
register struct mbuf *m;
struct socket *so;
@@ -122,6 +124,7 @@ rip_output(m, so)
/*
* Raw IP socket option processing.
*/
+int
rip_ctloutput(op, so, level, optname, m)
int op;
struct socket *so;
@@ -190,6 +193,7 @@ rip_ctloutput(op, so, level, optname, m)
}
/*ARGSUSED*/
+int
rip_usrreq(so, req, m, nam, control)
register struct socket *so;
int req;
@@ -254,7 +258,7 @@ rip_usrreq(so, req, m, nam, control)
return (0);
}
}
- error = raw_usrreq(so, req, m, nam, control);
+ error = raw_usrreq(so, req, m, nam, control, 0);
if (error && (req == PRU_ATTACH) && so->so_pcb)
free(so->so_pcb, M_PCB);