Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/raw_ip.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/raw_ip.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.42.4.2 retrieving revision 1.42.6.2 diff -u -p -r1.42.4.2 -r1.42.6.2 --- src/sys/netinet/raw_ip.c 1999/08/02 22:34:59 1.42.4.2 +++ src/sys/netinet/raw_ip.c 1999/07/06 11:02:47 1.42.6.2 @@ -1,4 +1,4 @@ -/* $NetBSD: raw_ip.c,v 1.42.4.2 1999/08/02 22:34:59 thorpej Exp $ */ +/* $NetBSD: raw_ip.c,v 1.42.6.2 1999/07/06 11:02:47 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -64,7 +64,6 @@ * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95 */ -#include "opt_ipsec.h" #include "opt_mrouting.h" #include @@ -85,7 +84,6 @@ #include #include #include -#include #include #include @@ -95,8 +93,6 @@ #include #endif /*IPSEC*/ -extern u_char ip_protox[]; -extern struct protosw inetsw[]; struct inpcbtable rawcbtable; int rip_bind __P((struct inpcb *, struct mbuf *)); @@ -206,12 +202,9 @@ rip_input(m, va_alist) } else sorwakeup(last->inp_socket); } else { - if (inetsw[ip_protox[ip->ip_p]].pr_input == rip_input) { - icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PROTOCOL,0,0); - ipstat.ips_noproto++; - ipstat.ips_delivered--; - } else - m_freem(m); + m_freem(m); + ipstat.ips_noproto++; + ipstat.ips_delivered--; } return; }