Skip to content

emulation on host: fix for latest changes in dnsserver #8559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
declare rst_info in emulation world
  • Loading branch information
d-a-v committed May 10, 2022
commit 34c787985681b992980b4c4066265c8c1d43e33b
5 changes: 0 additions & 5 deletions libraries/DNSServer/src/DNSServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,10 @@ DNSServer::DNSServer()
// They will then report connected.
_ttl = lwip_htonl(60);

#if !CORE_MOCK

if (REASON_DEFAULT_RST == resetInfo.reason ||
REASON_DEEP_SLEEP_AWAKE <= resetInfo.reason) {
_ids = random(0, BIT(16) - 1);
}

#endif // !CORE_MOCK

_ids += kDNSSQueSize; // for the case of restart, ignore any inflight responses

_errorReplyCode = DNSReplyCode::NonExistentDomain;
Expand Down
3 changes: 3 additions & 0 deletions tests/host/common/MockEsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@

#include <stdlib.h>

#include <user_interface.h>
struct rst_info resetInfo;

unsigned long long operator"" _kHz(unsigned long long x)
{
return x * 1000;
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy