Lines Matching refs:flag

217 	int flag[2], sock;  in test_ip_hdrincl()  local
227 flag[0] = -1; in test_ip_hdrincl()
228 len = sizeof(flag[0]); in test_ip_hdrincl()
229 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl()
237 flag[0] = 1; in test_ip_hdrincl()
238 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
257 flag[0] = -1; in test_ip_hdrincl()
258 len = sizeof(flag[0]); in test_ip_hdrincl()
259 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl()
268 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
300 flag[0] = -1; in test_ip_hdrincl()
301 flag[1] = -1; in test_ip_hdrincl()
302 len = sizeof(flag); in test_ip_hdrincl()
303 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
307 if (len != sizeof(flag[0])) in test_ip_hdrincl()
311 if (flag[0] != 0) in test_ip_hdrincl()
313 flag[0]); in test_ip_hdrincl()
318 flag[0] = 1; in test_ip_hdrincl()
319 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
326 flag[0] = -1; in test_ip_hdrincl()
327 flag[1] = -1; in test_ip_hdrincl()
328 len = sizeof(flag); in test_ip_hdrincl()
329 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
333 if (flag[0] == 0) in test_ip_hdrincl()
335 "after set had flag of %d\n", flag[0]); in test_ip_hdrincl()
338 if (flag[0] != HISTORICAL_INP_HDRINCL) in test_ip_hdrincl()
341 flag[0]); in test_ip_hdrincl()
346 flag[0] = 0; in test_ip_hdrincl()
347 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
354 flag[0] = -1; in test_ip_hdrincl()
355 flag[1] = -1; in test_ip_hdrincl()
356 len = sizeof(flag); in test_ip_hdrincl()
357 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
361 if (flag[0] != 0) in test_ip_hdrincl()
363 "after set had flag of %d\n", flag[0]); in test_ip_hdrincl()