SCCS-vsn: sys/netinet/raw_ip.c 4.19
-/* raw_ip.c 4.18 83/05/12 */
+/* raw_ip.c 4.19 83/06/30 */
#include "../h/param.h"
#include "../h/mbuf.h"
#include "../h/param.h"
#include "../h/mbuf.h"
#include "../h/errno.h"
#include "../net/if.h"
#include "../h/errno.h"
#include "../net/if.h"
-#include "../net/raw_cb.h"
#include "../net/route.h"
#include "../net/route.h"
+#include "../net/raw_cb.h"
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
* Raw interface to IP protocol.
*/
* Raw interface to IP protocol.
*/
-static struct sockaddr_in ripdst = { AF_INET };
-static struct sockaddr_in ripsrc = { AF_INET };
-static struct sockproto ripproto = { PF_INET };
+struct sockaddr_in ripdst = { AF_INET };
+struct sockaddr_in ripsrc = { AF_INET };
+struct sockproto ripproto = { PF_INET };
/*
* Setup generic address and protocol structures
* for raw_input routine, then pass them along with
/*
* Setup generic address and protocol structures
* for raw_input routine, then pass them along with
ip->ip_src.s_addr = 0;
ip->ip_dst = ((struct sockaddr_in *)&rp->rcb_faddr)->sin_addr;
ip->ip_ttl = MAXTTL;
ip->ip_src.s_addr = 0;
ip->ip_dst = ((struct sockaddr_in *)&rp->rcb_faddr)->sin_addr;
ip->ip_ttl = MAXTTL;
- return (ip_output(m, (struct mbuf *)0, (struct route *)0,
+ return (ip_output(m, (struct mbuf *)0, &rp->rcb_route,
IP_ROUTETOIF|IP_ALLOWBROADCAST));
bad:
m_freem(m);
IP_ROUTETOIF|IP_ALLOWBROADCAST));
bad:
m_freem(m);