Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Issue 14049018: Add simple non-response-based question parsing for mDNS passive listening (Closed)

Created:
7 years, 8 months ago by Noam Samuel
Modified:
7 years, 8 months ago
Reviewers:
cbentzel, szym, gene
CC:
chromium-reviews, cbentzel+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add simple non-response-based question parsing for mDNS passive listening Added method InitParseNoQuery to begin parsing a DNS response even if there is no matching query. This is useful in mDNS passive listening (for example, cacheing the results of unsolicited announcements as described in section 8.3 of http://www.rfc-editor.org/rfc/rfc6762.txt) BUG=233821 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195937

Patch Set 1 : #

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Total comments: 13

Patch Set 6 : Respond to reviewer comments #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -0 lines) Patch
M net/dns/dns_response.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M net/dns/dns_response.cc View 1 2 3 4 5 6 7 8 2 chunks +33 lines, -0 lines 0 comments Download
M net/dns/dns_response_unittest.cc View 1 2 3 4 5 1 chunk +133 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Noam Samuel
Hey, I'm going through the DNS record parsing code and seeing if there are any ...
7 years, 8 months ago (2013-04-15 20:49:56 UTC) #1
Noam Samuel
Added support for pointers (compresssed domains) in question section. On 2013/04/15 20:49:56, Noam Samuel (chromium) ...
7 years, 8 months ago (2013-04-16 18:57:46 UTC) #2
gene
https://codereview.chromium.org/14049018/diff/4001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/4001/net/dns/dns_response.cc#newcode180 net/dns/dns_response.cc:180: bool DnsResponse::InitParseNoQuery(int nbytes) { nit: you may consider naming ...
7 years, 8 months ago (2013-04-16 21:55:22 UTC) #3
Noam Samuel
https://codereview.chromium.org/14049018/diff/4001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/4001/net/dns/dns_response.cc#newcode180 net/dns/dns_response.cc:180: bool DnsResponse::InitParseNoQuery(int nbytes) { On 2013/04/16 21:55:22, gene wrote: ...
7 years, 8 months ago (2013-04-16 23:28:19 UTC) #4
gene
almost there :) https://codereview.chromium.org/14049018/diff/11001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/11001/net/dns/dns_response.cc#newcode185 net/dns/dns_response.cc:185: parser_ = DnsRecordParser(io_buffer_->data(), nit: you can ...
7 years, 8 months ago (2013-04-17 02:04:02 UTC) #5
gene
https://codereview.chromium.org/14049018/diff/11001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/11001/net/dns/dns_response.cc#newcode7 net/dns/dns_response.cc:7: #include <climits> you probably don't need this any more
7 years, 8 months ago (2013-04-17 02:05:38 UTC) #6
Noam Samuel
https://codereview.chromium.org/14049018/diff/11001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/11001/net/dns/dns_response.cc#newcode7 net/dns/dns_response.cc:7: #include <climits> On 2013/04/17 02:05:38, gene wrote: > you ...
7 years, 8 months ago (2013-04-17 20:39:08 UTC) #7
gene
lgtm
7 years, 8 months ago (2013-04-17 21:13:40 UTC) #8
Noam Samuel
+szym Does this look good? It's part of a wider effort to add DNS-SD/mDNS support ...
7 years, 8 months ago (2013-04-17 21:20:47 UTC) #9
szym
Needs work. https://codereview.chromium.org/14049018/diff/18001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/18001/net/dns/dns_response.cc#newcode234 net/dns/dns_response.cc:234: size_t DnsResponse::GetResponseOffset() const { Use DnsRecordParser instead. ...
7 years, 8 months ago (2013-04-17 22:11:12 UTC) #10
cbentzel
Also - I'd like to see compile time flags (mainly in net/net.gyp) so embedders of ...
7 years, 8 months ago (2013-04-17 23:27:08 UTC) #11
cbentzel
See disable_ftp_support for an example. Although in this case I think it should default to ...
7 years, 8 months ago (2013-04-17 23:28:43 UTC) #12
szym
https://codereview.chromium.org/14049018/diff/18001/net/dns/dns_response.h File net/dns/dns_response.h (right): https://codereview.chromium.org/14049018/diff/18001/net/dns/dns_response.h#newcode120 net/dns/dns_response.h:120: bool InitParse(int nbytes); On 2013/04/17 22:11:12, szym wrote: > ...
7 years, 8 months ago (2013-04-17 23:30:27 UTC) #13
szym
Another example is ENABLE_BUILT_IN_DNS . On Wed, Apr 17, 2013 at 7:28 PM, Chris Bentzel ...
7 years, 8 months ago (2013-04-17 23:33:00 UTC) #14
Noam Samuel
Should I wrap this functionality in #ifndefs? Or does this apply only for mDNS-specific code? ...
7 years, 8 months ago (2013-04-18 01:03:49 UTC) #15
szym
Frankly, in this cl, I'm ok with these two simple methods being always compiled. On ...
7 years, 8 months ago (2013-04-18 01:42:11 UTC) #16
Noam Samuel
https://codereview.chromium.org/14049018/diff/18001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/18001/net/dns/dns_response.cc#newcode234 net/dns/dns_response.cc:234: size_t DnsResponse::GetResponseOffset() const { On 2013/04/17 22:11:12, szym wrote: ...
7 years, 8 months ago (2013-04-18 19:03:17 UTC) #17
szym
LGTM with nits. https://codereview.chromium.org/14049018/diff/31001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/31001/net/dns/dns_response.cc#newcode199 net/dns/dns_response.cc:199: parser_ = DnsRecordParser(); // Make parser ...
7 years, 8 months ago (2013-04-18 19:12:34 UTC) #18
szym
Before submitting, please make sure to add reference to existing BUG= in the CL description.
7 years, 8 months ago (2013-04-18 19:13:23 UTC) #19
Noam Samuel
https://codereview.chromium.org/14049018/diff/31001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/31001/net/dns/dns_response.cc#newcode325 net/dns/dns_response.cc:325: On 2013/04/18 19:12:34, szym wrote: > Ditto. Done. https://codereview.chromium.org/14049018/diff/31001/net/dns/dns_response.h ...
7 years, 8 months ago (2013-04-19 22:13:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/14049018/36001
7 years, 8 months ago (2013-04-22 17:17:57 UTC) #21
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=31537
7 years, 8 months ago (2013-04-22 19:03:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/14049018/36001
7 years, 8 months ago (2013-04-22 21:08:53 UTC) #23
Noam Samuel
Hey, I stopped this commit and added in one small change that requires extra review. ...
7 years, 8 months ago (2013-04-23 00:04:27 UTC) #24
gene
lgtm On 2013/04/23 00:04:27, Noam Samuel (chromium) wrote: > Hey, I stopped this commit and ...
7 years, 8 months ago (2013-04-23 01:16:23 UTC) #25
szym
https://codereview.chromium.org/14049018/diff/59001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/59001/net/dns/dns_response.cc#newcode135 net/dns/dns_response.cc:135: const char* next = cur_ + consumed + 2 ...
7 years, 8 months ago (2013-04-23 14:06:41 UTC) #26
Noam Samuel
https://codereview.chromium.org/14049018/diff/59001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/59001/net/dns/dns_response.cc#newcode135 net/dns/dns_response.cc:135: const char* next = cur_ + consumed + 2 ...
7 years, 8 months ago (2013-04-23 17:56:31 UTC) #27
szym
lgtm https://chromiumcodereview.appspot.com/14049018/diff/64001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://chromiumcodereview.appspot.com/14049018/diff/64001/net/dns/dns_response.cc#newcode135 net/dns/dns_response.cc:135: const char* next = cur_ + consumed + ...
7 years, 8 months ago (2013-04-23 19:36:41 UTC) #28
Noam Samuel
https://codereview.chromium.org/14049018/diff/64001/net/dns/dns_response.cc File net/dns/dns_response.cc (right): https://codereview.chromium.org/14049018/diff/64001/net/dns/dns_response.cc#newcode135 net/dns/dns_response.cc:135: const char* next = cur_ + consumed + 2 ...
7 years, 8 months ago (2013-04-23 20:24:40 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/14049018/69001
7 years, 8 months ago (2013-04-23 20:26:43 UTC) #30
commit-bot: I haz the power
7 years, 8 months ago (2013-04-23 23:17:30 UTC) #31
Message was sent while issue was closed.
Change committed as 195937

Powered by Google App Engine
This is Rietveld 408576698