socktypename
fprintf(stderr, " SOCK_%s", socktypename(hint->ai_socktype, buf,
fprintf(stderr, " socktype=%s", socktypename(ai->ai_socktype, buf,
test_ip_uchar(sock, socktypename, IP_MULTICAST_TTL,
test_ip_boolean(sock, socktypename, IP_MULTICAST_LOOP,
test_ip_options(int sock, const char *socktypename)
socktypename);
"%d bytes", socktypename, len);
socktypename);
socktypename);
"returned %d bytes of data", socktypename, len);
"return data", socktypename);
"returned wrong options (%08x, %08x)", socktypename,
socktypename);
socktypename);
"returned %d bytes", socktypename, len);
test_ip_uchar(int sock, const char *socktypename, int option,
socktypename, optionname);
"returned %d bytes", socktypename, optionname, len);
"return data", socktypename, optionname);
"returned value of %d, not %d", socktypename, optionname,
socktypename, optionname);
"128", socktypename, optionname);
"128 returned %d bytes", socktypename, optionname, len);
"128 didn't return data", socktypename, optionname);
"128 returned %d", socktypename, optionname, val[0]);
"128", socktypename, optionname);
"from 128 returned %d bytes", socktypename, optionname,
"from 128 didn't return data", socktypename, optionname);
"from 128 returned %d", socktypename, optionname,
socktypename, optionname);
"32000", socktypename, optionname);
"32000 returned %d bytes", socktypename, optionname,
"32000 didn't return data", socktypename, optionname);
"32000 returned 32000: failed to truncate", socktypename,
test_ip_boolean(int sock, const char *socktypename, int option,
"returned %d bytes", socktypename, optionname, len);
"didn't return data", socktypename, optionname);
"returned %d (expected %d)", socktypename, optionname,
socktypename, optionname, newvalue);
"%d", socktypename, optionname, newvalue);
"to %d returned %d bytes", socktypename, optionname,
"to %d didn't return data", socktypename, optionname,
"to %d returned %d", socktypename, optionname, newvalue,
socktypename, optionname);
socktypename, optionname);
"returned %d bytes", socktypename, optionname, len);
"didn't return data", socktypename, optionname);
"returned %d", socktypename, optionname, newvalue);
test_ip_multicast_membership(int sock, const char *socktypename)
socktypename);
sock, socktypename, addrbuf, "INADDR_ANY");
sock, socktypename, addrbuf, "INADDR_ANY");
test_ip_multicast_if(int sock, const char *socktypename)
test_ip_multicast_vif(int sock, const char *socktypename)
const char *socktypename;
socktypename = socktypenameset[i];
socktypename, priv);
test_ip_uchar(sock, socktypename, IP_TOS, "IP_TOS", 0);
socktypename, priv);
test_ip_uchar(sock, socktypename, IP_TTL, "IP_TTL", 64);
"(IP_RECVOPTS)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_RECVOPTS,
"(IP_RECVRETOPTS)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_RECVRETOPTS,
"(IP_RECVDSTADDR)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_RECVDSTADDR,
"(IP_RECVTTL)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_RECVTTL, "IP_RECVTTL",
"(IP_RECVIF)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_RECVIF, "IP_RECVIF",
"(IP_FAITH)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_FAITH, "IP_FAITH", 0,
"(IP_ONESBCAST)", socktypename, priv);
test_ip_boolean(sock, socktypename, IP_ONESBCAST,
socktypename, priv);
test_ip_uchar(sock, socktypename, IP_MULTICAST_TTL,
socktypename, priv);
test_ip_boolean(sock, socktypename, IP_MULTICAST_LOOP,
socktypename, priv);
socktypename, priv);
test_ip_multicast_membership(sock, socktypename);