diff options
author | ume <ume@FreeBSD.org> | 2004-01-13 10:45:02 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-01-13 10:45:02 +0000 |
commit | fd42de41d68f508b11bcc8374f62df55b1248427 (patch) | |
tree | c2e44e19f26ca7d3cb679aedc1b0529e6d73b9e0 | |
parent | 703de5ccfdf1170d26ab1e44d98114be2b1b4d91 (diff) | |
download | FreeBSD-src-fd42de41d68f508b11bcc8374f62df55b1248427.zip FreeBSD-src-fd42de41d68f508b11bcc8374f62df55b1248427.tar.gz |
call ipsec_pcbconn()/ipsec_pcbdisconn() from in6_pcbconnect().
Obtained from: KAME
-rw-r--r-- | sys/netinet6/in6_pcb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 6b3f91b..47dd9b0 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -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); } |