1 2 3 4 5 6 7 8
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> main() { struct sockaddr_in6 sa; sa.sin6_family = PF_INET6; }