#define NETINTER_BLOCKED 1 struct netinter { char name[65]; uint64_t flags; uint8_t mac_address[6]; uint8_t ipv4_addr[4]; uint8_t ipv4_subnet[4]; uint8_t ipv6_addr[16]; uint8_t ipv6_subnet[16]; } __attribute__((packed)); size_t listnetinter(struct thread_info *addr, size_t len);
This syscall writes a list of all network interfaces currently in the system to
addr
, which contains len
items.
The number of threads in the system is returned in success, and -1
in
failure, with the following errno:
EFAULT
: The array pointed by addr
is outside accessible memory.