! ! Cleanup flowtable upon virtual network stack destruction. ! This frees table entries as well as allocated table infrastructure. ! The zones are destroyed from a sysuninit call already. ! ! Sponsored by: ISPsystem ! Reviewed by: julian ! MFC After: ! --- sys/netinet/ip_input.c.orig 2010-02-16 21:26:19.000000000 +0000 +++ sys/netinet/ip_input.c 2010-02-16 21:27:09.000000000 +0000 @@ -376,6 +376,11 @@ struct in_ifaddrhashhead *hp; struct in_ifaddr *ia; +#ifdef FLOWTABLE + /* Cleanup flowtable cache and allocations. */ + if (V_ip_ft != NULL) + flowtable_free(V_ip_ft); +#endif /* Cleanup in_ifaddr hash table; should be empty. */ IN_IFADDR_WLOCK(); for (hp = V_in_ifaddrhashtbl;