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

Function UninitPacketAliasLog

freebsd/netinet/libalias/alias_db.c:2163–2177  ·  view source on GitHub ↗

Close the log-file and disable logging. */

Source from the content-addressed store, hash-verified

2161
2162/* Close the log-file and disable logging. */
2163static void
2164UninitPacketAliasLog(struct libalias *la)
2165{
2166
2167 LIBALIAS_LOCK_ASSERT(la);
2168 if (la->logDesc) {
2169#ifdef _KERNEL
2170 free(la->logDesc);
2171#else
2172 fclose(la->logDesc);
2173#endif
2174 la->logDesc = NULL;
2175 }
2176 la->packetAliasMode &= ~PKT_ALIAS_LOG;
2177}
2178
2179/* Outside world interfaces
2180

Callers 2

LibAliasUninitFunction · 0.85
LibAliasSetModeFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected