Lines Matching refs:flag

215 	int flag[2], sock;  in test_ip_hdrincl()  local
225 flag[0] = -1; in test_ip_hdrincl()
226 len = sizeof(flag[0]); in test_ip_hdrincl()
227 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl()
235 flag[0] = 1; in test_ip_hdrincl()
236 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
255 flag[0] = -1; in test_ip_hdrincl()
256 len = sizeof(flag[0]); in test_ip_hdrincl()
257 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl()
266 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
298 flag[0] = -1; in test_ip_hdrincl()
299 flag[1] = -1; in test_ip_hdrincl()
300 len = sizeof(flag); in test_ip_hdrincl()
301 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
305 if (len != sizeof(flag[0])) in test_ip_hdrincl()
309 if (flag[0] != 0) in test_ip_hdrincl()
311 flag[0]); in test_ip_hdrincl()
316 flag[0] = 1; in test_ip_hdrincl()
317 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
324 flag[0] = -1; in test_ip_hdrincl()
325 flag[1] = -1; in test_ip_hdrincl()
326 len = sizeof(flag); in test_ip_hdrincl()
327 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
331 if (flag[0] == 0) in test_ip_hdrincl()
333 "after set had flag of %d\n", flag[0]); in test_ip_hdrincl()
336 if (flag[0] != HISTORICAL_INP_HDRINCL) in test_ip_hdrincl()
339 flag[0]); in test_ip_hdrincl()
344 flag[0] = 0; in test_ip_hdrincl()
345 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
352 flag[0] = -1; in test_ip_hdrincl()
353 flag[1] = -1; in test_ip_hdrincl()
354 len = sizeof(flag); in test_ip_hdrincl()
355 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
359 if (flag[0] != 0) in test_ip_hdrincl()
361 "after set had flag of %d\n", flag[0]); in test_ip_hdrincl()