Lines Matching refs:IPPROTO_IP

124 	if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0)  in test_ip_options()
140 if (setsockopt(sock, IPPROTO_IP, IP_OPTIONS, &new_options, in test_ip_options()
154 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) in test_ip_options()
184 if (setsockopt(sock, IPPROTO_IP, IP_OPTIONS, NULL, 0) < 0) in test_ip_options()
194 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0) in test_ip_options()
229 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl()
238 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, 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()
303 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
319 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
329 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
347 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, sizeof(flag[0])) in test_ip_hdrincl()
357 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl()
404 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar()
426 if (setsockopt(sock, IPPROTO_IP, option, val, sizeof(val[0])) < 0) in test_ip_uchar()
436 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar()
457 if (setsockopt(sock, IPPROTO_IP, option, val, sizeof(val[0])) < 0) in test_ip_uchar()
483 if (setsockopt(sock, IPPROTO_IP, option, val, sizeof(val[0])) < 0) { in test_ip_uchar()
497 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar()
550 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean()
569 if (setsockopt(sock, IPPROTO_IP, option, &newvalue, sizeof(newvalue)) in test_ip_boolean()
581 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean()
607 if (setsockopt(sock, IPPROTO_IP, option, &newvalue, sizeof(newvalue)) in test_ip_boolean()
618 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean()
688 if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, in test_ip_multicast_membership()
701 if (setsockopt(sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreq, in test_ip_multicast_membership()