diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2004-01-13 10:45:02 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2004-01-13 10:45:02 +0000 |
| commit | a18310584f3e7de51886c33a3d581de169035ebb (patch) | |
| tree | c2e44e19f26ca7d3cb679aedc1b0529e6d73b9e0 | |
| parent | 548c676b32c081a88805f8b5b6067aee92bc2bae (diff) | |
Notes
| -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 6b3f91b03551..47dd9b043c9e 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); } |
