Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
05baef32
Commit
05baef32
authored
Jul 19, 2016
by
bert hubert
Committed by
Marcel Stör
Jul 19, 2016
Browse files
Increase DNS transaction ID space from 250 to 65536 states (#1323)
parent
b21b3e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lwip/core/dns.c
View file @
05baef32
...
...
@@ -227,7 +227,7 @@ static ip_addr_t dns_servers[DNS_MAX_SERVERS];
/** Contiguous buffer for processing responses */
//static u8_t dns_payload_buffer[LWIP_MEM_ALIGN_BUFFER(DNS_MSG_SIZE)];
static
u8_t
*
dns_payload
;
static
u
8
_t
dns_random
;
static
u
16
_t
dns_random
;
/**
* Initialize the resolver: set up the UDP pcb and configure the default server
* (DNS_SERVER_ADDRESS).
...
...
@@ -570,7 +570,7 @@ dns_send(u8_t numdns, const char* name, u8_t id)
char
*
query
,
*
nptr
;
const
char
*
pHostname
;
u8_t
n
;
dns_random
=
os_random
()
%
250
;
dns_random
=
(
u16_t
)
os_random
();
LWIP_DEBUGF
(
DNS_DEBUG
,
(
"dns_send: dns_servers[%"
U16_F
"]
\"
%s
\"
: request
\n
"
,
(
u16_t
)(
numdns
),
name
));
LWIP_ASSERT
(
"dns server out of array"
,
numdns
<
DNS_MAX_SERVERS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment