d2f152e969
* tests/net-yy-inet.c: Generalise test. * tests/net-yy-inet6.c: New file. * tests/pure_executables.list: Add net-yy-inet6. * tests/.gitignore: Likewise. * tests/gen_tests.in (net-yy-inet6): New entry.
14 lines
441 B
C
14 lines
441 B
C
#define ADDR_FAMILY_FIELD sin6_family
|
|
#define ADDR_FAMILY AF_INET6
|
|
#define AF_STR "AF_INET6"
|
|
#define LOOPBACK_FIELD .sin6_addr = IN6ADDR_LOOPBACK_INIT
|
|
#define LOOPBACK "[::1]"
|
|
#define SOCKADDR_TYPE sockaddr_in6
|
|
#define TCP_STR "TCPv6"
|
|
#define INPORT sin6_port
|
|
#define INPORT_STR "sin6_port"
|
|
#define INADDR_STR "inet_pton(AF_INET6, \"::1\", &sin6_addr)"
|
|
#define SA_FIELDS ", sin6_flowinfo=htonl(0), sin6_scope_id=0"
|
|
|
|
#include "net-yy-inet.c"
|