Lines Matching full:af
13 static char *afstr(int af, int proto) in afstr() argument
16 return af == AF_INET ? "TCP/IPv4" : "TCP/IPv6"; in afstr()
18 return af == AF_INET ? "UDP/IPv4" : "UDP/IPv6"; in afstr()
21 int sk_peek_offset_probe(sa_family_t af, int proto) in sk_peek_offset_probe() argument
28 s = socket(af, type, proto); in sk_peek_offset_probe()
35 printf("%s does not support SO_PEEK_OFF\n", afstr(af, proto)); in sk_peek_offset_probe()
57 static int sk_peek_offset_test(sa_family_t af, int proto) in sk_peek_offset_test() argument
73 a.sa.sa_family = af; in sk_peek_offset_test()
75 s[0] = recv_sock = socket(af, type, proto); in sk_peek_offset_test()
76 s[1] = socket(af, type, proto); in sk_peek_offset_test()
158 printf("%s with MSG_PEEK_OFF works correctly\n", afstr(af, proto)); in sk_peek_offset_test()