| 51 | #include "ifconfig.h" |
| 52 | |
| 53 | static void |
| 54 | ipsec_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 | |
| 70 | static |
| 71 | DECL_CMD_FUNC(setreqid, val, arg) |