Lines Matching refs:IPPROTO_IP
122 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) in test_ip_options()
138 if (setsockopt(sock, IPPROTO_IP, IP_OPTIONS, &new_options, in test_ip_options()
152 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) in test_ip_options()
182 if (setsockopt(sock, IPPROTO_IP, IP_OPTIONS, NULL, 0) < 0) in test_ip_options()
192 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) in test_ip_options()
227 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl()
236 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, 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()
301 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
317 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
327 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
345 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
355 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
402 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar()
424 if (setsockopt(sock, IPPROTO_IP, option, val, sizeof(val[0])) < 0) in test_ip_uchar()
434 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar()
455 if (setsockopt(sock, IPPROTO_IP, option, val, sizeof(val[0])) < 0) in test_ip_uchar()
481 if (setsockopt(sock, IPPROTO_IP, option, val, sizeof(val[0])) < 0) { in test_ip_uchar()
495 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar()
548 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean()
567 if (setsockopt(sock, IPPROTO_IP, option, &newvalue, sizeof(newvalue)) in test_ip_boolean()
579 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean()
605 if (setsockopt(sock, IPPROTO_IP, option, &newvalue, sizeof(newvalue)) in test_ip_boolean()
616 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean()
686 if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in test_ip_multicast_membership()
699 if (setsockopt(sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreq, in test_ip_multicast_membership()