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

Function netdump_enabled_sysctl

freebsd/netinet/netdump/netdump_client.c:180–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180static int
181netdump_enabled_sysctl(SYSCTL_HANDLER_ARGS)
182{
183 int en, error;
184
185 NETDUMP_RLOCK();
186 en = netdump_enabled();
187 NETDUMP_RUNLOCK();
188
189 error = SYSCTL_OUT(req, &en, sizeof(en));
190 if (error != 0 || req->newptr == NULL)
191 return (error);
192 return (EPERM);
193}
194
195/*-
196 * Dumping specific primitives.

Callers

nothing calls this directly

Calls 1

netdump_enabledFunction · 0.85

Tested by

no test coverage detected