MCPcopy Create free account
hub / github.com/F-Stack/f-stack / LibAliasUninit

Function LibAliasUninit

freebsd/netinet/libalias/alias_db.c:2484–2503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2482}
2483
2484void
2485LibAliasUninit(struct libalias *la)
2486{
2487
2488 LIBALIAS_LOCK(la);
2489#ifdef _KERNEL
2490 AliasSctpTerm(la);
2491#endif
2492 la->deleteAllLinks = 1;
2493 CleanupAliasData(la);
2494 la->deleteAllLinks = 0;
2495 UninitPacketAliasLog(la);
2496#ifndef NO_FW_PUNCH
2497 UninitPunchFW(la);
2498#endif
2499 LIST_REMOVE(la, instancelist);
2500 LIBALIAS_UNLOCK(la);
2501 LIBALIAS_LOCK_DESTROY(la);
2502 free(la);
2503}
2504
2505/* Change mode for some operations */
2506unsigned int

Callers 3

free_nat_instanceFunction · 0.85
finishoffFunction · 0.85
ng_nat_shutdownFunction · 0.85

Calls 5

AliasSctpTermFunction · 0.85
CleanupAliasDataFunction · 0.85
UninitPacketAliasLogFunction · 0.85
UninitPunchFWFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected