version 1.53, 2000/03/30 13:25:04 |
version 1.53.4.2, 2001/04/06 00:25:38 |
Line 175 rip_input(m, va_alist) |
|
Line 175 rip_input(m, va_alist) |
|
continue; |
continue; |
if (last) { |
if (last) { |
struct mbuf *n; |
struct mbuf *n; |
|
|
|
#ifdef IPSEC |
|
/* check AH/ESP integrity. */ |
|
if (ipsec4_in_reject_so(m, last->inp_socket)) { |
|
ipsecstat.in_polvio++; |
|
/* do not inject data to pcb */ |
|
} else |
|
#endif /*IPSEC*/ |
if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) { |
if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) { |
if (last->inp_flags & INP_CONTROLOPTS || |
if (last->inp_flags & INP_CONTROLOPTS || |
last->inp_socket->so_options & SO_TIMESTAMP) |
last->inp_socket->so_options & SO_TIMESTAMP) |
Line 192 rip_input(m, va_alist) |
|
Line 200 rip_input(m, va_alist) |
|
} |
} |
last = inp; |
last = inp; |
} |
} |
|
#ifdef IPSEC |
|
/* check AH/ESP integrity. */ |
|
if (last && ipsec4_in_reject_so(m, last->inp_socket)) { |
|
m_freem(m); |
|
ipsecstat.in_polvio++; |
|
ipstat.ips_delivered--; |
|
/* do not inject data to pcb */ |
|
} else |
|
#endif /*IPSEC*/ |
if (last) { |
if (last) { |
if (last->inp_flags & INP_CONTROLOPTS || |
if (last->inp_flags & INP_CONTROLOPTS || |
last->inp_socket->so_options & SO_TIMESTAMP) |
last->inp_socket->so_options & SO_TIMESTAMP) |
Line 279 rip_output(m, va_alist) |
|
Line 296 rip_output(m, va_alist) |
|
ipstat.ips_rawout++; |
ipstat.ips_rawout++; |
} |
} |
#ifdef IPSEC |
#ifdef IPSEC |
ipsec_setsocket(m, inp->inp_socket); |
if (ipsec_setsocket(m, inp->inp_socket) != 0) { |
|
m_freem(m); |
|
return ENOBUFS; |
|
} |
#endif /*IPSEC*/ |
#endif /*IPSEC*/ |
return (ip_output(m, opts, &inp->inp_route, flags, inp->inp_moptions, &inp->inp_errormtu)); |
return (ip_output(m, opts, &inp->inp_route, flags, inp->inp_moptions, &inp->inp_errormtu)); |
} |
} |