call ipsec_pcbconn()/ipsec_pcbdisconn() from in6_pcbconnect().

Obtained from:	KAME
This commit is contained in:
ume 2004-01-13 10:45:02 +00:00
parent 703de5ccfd
commit fd42de41d6

View File

@ -405,6 +405,10 @@ in6_pcbconnect(inp, nam, td)
#endif
in_pcbrehash(inp);
#ifdef IPSEC
if (inp->inp_socket->so_type == SOCK_STREAM)
ipsec_pcbconn(inp->inp_sp);
#endif
return (0);
}
@ -417,6 +421,9 @@ in6_pcbdisconnect(inp)
/* clear flowinfo - draft-itojun-ipv6-flowlabel-api-00 */
inp->in6p_flowinfo &= ~IPV6_FLOWLABEL_MASK;
in_pcbrehash(inp);
#ifdef IPSEC
ipsec_pcbdisconn(inp->inp_sp);
#endif
if (inp->inp_socket->so_state & SS_NOFDREF)
in6_pcbdetach(inp);
}