clang-format: fix structure alignment

It appears the structure alignment chosen just doesn't work right.
Switch to 'left', it appears to be mostly correct.

Fix By: Brad House (@bradh352)
pull/580/head
Brad House 1 year ago
parent 1549415228
commit 86e417e247
  1. 2
      .clang-format
  2. 2
      src/lib/ares_init.c
  3. 21682
      src/lib/ares_platform.c
  4. 500
      src/tools/acountry.c
  5. 104
      src/tools/adig.c

@ -18,7 +18,7 @@ UseTab: Never
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Right
AlignArrayOfStructures: Left
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false

@ -1922,7 +1922,7 @@ static ares_bool_t ares_ipv6_server_blacklisted(const unsigned char ipaddr[16])
* but are known to be returned at least sometimes on Windows and Android.
*/
{{ 0xfe, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00 },
0x00, 0x00, 0x00, 0x00 },
10}
};

File diff suppressed because it is too large Load Diff

@ -309,260 +309,260 @@ static const struct search_list *
* Ref: https://en.wikipedia.org/wiki/ISO_3166-1
*/
static const struct search_list country_list[] = {
{ 4, "af", "Afghanistan" },
{ 248, "ax", "Åland Island"},
{ 8, "al", "Albania"},
{ 12, "dz", "Algeria"},
{ 16, "as", "American Samoa"},
{ 20, "ad", "Andorra"},
{ 24, "ao", "Angola"},
{ 660, "ai", "Anguilla"},
{ 10, "aq", "Antarctica"},
{ 28, "ag", "Antigua & Barbuda"},
{ 32, "ar", "Argentina"},
{ 51, "am", "Armenia"},
{ 533, "aw", "Aruba"},
{ 36, "au", "Australia"},
{ 40, "at", "Austria"},
{ 31, "az", "Azerbaijan"},
{ 44, "bs", "Bahamas"},
{ 48, "bh", "Bahrain"},
{ 50, "bd", "Bangladesh"},
{ 52, "bb", "Barbados"},
{ 112, "by", "Belarus"},
{ 56, "be", "Belgium"},
{ 84, "bz", "Belize"},
{ 204, "bj", "Benin"},
{ 60, "bm", "Bermuda"},
{ 64, "bt", "Bhutan"},
{ 68, "bo", "Bolivia"},
{ 535, "bq", "Bonaire, Sint Eustatius and Saba"}, /* Formerly 'Bonaire' /
{4, "af", "Afghanistan" },
{ 248, "ax", "Åland Island" },
{ 8, "al", "Albania" },
{ 12, "dz", "Algeria" },
{ 16, "as", "American Samoa" },
{ 20, "ad", "Andorra" },
{ 24, "ao", "Angola" },
{ 660, "ai", "Anguilla" },
{ 10, "aq", "Antarctica" },
{ 28, "ag", "Antigua & Barbuda" },
{ 32, "ar", "Argentina" },
{ 51, "am", "Armenia" },
{ 533, "aw", "Aruba" },
{ 36, "au", "Australia" },
{ 40, "at", "Austria" },
{ 31, "az", "Azerbaijan" },
{ 44, "bs", "Bahamas" },
{ 48, "bh", "Bahrain" },
{ 50, "bd", "Bangladesh" },
{ 52, "bb", "Barbados" },
{ 112, "by", "Belarus" },
{ 56, "be", "Belgium" },
{ 84, "bz", "Belize" },
{ 204, "bj", "Benin" },
{ 60, "bm", "Bermuda" },
{ 64, "bt", "Bhutan" },
{ 68, "bo", "Bolivia" },
{ 535, "bq", "Bonaire, Sint Eustatius and Saba" }, /* Formerly 'Bonaire' /
'Netherlands Antilles' */
{ 70, "ba", "Bosnia & Herzegovina"},
{ 72, "bw", "Botswana"},
{ 74, "bv", "Bouvet Island"},
{ 76, "br", "Brazil"},
{ 86, "io", "British Indian Ocean Territory"},
{ 96, "bn", "Brunei Darussalam"},
{ 100, "bg", "Bulgaria"},
{ 854, "bf", "Burkina Faso"},
{ 108, "bi", "Burundi"},
{ 116, "kh", "Cambodia"},
{ 120, "cm", "Cameroon"},
{ 124, "ca", "Canada"},
{ 132, "cv", "Cape Verde"},
{ 136, "ky", "Cayman Islands"},
{ 140, "cf", "Central African Republic"},
{ 148, "td", "Chad"},
{ 152, "cl", "Chile"},
{ 156, "cn", "China"},
{ 162, "cx", "Christmas Island"},
{ 166, "cc", "Cocos Islands"},
{ 170, "co", "Colombia"},
{ 174, "km", "Comoros"},
{ 178, "cg", "Congo"},
{ 180, "cd", "Congo"},
{ 184, "ck", "Cook Islands"},
{ 188, "cr", "Costa Rica"},
{ 384, "ci", "Cote d'Ivoire"},
{ 191, "hr", "Croatia"},
{ 192, "cu", "Cuba"},
{ 531, "cw", "Curaçao"},
{ 196, "cy", "Cyprus"},
{ 203, "cz", "Czech Republic"},
{ 208, "dk", "Denmark"},
{ 262, "dj", "Djibouti"},
{ 212, "dm", "Dominica"},
{ 214, "do", "Dominican Republic"},
{ 218, "ec", "Ecuador"},
{ 818, "eg", "Egypt"},
{ 222, "sv", "El Salvador"},
{ 226, "gq", "Equatorial Guinea"},
{ 232, "er", "Eritrea"},
{ 233, "ee", "Estonia"},
{ 748, "sz", "Eswatini"}, /* Formerly Swaziland */
{ 231, "et", "Ethiopia"},
{65281, "eu", "European Union"}, /* 127.0.255.1 */
{ 238, "fk", "Falkland Islands"},
{ 234, "fo", "Faroe Islands"},
{ 242, "fj", "Fiji"},
{ 246, "fi", "Finland"},
{ 250, "fr", "France"},
{ 249, "fx", "France, Metropolitan"},
{ 254, "gf", "French Guiana"},
{ 258, "pf", "French Polynesia"},
{ 260, "tf", "French Southern Territories"},
{ 266, "ga", "Gabon"},
{ 270, "gm", "Gambia"},
{ 268, "ge", "Georgia"},
{ 276, "de", "Germany"},
{ 288, "gh", "Ghana"},
{ 292, "gi", "Gibraltar"},
{ 300, "gr", "Greece"},
{ 304, "gl", "Greenland"},
{ 308, "gd", "Grenada"},
{ 312, "gp", "Guadeloupe"},
{ 316, "gu", "Guam"},
{ 320, "gt", "Guatemala"},
{ 831, "gg", "Guernsey"},
{ 324, "gn", "Guinea"},
{ 624, "gw", "Guinea-Bissau"},
{ 328, "gy", "Guyana"},
{ 332, "ht", "Haiti"},
{ 334, "hm", "Heard & Mc Donald Islands"},
{ 336, "va", "Holy See"}, /* Vatican City */
{ 340, "hn", "Honduras"},
{ 344, "hk", "Hong kong"},
{ 348, "hu", "Hungary"},
{ 352, "is", "Iceland"},
{ 356, "in", "India"},
{ 360, "id", "Indonesia"},
{ 364, "ir", "Iran"},
{ 368, "iq", "Iraq"},
{ 372, "ie", "Ireland"},
{ 833, "im", "Isle of Man"},
{ 376, "il", "Israel"},
{ 380, "it", "Italy"},
{ 388, "jm", "Jamaica"},
{ 392, "jp", "Japan"},
{ 832, "je", "Jersey"},
{ 400, "jo", "Jordan"},
{ 398, "kz", "Kazakhstan"},
{ 404, "ke", "Kenya"},
{ 296, "ki", "Kiribati"},
{ 408, "kp", "Korea (north)"},
{ 410, "kr", "Korea (south)"},
{ 0, "xk", "Kosovo"}, /* https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
{ 414, "kw", "Kuwait"},
{ 417, "kg", "Kyrgyzstan"},
{ 418, "la", "Laos"},
{ 428, "lv", "Latvia"},
{ 422, "lb", "Lebanon"},
{ 426, "ls", "Lesotho"},
{ 430, "lr", "Liberia"},
{ 434, "ly", "Libya"},
{ 438, "li", "Liechtenstein"},
{ 440, "lt", "Lithuania"},
{ 442, "lu", "Luxembourg"},
{ 446, "mo", "Macao"},
{ 450, "mg", "Madagascar"},
{ 454, "mw", "Malawi"},
{ 458, "my", "Malaysia"},
{ 462, "mv", "Maldives"},
{ 466, "ml", "Mali"},
{ 470, "mt", "Malta"},
{ 584, "mh", "Marshall Islands"},
{ 474, "mq", "Martinique"},
{ 478, "mr", "Mauritania"},
{ 480, "mu", "Mauritius"},
{ 175, "yt", "Mayotte"},
{ 484, "mx", "Mexico"},
{ 583, "fm", "Micronesia"},
{ 498, "md", "Moldova"},
{ 492, "mc", "Monaco"},
{ 496, "mn", "Mongolia"},
{ 499, "me", "Montenegro"},
{ 500, "ms", "Montserrat"},
{ 504, "ma", "Morocco"},
{ 508, "mz", "Mozambique"},
{ 104, "mm", "Myanmar"},
{ 516, "na", "Namibia"},
{ 520, "nr", "Nauru"},
{ 524, "np", "Nepal"},
{ 528, "nl", "Netherlands"},
{ 540, "nc", "New Caledonia"},
{ 554, "nz", "New Zealand"},
{ 558, "ni", "Nicaragua"},
{ 562, "ne", "Niger"},
{ 566, "ng", "Nigeria"},
{ 570, "nu", "Niue"},
{ 574, "nf", "Norfolk Island"},
{ 807, "mk", "North Macedonia"}, /* 'Macedonia' until February 2019 */
{ 580, "mp", "Northern Mariana Islands"},
{ 578, "no", "Norway"},
{ 512, "om", "Oman"},
{ 586, "pk", "Pakistan"},
{ 585, "pw", "Palau"},
{ 275, "ps", "Palestinian Territory"},
{ 591, "pa", "Panama"},
{ 598, "pg", "Papua New Guinea"},
{ 600, "py", "Paraguay"},
{ 604, "pe", "Peru"},
{ 608, "ph", "Philippines"},
{ 612, "pn", "Pitcairn"},
{ 616, "pl", "Poland"},
{ 620, "pt", "Portugal"},
{ 630, "pr", "Puerto Rico"},
{ 634, "qa", "Qatar"},
{ 638, "re", "Reunion"},
{ 642, "ro", "Romania"},
{ 643, "ru", "Russian Federation"},
{ 646, "rw", "Rwanda"},
{ 70, "ba", "Bosnia & Herzegovina" },
{ 72, "bw", "Botswana" },
{ 74, "bv", "Bouvet Island" },
{ 76, "br", "Brazil" },
{ 86, "io", "British Indian Ocean Territory" },
{ 96, "bn", "Brunei Darussalam" },
{ 100, "bg", "Bulgaria" },
{ 854, "bf", "Burkina Faso" },
{ 108, "bi", "Burundi" },
{ 116, "kh", "Cambodia" },
{ 120, "cm", "Cameroon" },
{ 124, "ca", "Canada" },
{ 132, "cv", "Cape Verde" },
{ 136, "ky", "Cayman Islands" },
{ 140, "cf", "Central African Republic" },
{ 148, "td", "Chad" },
{ 152, "cl", "Chile" },
{ 156, "cn", "China" },
{ 162, "cx", "Christmas Island" },
{ 166, "cc", "Cocos Islands" },
{ 170, "co", "Colombia" },
{ 174, "km", "Comoros" },
{ 178, "cg", "Congo" },
{ 180, "cd", "Congo" },
{ 184, "ck", "Cook Islands" },
{ 188, "cr", "Costa Rica" },
{ 384, "ci", "Cote d'Ivoire" },
{ 191, "hr", "Croatia" },
{ 192, "cu", "Cuba" },
{ 531, "cw", "Curaçao" },
{ 196, "cy", "Cyprus" },
{ 203, "cz", "Czech Republic" },
{ 208, "dk", "Denmark" },
{ 262, "dj", "Djibouti" },
{ 212, "dm", "Dominica" },
{ 214, "do", "Dominican Republic" },
{ 218, "ec", "Ecuador" },
{ 818, "eg", "Egypt" },
{ 222, "sv", "El Salvador" },
{ 226, "gq", "Equatorial Guinea" },
{ 232, "er", "Eritrea" },
{ 233, "ee", "Estonia" },
{ 748, "sz", "Eswatini" }, /* Formerly Swaziland */
{ 231, "et", "Ethiopia" },
{ 65281, "eu", "European Union" }, /* 127.0.255.1 */
{ 238, "fk", "Falkland Islands" },
{ 234, "fo", "Faroe Islands" },
{ 242, "fj", "Fiji" },
{ 246, "fi", "Finland" },
{ 250, "fr", "France" },
{ 249, "fx", "France, Metropolitan" },
{ 254, "gf", "French Guiana" },
{ 258, "pf", "French Polynesia" },
{ 260, "tf", "French Southern Territories" },
{ 266, "ga", "Gabon" },
{ 270, "gm", "Gambia" },
{ 268, "ge", "Georgia" },
{ 276, "de", "Germany" },
{ 288, "gh", "Ghana" },
{ 292, "gi", "Gibraltar" },
{ 300, "gr", "Greece" },
{ 304, "gl", "Greenland" },
{ 308, "gd", "Grenada" },
{ 312, "gp", "Guadeloupe" },
{ 316, "gu", "Guam" },
{ 320, "gt", "Guatemala" },
{ 831, "gg", "Guernsey" },
{ 324, "gn", "Guinea" },
{ 624, "gw", "Guinea-Bissau" },
{ 328, "gy", "Guyana" },
{ 332, "ht", "Haiti" },
{ 334, "hm", "Heard & Mc Donald Islands" },
{ 336, "va", "Holy See" }, /* Vatican City */
{ 340, "hn", "Honduras" },
{ 344, "hk", "Hong kong" },
{ 348, "hu", "Hungary" },
{ 352, "is", "Iceland" },
{ 356, "in", "India" },
{ 360, "id", "Indonesia" },
{ 364, "ir", "Iran" },
{ 368, "iq", "Iraq" },
{ 372, "ie", "Ireland" },
{ 833, "im", "Isle of Man" },
{ 376, "il", "Israel" },
{ 380, "it", "Italy" },
{ 388, "jm", "Jamaica" },
{ 392, "jp", "Japan" },
{ 832, "je", "Jersey" },
{ 400, "jo", "Jordan" },
{ 398, "kz", "Kazakhstan" },
{ 404, "ke", "Kenya" },
{ 296, "ki", "Kiribati" },
{ 408, "kp", "Korea (north)" },
{ 410, "kr", "Korea (south)" },
{ 0, "xk", "Kosovo" }, /* https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
{ 414, "kw", "Kuwait" },
{ 417, "kg", "Kyrgyzstan" },
{ 418, "la", "Laos" },
{ 428, "lv", "Latvia" },
{ 422, "lb", "Lebanon" },
{ 426, "ls", "Lesotho" },
{ 430, "lr", "Liberia" },
{ 434, "ly", "Libya" },
{ 438, "li", "Liechtenstein" },
{ 440, "lt", "Lithuania" },
{ 442, "lu", "Luxembourg" },
{ 446, "mo", "Macao" },
{ 450, "mg", "Madagascar" },
{ 454, "mw", "Malawi" },
{ 458, "my", "Malaysia" },
{ 462, "mv", "Maldives" },
{ 466, "ml", "Mali" },
{ 470, "mt", "Malta" },
{ 584, "mh", "Marshall Islands" },
{ 474, "mq", "Martinique" },
{ 478, "mr", "Mauritania" },
{ 480, "mu", "Mauritius" },
{ 175, "yt", "Mayotte" },
{ 484, "mx", "Mexico" },
{ 583, "fm", "Micronesia" },
{ 498, "md", "Moldova" },
{ 492, "mc", "Monaco" },
{ 496, "mn", "Mongolia" },
{ 499, "me", "Montenegro" },
{ 500, "ms", "Montserrat" },
{ 504, "ma", "Morocco" },
{ 508, "mz", "Mozambique" },
{ 104, "mm", "Myanmar" },
{ 516, "na", "Namibia" },
{ 520, "nr", "Nauru" },
{ 524, "np", "Nepal" },
{ 528, "nl", "Netherlands" },
{ 540, "nc", "New Caledonia" },
{ 554, "nz", "New Zealand" },
{ 558, "ni", "Nicaragua" },
{ 562, "ne", "Niger" },
{ 566, "ng", "Nigeria" },
{ 570, "nu", "Niue" },
{ 574, "nf", "Norfolk Island" },
{ 807, "mk", "North Macedonia" }, /* 'Macedonia' until February 2019 */
{ 580, "mp", "Northern Mariana Islands" },
{ 578, "no", "Norway" },
{ 512, "om", "Oman" },
{ 586, "pk", "Pakistan" },
{ 585, "pw", "Palau" },
{ 275, "ps", "Palestinian Territory" },
{ 591, "pa", "Panama" },
{ 598, "pg", "Papua New Guinea" },
{ 600, "py", "Paraguay" },
{ 604, "pe", "Peru" },
{ 608, "ph", "Philippines" },
{ 612, "pn", "Pitcairn" },
{ 616, "pl", "Poland" },
{ 620, "pt", "Portugal" },
{ 630, "pr", "Puerto Rico" },
{ 634, "qa", "Qatar" },
{ 638, "re", "Reunion" },
{ 642, "ro", "Romania" },
{ 643, "ru", "Russian Federation" },
{ 646, "rw", "Rwanda" },
{ 0, "bl",
"Saint Barthélemy" }, /* https://en.wikipedia.org/wiki/ISO_3166-2:BL */
{ 659, "kn", "Saint Kitts & Nevis"},
{ 662, "lc", "Saint Lucia"},
{ 663, "mf", "Saint Martin"},
{ 670, "vc", "Saint Vincent"},
{ 882, "ws", "Samoa"},
{ 674, "sm", "San Marino"},
{ 678, "st", "Sao Tome & Principe"},
{ 682, "sa", "Saudi Arabia"},
{ 686, "sn", "Senegal"},
{ 688, "rs", "Serbia"},
{ 690, "sc", "Seychelles"},
{ 694, "sl", "Sierra Leone"},
{ 702, "sg", "Singapore"},
{ 534, "sx", "Sint Maarten"},
{ 703, "sk", "Slovakia"},
{ 705, "si", "Slovenia"},
{ 90, "sb", "Solomon Islands"},
{ 706, "so", "Somalia"},
{ 710, "za", "South Africa"},
{ 239, "gs", "South Georgia & South Sandwich Is."},
{ 728, "ss", "South Sudan"},
{ 724, "es", "Spain"},
{ 144, "lk", "Sri Lanka"},
{ 654, "sh", "St. Helena"},
{ 666, "pm", "St. Pierre & Miquelon"},
{ 736, "sd", "Sudan"},
{ 740, "sr", "Suriname"},
{ 744, "sj", "Svalbard & Jan Mayen Islands"},
{ 752, "se", "Sweden"},
{ 756, "ch", "Switzerland"},
{ 760, "sy", "Syrian Arab Republic"},
{ 158, "tw", "Taiwan"},
{ 762, "tj", "Tajikistan"},
{ 834, "tz", "Tanzania"},
{ 764, "th", "Thailand"},
{ 626, "tl", "Timor-Leste"},
{ 768, "tg", "Togo"},
{ 772, "tk", "Tokelau"},
{ 776, "to", "Tonga"},
{ 780, "tt", "Trinidad & Tobago"},
{ 788, "tn", "Tunisia"},
{ 792, "tr", "Turkey"},
{ 795, "tm", "Turkmenistan"},
{ 796, "tc", "Turks & Caicos Islands"},
{ 798, "tv", "Tuvalu"},
{ 800, "ug", "Uganda"},
{ 804, "ua", "Ukraine"},
{ 784, "ae", "United Arab Emirates"},
{ 826, "gb", "United Kingdom"},
{ 840, "us", "United States"},
{ 659, "kn", "Saint Kitts & Nevis" },
{ 662, "lc", "Saint Lucia" },
{ 663, "mf", "Saint Martin" },
{ 670, "vc", "Saint Vincent" },
{ 882, "ws", "Samoa" },
{ 674, "sm", "San Marino" },
{ 678, "st", "Sao Tome & Principe" },
{ 682, "sa", "Saudi Arabia" },
{ 686, "sn", "Senegal" },
{ 688, "rs", "Serbia" },
{ 690, "sc", "Seychelles" },
{ 694, "sl", "Sierra Leone" },
{ 702, "sg", "Singapore" },
{ 534, "sx", "Sint Maarten" },
{ 703, "sk", "Slovakia" },
{ 705, "si", "Slovenia" },
{ 90, "sb", "Solomon Islands" },
{ 706, "so", "Somalia" },
{ 710, "za", "South Africa" },
{ 239, "gs", "South Georgia & South Sandwich Is." },
{ 728, "ss", "South Sudan" },
{ 724, "es", "Spain" },
{ 144, "lk", "Sri Lanka" },
{ 654, "sh", "St. Helena" },
{ 666, "pm", "St. Pierre & Miquelon" },
{ 736, "sd", "Sudan" },
{ 740, "sr", "Suriname" },
{ 744, "sj", "Svalbard & Jan Mayen Islands" },
{ 752, "se", "Sweden" },
{ 756, "ch", "Switzerland" },
{ 760, "sy", "Syrian Arab Republic" },
{ 158, "tw", "Taiwan" },
{ 762, "tj", "Tajikistan" },
{ 834, "tz", "Tanzania" },
{ 764, "th", "Thailand" },
{ 626, "tl", "Timor-Leste" },
{ 768, "tg", "Togo" },
{ 772, "tk", "Tokelau" },
{ 776, "to", "Tonga" },
{ 780, "tt", "Trinidad & Tobago" },
{ 788, "tn", "Tunisia" },
{ 792, "tr", "Turkey" },
{ 795, "tm", "Turkmenistan" },
{ 796, "tc", "Turks & Caicos Islands" },
{ 798, "tv", "Tuvalu" },
{ 800, "ug", "Uganda" },
{ 804, "ua", "Ukraine" },
{ 784, "ae", "United Arab Emirates" },
{ 826, "gb", "United Kingdom" },
{ 840, "us", "United States" },
{ 581, "um", "United States Minor Outlying Islands"},
{ 858, "uy", "Uruguay"},
{ 860, "uz", "Uzbekistan"},
{ 548, "vu", "Vanuatu"},
{ 862, "ve", "Venezuela"},
{ 704, "vn", "Vietnam"},
{ 92, "vg", "Virgin Islands (British)"},
{ 850, "vi", "Virgin Islands (US)"},
{ 876, "wf", "Wallis & Futuna Islands"},
{ 732, "eh", "Western Sahara"},
{ 887, "ye", "Yemen"},
{ 894, "zm", "Zambia"},
{ 716, "zw", "Zimbabwe"}
{ 858, "uy", "Uruguay" },
{ 860, "uz", "Uzbekistan" },
{ 548, "vu", "Vanuatu" },
{ 862, "ve", "Venezuela" },
{ 704, "vn", "Vietnam" },
{ 92, "vg", "Virgin Islands (British)" },
{ 850, "vi", "Virgin Islands (US)" },
{ 876, "wf", "Wallis & Futuna Islands" },
{ 732, "eh", "Western Sahara" },
{ 887, "ye", "Yemen" },
{ 894, "zm", "Zambia" },
{ 716, "zw", "Zimbabwe" }
};
/*

@ -74,66 +74,66 @@ struct nv {
};
static const struct nv flags[] = {
{ "usevc", ARES_FLAG_USEVC},
{ "primary", ARES_FLAG_PRIMARY},
{ "igntc", ARES_FLAG_IGNTC},
{"norecurse", ARES_FLAG_NORECURSE},
{ "stayopen", ARES_FLAG_STAYOPEN},
{"noaliases", ARES_FLAG_NOALIASES}
{"usevc", ARES_FLAG_USEVC },
{ "primary", ARES_FLAG_PRIMARY },
{ "igntc", ARES_FLAG_IGNTC },
{ "norecurse", ARES_FLAG_NORECURSE},
{ "stayopen", ARES_FLAG_STAYOPEN },
{ "noaliases", ARES_FLAG_NOALIASES}
};
static const int nflags = sizeof(flags) / sizeof(flags[0]);
static const struct nv classes[] = {
{ "IN", C_IN},
{"CHAOS", C_CHAOS},
{ "HS", C_HS},
{ "ANY", C_ANY}
{"IN", C_IN },
{ "CHAOS", C_CHAOS},
{ "HS", C_HS },
{ "ANY", C_ANY }
};
static const int nclasses = sizeof(classes) / sizeof(classes[0]);
static const struct nv types[] = {
{ "A", T_A},
{ "NS", T_NS},
{ "MD", T_MD},
{ "MF", T_MF},
{ "CNAME", T_CNAME},
{ "SOA", T_SOA},
{ "MB", T_MB},
{ "MG", T_MG},
{ "MR", T_MR},
{ "NULL", T_NULL},
{ "WKS", T_WKS},
{ "PTR", T_PTR},
{ "HINFO", T_HINFO},
{ "MINFO", T_MINFO},
{ "MX", T_MX},
{ "TXT", T_TXT},
{ "RP", T_RP},
{ "AFSDB", T_AFSDB},
{ "X25", T_X25},
{ "ISDN", T_ISDN},
{ "RT", T_RT},
{ "NSAP", T_NSAP},
{"NSAP_PTR", T_NSAP_PTR},
{ "SIG", T_SIG},
{ "KEY", T_KEY},
{ "PX", T_PX},
{ "GPOS", T_GPOS},
{ "AAAA", T_AAAA},
{ "LOC", T_LOC},
{ "SRV", T_SRV},
{ "AXFR", T_AXFR},
{ "MAILB", T_MAILB},
{ "MAILA", T_MAILA},
{ "NAPTR", T_NAPTR},
{ "DS", T_DS},
{ "SSHFP", T_SSHFP},
{ "RRSIG", T_RRSIG},
{ "NSEC", T_NSEC},
{ "DNSKEY", T_DNSKEY},
{ "CAA", T_CAA},
{ "URI", T_URI},
{ "ANY", T_ANY}
{"A", T_A },
{ "NS", T_NS },
{ "MD", T_MD },
{ "MF", T_MF },
{ "CNAME", T_CNAME },
{ "SOA", T_SOA },
{ "MB", T_MB },
{ "MG", T_MG },
{ "MR", T_MR },
{ "NULL", T_NULL },
{ "WKS", T_WKS },
{ "PTR", T_PTR },
{ "HINFO", T_HINFO },
{ "MINFO", T_MINFO },
{ "MX", T_MX },
{ "TXT", T_TXT },
{ "RP", T_RP },
{ "AFSDB", T_AFSDB },
{ "X25", T_X25 },
{ "ISDN", T_ISDN },
{ "RT", T_RT },
{ "NSAP", T_NSAP },
{ "NSAP_PTR", T_NSAP_PTR},
{ "SIG", T_SIG },
{ "KEY", T_KEY },
{ "PX", T_PX },
{ "GPOS", T_GPOS },
{ "AAAA", T_AAAA },
{ "LOC", T_LOC },
{ "SRV", T_SRV },
{ "AXFR", T_AXFR },
{ "MAILB", T_MAILB },
{ "MAILA", T_MAILA },
{ "NAPTR", T_NAPTR },
{ "DS", T_DS },
{ "SSHFP", T_SSHFP },
{ "RRSIG", T_RRSIG },
{ "NSEC", T_NSEC },
{ "DNSKEY", T_DNSKEY },
{ "CAA", T_CAA },
{ "URI", T_URI },
{ "ANY", T_ANY }
};
static const int ntypes = sizeof(types) / sizeof(types[0]);

Loading…
Cancel
Save