diff options
author | trociny <trociny@FreeBSD.org> | 2013-11-17 15:09:39 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2013-11-17 15:09:39 +0000 |
commit | 6f96364448a360b6b6d7cc9c732a441a15144bcc (patch) | |
tree | 1324a3d235e431f79011efc43d226d7fdb12276f /sys/netinet/tcp_subr.c | |
parent | 506e4ba2579ec7a30a5da6c237a31193c62857ee (diff) | |
download | FreeBSD-src-6f96364448a360b6b6d7cc9c732a441a15144bcc.zip FreeBSD-src-6f96364448a360b6b6d7cc9c732a441a15144bcc.tar.gz |
Deregister helper hooks on vnet destroy.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index d1eb695..170482a 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -432,6 +432,7 @@ tcp_init(void) void tcp_destroy(void) { + int error; tcp_reass_destroy(); tcp_hc_destroy(); @@ -440,6 +441,19 @@ tcp_destroy(void) in_pcbinfo_destroy(&V_tcbinfo); uma_zdestroy(V_sack_hole_zone); uma_zdestroy(V_tcpcb_zone); + + error = hhook_head_deregister(V_tcp_hhh[HHOOK_TCP_EST_IN]); + if (error != 0) { + printf("%s: WARNING: unable to deregister helper hook " + "type=%d, id=%d: error %d returned\n", __func__, + HHOOK_TYPE_TCP, HHOOK_TCP_EST_IN, error); + } + error = hhook_head_deregister(V_tcp_hhh[HHOOK_TCP_EST_OUT]); + if (error != 0) { + printf("%s: WARNING: unable to deregister helper hook " + "type=%d, id=%d: error %d returned\n", __func__, + HHOOK_TYPE_TCP, HHOOK_TCP_EST_OUT, error); + } } #endif |