* Requires the syncache entry to be already removed from the bucket list. */
| 229 | * Requires the syncache entry to be already removed from the bucket list. |
| 230 | */ |
| 231 | static void |
| 232 | syncache_free(struct syncache *sc) |
| 233 | { |
| 234 | |
| 235 | if (sc->sc_ipopts) |
| 236 | (void) m_free(sc->sc_ipopts); |
| 237 | if (sc->sc_cred) |
| 238 | crfree(sc->sc_cred); |
| 239 | #ifdef MAC |
| 240 | mac_syncache_destroy(&sc->sc_label); |
| 241 | #endif |
| 242 | |
| 243 | uma_zfree(V_tcp_syncache.zone, sc); |
| 244 | } |
| 245 | |
| 246 | void |
| 247 | syncache_init(void) |
no test coverage detected