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

Function fstack_territory

adapter/syscall/ff_hook_syscall.c:316–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316int
317fstack_territory(int domain, int type, int protocol)
318{
319 /* Remove creation flags */
320 type &= ~SOCK_CLOEXEC;
321 type &= ~SOCK_NONBLOCK;
322 type &= ~SOCK_FSTACK;
323 type &= ~SOCK_KERNEL;
324
325 if ((AF_INET != domain && AF_INET6 != domain) || (SOCK_STREAM != type &&
326 SOCK_DGRAM != type)) {
327 return 0;
328 }
329
330 return 1;
331}
332
333/*
334 * APP need set type |= SOCK_FSTACK

Callers 1

ff_hook_socketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected