strace/tests/net-yy-inet6.c
Eugene Syromyatnikov d2f152e969 tests: check decoding of ip6:port pairs associated with socket descriptors
* 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.
2018-02-27 00:17:47 +00:00

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"