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

Function ipsec_status

tools/ifconfig/ifipsec.c:53–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#include "ifconfig.h"
52
53static void
54ipsec_status(int s)
55{
56 uint32_t reqid;
57
58 ifr.ifr_data = (caddr_t)&reqid;
59#ifndef FSTACK
60 if (ioctl(s, IPSECGREQID, &ifr) == -1)
61#else
62 size_t offset = (char *)&(ifr.ifr_data) - (char *)&(ifr);
63 size_t clen = sizeof(uint32_t);
64 if (ioctl_va(s, IPSECGREQID, &ifr, 3, offset, ifr.ifr_data, clen) == -1)
65#endif
66 return;
67 printf("\treqid: %u\n", reqid);
68}
69
70static
71DECL_CMD_FUNC(setreqid, val, arg)

Callers

nothing calls this directly

Calls 3

ioctl_vaFunction · 0.85
ioctlFunction · 0.50
printfFunction · 0.50

Tested by

no test coverage detected