Return to ip_input.c CVS log | Up to [cvs.NetBSD.org] / src / sys / netinet |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.84, 1999/04/07 05:34:32 | version 1.85, 1999/05/03 21:14:47 | ||
---|---|---|---|
|
|
||
} | } | ||
ip = mtod(m, struct ip *); | ip = mtod(m, struct ip *); | ||
} | } | ||
/* | |||
* we drop packets that have a multicast address as source | |||
* as wanted by rfc 1112 | |||
*/ | |||
if (IN_MULTICAST(ip->ip_src.s_addr)) { | |||
ipstat.ips_odropped++; | |||
goto bad; | |||
} | |||
if (in_cksum(m, hlen) != 0) { | if (in_cksum(m, hlen) != 0) { | ||
ipstat.ips_badsum++; | ipstat.ips_badsum++; | ||
goto bad; | goto bad; |