forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: read the dns query id in terms of base::ReadBigEndian() function
This allow us to write DnsQuery::id() function without the reinterpret_cast. To be able to do that, we added a pointer to dns_protocol::Header in DnsQuery. That allowed us to also remove the header() function. BUG=None TEST=net_unittests --gtest_filter=*Dns* R=ttuttle@chromium.org Review URL: https://codereview.chromium.org/1597463005 Cr-Commit-Position: refs/heads/master@{#370227}
- Loading branch information
Showing
2 changed files
with
15 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters