| version 1.103, 2008/02/06 03:20:52 |
version 1.104, 2008/04/07 06:31:28 |
| Line 215 rip_input(struct mbuf *m, ...) |
|
| Line 215 rip_input(struct mbuf *m, ...) |
|
| if (last != NULL && ipsec4_in_reject_so(m, last->inp_socket)) { |
if (last != NULL && ipsec4_in_reject_so(m, last->inp_socket)) { |
| m_freem(m); |
m_freem(m); |
| ipsecstat.in_polvio++; |
ipsecstat.in_polvio++; |
| ipstat.ips_delivered--; |
ipstat[IP_STAT_DELIVERED]--; |
| /* do not inject data to pcb */ |
/* do not inject data to pcb */ |
| } else |
} else |
| #endif /*IPSEC*/ |
#endif /*IPSEC*/ |
| Line 224 rip_input(struct mbuf *m, ...) |
|
| Line 224 rip_input(struct mbuf *m, ...) |
|
| else if (inetsw[ip_protox[ip->ip_p]].pr_input == rip_input) { |
else if (inetsw[ip_protox[ip->ip_p]].pr_input == rip_input) { |
| icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PROTOCOL, |
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PROTOCOL, |
| 0, 0); |
0, 0); |
| ipstat.ips_noproto++; |
ipstat[IP_STAT_NOPROTO]++; |
| ipstat.ips_delivered--; |
ipstat[IP_STAT_DELIVERED]--; |
| } else |
} else |
| m_freem(m); |
m_freem(m); |
| return; |
return; |
| Line 363 rip_output(struct mbuf *m, ...) |
|
| Line 363 rip_output(struct mbuf *m, ...) |
|
| opts = NULL; |
opts = NULL; |
| /* XXX prevent ip_output from overwriting header fields */ |
/* XXX prevent ip_output from overwriting header fields */ |
| flags |= IP_RAWOUTPUT; |
flags |= IP_RAWOUTPUT; |
| ipstat.ips_rawout++; |
ipstat[IP_STAT_RAWOUT]++; |
| } |
} |
| return (ip_output(m, opts, &inp->inp_route, flags, inp->inp_moptions, |
return (ip_output(m, opts, &inp->inp_route, flags, inp->inp_moptions, |
| inp->inp_socket, &inp->inp_errormtu)); |
inp->inp_socket, &inp->inp_errormtu)); |