1
1
/*
2
2
* lws-api-test-async-dns
3
3
*
4
- * Written in 2019 by Andy Green <[email protected] >
4
+ * Written in 2019-2025 by Andy Green <[email protected] >
5
5
*
6
6
* This file is made available under the Creative Commons CC0 1.0
7
7
* Universal Public Domain Dedication.
12
12
#include <libwebsockets.h>
13
13
#include <signal.h>
14
14
15
- static int interrupted , dtest , ok , fail , _exp = 33 ;
15
+ static int interrupted , dtest , ok , fail , _exp = 30 ;
16
16
struct lws_context * context ;
17
17
18
18
/*
@@ -87,20 +87,20 @@ static struct async_dns_tests {
87
87
{ "localhost" , LWS_ADNS_RECORD_A , 4 ,
88
88
{ 127 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , } },
89
89
{ "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 , } },
91
91
{ "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 , } },
93
93
#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 , } },
97
97
{ "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 , } },
100
100
#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, } },
104
104
{ "assets.msn.com" , TEST_FLAG_NOCHECK_RESULT_IP |
105
105
LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 4 ,
106
106
{ 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 {
110
110
{ "a-0003.a-msedge.net" , TEST_FLAG_NOCHECK_RESULT_IP |
111
111
LWS_ADNS_SYNTHETIC | LWS_ADNS_RECORD_A , 0 ,
112
112
{ 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, } },
119
119
};
120
120
121
121
static uint8_t canned_c_msn_com [] = {
0 commit comments