#include <net/if.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/sockio.h>
int main(void) {
printf("sizeof(struct lifreq) = %zu (0x%zx)\n", sizeof(struct lifreq),
sizeof(struct lifreq));
printf("offsetof(lifr_lifru) = %zu\n",
offsetof(struct lifreq, lifr_lifru));
printf("offsetof(lifr_type) = %zu\n",
offsetof(struct lifreq, lifr_type));
printf("sizeof(sockaddr_storage) = %zu\n", sizeof(struct sockaddr_storage));
printf("SIOCSLIFADDR = 0x%08x\n", SIOCSLIFADDR);
printf("SIOCSLIFDSTADDR = 0x%08x\n", SIOCSLIFDSTADDR);
printf("SIOCSLIFNETMASK = 0x%08x\n", SIOCSLIFNETMASK);
printf("SIOCSLIFFLAGS = 0x%08x\n", SIOCSLIFFLAGS);
printf("SIOCGLIFFLAGS = 0x%08x\n", SIOCGLIFFLAGS);
return 0;
}