2 #include <netinet/ip6.h>
9 void *p
= inet6_rth_init (buf
, 24, IPV6_RTHDR_TYPE_0
, 0);
12 puts ("first inet6_rth_init failed");
15 else if (inet6_rth_add (p
, &in6addr_any
) == 0)
17 puts ("first inet6_rth_add succeeded");
21 p
= inet6_rth_init (buf
, 24, IPV6_RTHDR_TYPE_0
, 1);
24 puts ("second inet6_rth_init failed");
27 else if (inet6_rth_add (p
, &in6addr_any
) != 0)
29 puts ("second inet6_rth_add failed");
35 #define TEST_FUNCTION do_test ()
36 #include "../test-skeleton.c"