11/*
22 * lws-api-test-async-dns
33 *
4- * Written in 2019 by Andy Green <andy@warmcat.com>
4+ * Written in 2019-2025 by Andy Green <andy@warmcat.com>
55 *
66 * This file is made available under the Creative Commons CC0 1.0
77 * Universal Public Domain Dedication.
1212#include <libwebsockets.h>
1313#include <signal.h>
1414
15- static int interrupted , dtest , ok , fail , _exp = 33 ;
15+ static int interrupted , dtest , ok , fail , _exp = 30 ;
1616struct lws_context * context ;
1717
1818/*
@@ -87,20 +87,20 @@ static struct async_dns_tests {
8787 { "localhost" , LWS_ADNS_RECORD_A , 4 ,
8888 { 127 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
8989 { "ipv4only.warmcat.com" , LWS_ADNS_RECORD_A , 4 ,
90- { 46 , 105 , 127 , 147 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
90+ { 212 , 83 , 179 , 61 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
9191 { "onevalid.bogus.warmcat.com" , LWS_ADNS_RECORD_A , 4 ,
92- { 46 , 105 , 127 , 147 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
92+ { 212 , 83 , 179 , 61 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
9393#if defined(LWS_WITH_IPV6 )
94- { "warmcat.com" , LWS_ADNS_RECORD_AAAA , 16 , /* check ipv6 */
95- { 0x20 , 0x01 , 0x41 , 0xd0 , 0x00 , 0x02 , 0xee , 0x93 ,
96- 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , } },
94+ { "mail. warmcat.com" , LWS_ADNS_RECORD_AAAA , 16 , /* check ipv6 */
95+ { 0x20 , 0x01 , 0x0b , 0xc8 , 0x60 , 0x10 , 0x02 , 0x13 ,
96+ 0x02 , 0x08 , 0xa2 , 0xff , 0xfe , 0x0c , 0x72 , 0xce , } },
9797 { "ipv6only.warmcat.com" , LWS_ADNS_RECORD_AAAA , 16 , /* check ipv6 */
98- { 0x20 , 0x01 , 0x41 , 0xd0 , 0x00 , 0x02 , 0xee , 0x93 ,
99- 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , } },
98+ { 0x20 , 0x01 , 0x0b , 0xc8 , 0x60 , 0x10 , 0x02 , 0x13 ,
99+ 0x02 , 0x08 , 0xa2 , 0xff , 0xfe , 0x0c , 0x72 , 0xce , } },
100100#endif
101- { "c.msn.com" , TEST_FLAG_NOCHECK_RESULT_IP |
102- LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 4 ,
103- { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
101+ // { "c.msn.com", TEST_FLAG_NOCHECK_RESULT_IP |
102+ // LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A, 4,
103+ // { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } },
104104 { "assets.msn.com" , TEST_FLAG_NOCHECK_RESULT_IP |
105105 LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 4 ,
106106 { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
@@ -110,12 +110,12 @@ static struct async_dns_tests {
110110 { "a-0003.a-msedge.net" , TEST_FLAG_NOCHECK_RESULT_IP |
111111 LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 0 ,
112112 { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
113- { "c-msn-com-europe-vip.trafficmanager.net" , TEST_FLAG_NOCHECK_RESULT_IP |
114- LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 0 ,
115- { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
116- { "c-msn-com-europe-vip.trafficmanager.net" , TEST_FLAG_NOCHECK_RESULT_IP |
117- LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 0 ,
118- { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
113+ // { "c-msn-com-europe-vip.trafficmanager.net", TEST_FLAG_NOCHECK_RESULT_IP |
114+ // LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A, 0,
115+ // { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } },
116+ // { "c-msn-com-europe-vip.trafficmanager.net", TEST_FLAG_NOCHECK_RESULT_IP |
117+ // LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A, 0,
118+ // { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, } },
119119};
120120
121121static uint8_t canned_c_msn_com [] = {
0 commit comments