Alien-cares
view release on metacpan or search on metacpan
libcares/test/fuzzinput/0310f2e81bea31f4fe3f330872a877dd
libcares/test/fuzzinput/0449be67df1730b2d0887d412a9b7cc4
libcares/test/fuzzinput/0449dd14f7aa94bf0d716bfe09b287a8
libcares/test/fuzzinput/04c93cdf7208979aa4df80a3a0d5a2d8
libcares/test/fuzzinput/0567e7171e08e75f3f91c4ca74c17adc
libcares/test/fuzzinput/05ba948578a397e9cbc6a7b3e78622fa
libcares/test/fuzzinput/060afe5ed25f3e2e86167e545f27edca
libcares/test/fuzzinput/06d47d3681493f1b1d41236f460d896f
libcares/test/fuzzinput/0724a810b0e131c2fddb6de9003b9064
libcares/test/fuzzinput/0b5279148826f5b962bcf1896bdb4ede
libcares/test/fuzzinput/114048c0f6b10bdc67ce9166405d195e
libcares/test/fuzzinput/11b8464a0ef8735d202955c34c36b0c7
libcares/test/fuzzinput/11cb626f1668c7b41954ce7d768fe528
libcares/test/fuzzinput/14b133bf18125b75a1976fa63a1df6b7
libcares/test/fuzzinput/153c6b3afa8faa03c8bc28f936a6d4cf
libcares/test/fuzzinput/182cad2a342ed7317b7c21a5d17020d1
libcares/test/fuzzinput/1c61a61bb7057b52c5b15188345a5238
libcares/test/fuzzinput/1dbe2cf62ed2e4fa1c3cb473f08710b5
libcares/test/fuzzinput/21199be504fcfece5c7096ee0dbba507
libcares/test/fuzzinput/21891480074b5635dbbe7137bdcabccd
libcares/test/fuzzinput/233aea42e15aa73e131eefabf16088c9
libcares/acountry.c view on Meta::CPAN
{ 360, "id", "Indonesia" },
{ 364, "ir", "Iran" },
{ 368, "iq", "Iraq" },
{ 372, "ie", "Ireland" },
{ 376, "il", "Israel" },
{ 380, "it", "Italy" },
{ 388, "jm", "Jamaica" },
{ 392, "jp", "Japan" },
{ 400, "jo", "Jordan" },
{ 398, "kz", "Kazakhstan" },
{ 404, "ke", "Kenya" },
{ 296, "ki", "Kiribati" },
{ 408, "kp", "Korea (north)" },
{ 410, "kr", "Korea (south)" },
{ 414, "kw", "Kuwait" },
{ 417, "kg", "Kyrgyzstan" },
{ 418, "la", "Laos" },
{ 428, "lv", "Latvia" },
{ 422, "lb", "Lebanon" },
{ 426, "ls", "Lesotho" },
{ 430, "lr", "Liberia" },
libcares/ares_platform.c view on Meta::CPAN
{"iso-tsap-c2", {NULL}, 399, "tcp"},
{"iso-tsap-c2", {NULL}, 399, "udp"},
{"osb-sd", {NULL}, 400, "tcp"},
{"osb-sd", {NULL}, 400, "udp"},
{"ups", {NULL}, 401, "tcp"},
{"ups", {NULL}, 401, "udp"},
{"genie", {NULL}, 402, "tcp"},
{"genie", {NULL}, 402, "udp"},
{"decap", {NULL}, 403, "tcp"},
{"decap", {NULL}, 403, "udp"},
{"nced", {NULL}, 404, "tcp"},
{"nced", {NULL}, 404, "udp"},
{"ncld", {NULL}, 405, "tcp"},
{"ncld", {NULL}, 405, "udp"},
{"imsp", {NULL}, 406, "tcp"},
{"imsp", {NULL}, 406, "udp"},
{"timbuktu", {NULL}, 407, "tcp"},
{"timbuktu", {NULL}, 407, "udp"},
{"prm-sm", {NULL}, 408, "tcp"},
{"prm-sm", {NULL}, 408, "udp"},
{"prm-nm", {NULL}, 409, "tcp"},
{"prm-nm", {NULL}, 409, "udp"},
libcares/ares_platform.c view on Meta::CPAN
{"cadkey-licman", {NULL}, 1399, "tcp"},
{"cadkey-licman", {NULL}, 1399, "udp"},
{"cadkey-tablet", {NULL}, 1400, "tcp"},
{"cadkey-tablet", {NULL}, 1400, "udp"},
{"goldleaf-licman", {NULL}, 1401, "tcp"},
{"goldleaf-licman", {NULL}, 1401, "udp"},
{"prm-sm-np", {NULL}, 1402, "tcp"},
{"prm-sm-np", {NULL}, 1402, "udp"},
{"prm-nm-np", {NULL}, 1403, "tcp"},
{"prm-nm-np", {NULL}, 1403, "udp"},
{"igi-lm", {NULL}, 1404, "tcp"},
{"igi-lm", {NULL}, 1404, "udp"},
{"ibm-res", {NULL}, 1405, "tcp"},
{"ibm-res", {NULL}, 1405, "udp"},
{"netlabs-lm", {NULL}, 1406, "tcp"},
{"netlabs-lm", {NULL}, 1406, "udp"},
{"dbsa-lm", {NULL}, 1407, "tcp"},
{"dbsa-lm", {NULL}, 1407, "udp"},
{"sophia-lm", {NULL}, 1408, "tcp"},
{"sophia-lm", {NULL}, 1408, "udp"},
{"here-lm", {NULL}, 1409, "tcp"},
{"here-lm", {NULL}, 1409, "udp"},
libcares/ares_platform.c view on Meta::CPAN
{"fmpro-fdal", {NULL}, 2399, "tcp"},
{"fmpro-fdal", {NULL}, 2399, "udp"},
{"opequus-server", {NULL}, 2400, "tcp"},
{"opequus-server", {NULL}, 2400, "udp"},
{"cvspserver", {NULL}, 2401, "tcp"},
{"cvspserver", {NULL}, 2401, "udp"},
{"taskmaster2000", {NULL}, 2402, "tcp"},
{"taskmaster2000", {NULL}, 2402, "udp"},
{"taskmaster2000", {NULL}, 2403, "tcp"},
{"taskmaster2000", {NULL}, 2403, "udp"},
{"iec-104", {NULL}, 2404, "tcp"},
{"iec-104", {NULL}, 2404, "udp"},
{"trc-netpoll", {NULL}, 2405, "tcp"},
{"trc-netpoll", {NULL}, 2405, "udp"},
{"jediserver", {NULL}, 2406, "tcp"},
{"jediserver", {NULL}, 2406, "udp"},
{"orion", {NULL}, 2407, "tcp"},
{"orion", {NULL}, 2407, "udp"},
{"optimanet", {NULL}, 2408, "tcp"},
{"optimanet", {NULL}, 2408, "udp"},
{"sns-protocol", {NULL}, 2409, "tcp"},
{"sns-protocol", {NULL}, 2409, "udp"},
libcares/ares_platform.c view on Meta::CPAN
{"wap-push-http", {NULL}, 4035, "tcp"},
{"wap-push-http", {NULL}, 4035, "udp"},
{"wap-push-https", {NULL}, 4036, "tcp"},
{"wap-push-https", {NULL}, 4036, "udp"},
{"ravehd", {NULL}, 4037, "tcp"},
{"ravehd", {NULL}, 4037, "udp"},
{"fazzt-ptp", {NULL}, 4038, "tcp"},
{"fazzt-ptp", {NULL}, 4038, "udp"},
{"fazzt-admin", {NULL}, 4039, "tcp"},
{"fazzt-admin", {NULL}, 4039, "udp"},
{"yo-main", {NULL}, 4040, "tcp"},
{"yo-main", {NULL}, 4040, "udp"},
{"houston", {NULL}, 4041, "tcp"},
{"houston", {NULL}, 4041, "udp"},
{"ldxp", {NULL}, 4042, "tcp"},
{"ldxp", {NULL}, 4042, "udp"},
{"nirp", {NULL}, 4043, "tcp"},
{"nirp", {NULL}, 4043, "udp"},
{"ltp", {NULL}, 4044, "tcp"},
{"ltp", {NULL}, 4044, "udp"},
{"npp", {NULL}, 4045, "tcp"},
{"npp", {NULL}, 4045, "udp"},
{"acp-proto", {NULL}, 4046, "tcp"},
{"acp-proto", {NULL}, 4046, "udp"},
{"ctp-state", {NULL}, 4047, "tcp"},
{"ctp-state", {NULL}, 4047, "udp"},
{"wafs", {NULL}, 4049, "tcp"},
{"wafs", {NULL}, 4049, "udp"},
{"cisco-wafs", {NULL}, 4050, "tcp"},
{"cisco-wafs", {NULL}, 4050, "udp"},
{"cppdp", {NULL}, 4051, "tcp"},
{"cppdp", {NULL}, 4051, "udp"},
{"interact", {NULL}, 4052, "tcp"},
{"interact", {NULL}, 4052, "udp"},
{"ccu-comm-1", {NULL}, 4053, "tcp"},
{"ccu-comm-1", {NULL}, 4053, "udp"},
{"ccu-comm-2", {NULL}, 4054, "tcp"},
{"ccu-comm-2", {NULL}, 4054, "udp"},
libcares/ares_platform.c view on Meta::CPAN
{"omnivisionesx", {NULL}, 4395, "udp"},
{"fly", {NULL}, 4396, "tcp"},
{"ds-srv", {NULL}, 4400, "tcp"},
{"ds-srv", {NULL}, 4400, "udp"},
{"ds-srvr", {NULL}, 4401, "tcp"},
{"ds-srvr", {NULL}, 4401, "udp"},
{"ds-clnt", {NULL}, 4402, "tcp"},
{"ds-clnt", {NULL}, 4402, "udp"},
{"ds-user", {NULL}, 4403, "tcp"},
{"ds-user", {NULL}, 4403, "udp"},
{"ds-admin", {NULL}, 4404, "tcp"},
{"ds-admin", {NULL}, 4404, "udp"},
{"ds-mail", {NULL}, 4405, "tcp"},
{"ds-mail", {NULL}, 4405, "udp"},
{"ds-slp", {NULL}, 4406, "tcp"},
{"ds-slp", {NULL}, 4406, "udp"},
{"nacagent", {NULL}, 4407, "tcp"},
{"slscc", {NULL}, 4408, "tcp"},
{"netcabinet-com", {NULL}, 4409, "tcp"},
{"itwo-server", {NULL}, 4410, "tcp"},
{"netrockey6", {NULL}, 4425, "tcp"},
{"netrockey6", {NULL}, 4425, "udp"},
libcares/ares_platform.c view on Meta::CPAN
{"securitychase", {NULL}, 5399, "tcp"},
{"securitychase", {NULL}, 5399, "udp"},
{"excerpt", {NULL}, 5400, "tcp"},
{"excerpt", {NULL}, 5400, "udp"},
{"excerpts", {NULL}, 5401, "tcp"},
{"excerpts", {NULL}, 5401, "udp"},
{"mftp", {NULL}, 5402, "tcp"},
{"mftp", {NULL}, 5402, "udp"},
{"hpoms-ci-lstn", {NULL}, 5403, "tcp"},
{"hpoms-ci-lstn", {NULL}, 5403, "udp"},
{"hpoms-dps-lstn", {NULL}, 5404, "tcp"},
{"hpoms-dps-lstn", {NULL}, 5404, "udp"},
{"netsupport", {NULL}, 5405, "tcp"},
{"netsupport", {NULL}, 5405, "udp"},
{"systemics-sox", {NULL}, 5406, "tcp"},
{"systemics-sox", {NULL}, 5406, "udp"},
{"foresyte-clear", {NULL}, 5407, "tcp"},
{"foresyte-clear", {NULL}, 5407, "udp"},
{"foresyte-sec", {NULL}, 5408, "tcp"},
{"foresyte-sec", {NULL}, 5408, "udp"},
{"salient-dtasrv", {NULL}, 5409, "tcp"},
{"salient-dtasrv", {NULL}, 5409, "udp"},
libcares/ares_platform.c view on Meta::CPAN
{"m2mservices", {NULL}, 8383, "tcp"},
{"m2mservices", {NULL}, 8383, "udp"},
{"cvd", {NULL}, 8400, "tcp"},
{"cvd", {NULL}, 8400, "udp"},
{"sabarsd", {NULL}, 8401, "tcp"},
{"sabarsd", {NULL}, 8401, "udp"},
{"abarsd", {NULL}, 8402, "tcp"},
{"abarsd", {NULL}, 8402, "udp"},
{"admind", {NULL}, 8403, "tcp"},
{"admind", {NULL}, 8403, "udp"},
{"svcloud", {NULL}, 8404, "tcp"},
{"svbackup", {NULL}, 8405, "tcp"},
{"espeech", {NULL}, 8416, "tcp"},
{"espeech", {NULL}, 8416, "udp"},
{"espeech-rtp", {NULL}, 8417, "tcp"},
{"espeech-rtp", {NULL}, 8417, "udp"},
{"cybro-a-bus", {NULL}, 8442, "tcp"},
{"cybro-a-bus", {NULL}, 8442, "udp"},
{"pcsync-https", {NULL}, 8443, "tcp"},
{"pcsync-https", {NULL}, 8443, "udp"},
{"pcsync-http", {NULL}, 8444, "tcp"},
libcares/test/ares-test-parse-aaaa.cc view on Meta::CPAN
int count = 5;
EXPECT_EQ(ARES_SUCCESS, ares_parse_aaaa_reply(data.data(), data.size(),
&host, info, &count));
EXPECT_EQ(1, count);
EXPECT_EQ(100, info[0].ttl);
EXPECT_EQ(0x01, info[0].ip6addr._S6_un._S6_u8[0]);
EXPECT_EQ(0x02, info[0].ip6addr._S6_un._S6_u8[4]);
ASSERT_NE(nullptr, host);
std::stringstream ss;
ss << HostEnt(host);
EXPECT_EQ("{'example.com' aliases=[] addrs=[0101:0101:0202:0202:0303:0303:0404:0404]}", ss.str());
ares_free_hostent(host);
// Repeat without providing places to put the results
count = 0;
EXPECT_EQ(ARES_SUCCESS, ares_parse_aaaa_reply(data.data(), data.size(),
nullptr, info, &count));
}
TEST_F(LibraryTest, ParseAaaaReplyCname) {
DNSPacket pkt;
libcares/test/ares-test-parse-aaaa.cc view on Meta::CPAN
EXPECT_EQ(ARES_SUCCESS, ares_parse_aaaa_reply(data.data(), data.size(),
&host, info, &count));
EXPECT_EQ(1, count);
// CNAME TTL overrides AAAA TTL.
EXPECT_EQ(50, info[0].ttl);
EXPECT_EQ(0x01, info[0].ip6addr._S6_un._S6_u8[0]);
EXPECT_EQ(0x02, info[0].ip6addr._S6_un._S6_u8[4]);
ASSERT_NE(nullptr, host);
std::stringstream ss;
ss << HostEnt(host);
EXPECT_EQ("{'c.example.com' aliases=[example.com] addrs=[0101:0101:0202:0202:0303:0303:0404:0404]}", ss.str());
ares_free_hostent(host);
// Repeat without providing a hostent
count = 5;
EXPECT_EQ(ARES_SUCCESS, ares_parse_aaaa_reply(data.data(), data.size(),
nullptr, info, &count));
EXPECT_EQ(1, count);
EXPECT_EQ(50, info[0].ttl);
EXPECT_EQ(0x01, info[0].ip6addr._S6_un._S6_u8[0]);
EXPECT_EQ(0x02, info[0].ip6addr._S6_un._S6_u8[4]);
( run in 0.776 second using v1.01-cache-2.11-cpan-39bf76dae61 )