1 #define ADDR_FAMILY_FIELD sin6_family
2 #define ADDR_FAMILY AF_INET6
3 #define AF_STR "AF_INET6"
4 #define LOOPBACK_FIELD .sin6_addr = IN6ADDR_LOOPBACK_INIT
5 #define LOOPBACK "[::1]"
6 #define SOCKADDR_TYPE sockaddr_in6
7 #define TCP_STR "TCPv6"
8 #define INPORT sin6_port
9 #define INPORT_STR "sin6_port"
10 #define INADDR_STR "inet_pton(AF_INET6, \"::1\", &sin6_addr)"
11 #define SA_FIELDS ", sin6_flowinfo=htonl(0), sin6_scope_id=0"
12 
13 #include "net-yy-inet.c"
14