diff options
| author | Marko Zec <zec@FreeBSD.org> | 2009-06-08 17:15:40 +0000 |
|---|---|---|
| committer | Marko Zec <zec@FreeBSD.org> | 2009-06-08 17:15:40 +0000 |
| commit | bc29160df3d0b3a65d9b85a63a4589f1f9652e6b (patch) | |
| tree | 7c00057a3f90cc6cfd121e2a6594d254fc72cba3 /sys/netinet/tcp_subr.c | |
| parent | 389cff511328e788e1a71dbb78154dd7d21b5fcc (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 489617b5228c..fc49344e0bb5 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -426,6 +426,25 @@ tcp_init(void) EVENTHANDLER_PRI_ANY); } +#ifdef VIMAGE +void +tcp_destroy(void) +{ + INIT_VNET_INET(curvnet); + + tcp_tw_destroy(); + tcp_hc_destroy(); + syncache_destroy(); + + /* XXX check that hashes are empty! */ + hashdestroy(V_tcbinfo.ipi_hashbase, M_PCB, + V_tcbinfo.ipi_hashmask); + hashdestroy(V_tcbinfo.ipi_porthashbase, M_PCB, + V_tcbinfo.ipi_porthashmask); + INP_INFO_LOCK_DESTROY(&V_tcbinfo); +} +#endif + void tcp_fini(void *xtp) { |
