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

Issue 10689015: [net] Adds AddressTrackerLinux which keeps track of interface addresses using rtnetlink. (Closed)

Created:
8 years, 5 months ago by szym
Modified:
8 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

[net] Adds AddressTrackerLinux which keeps track of interface addresses using rtnetlink. BUG=100690, 113993 TEST=./net_unittests --gtest_filter=AddressTrackerLinuxTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146907

Patch Set 1 : Fix loop. #

Patch Set 2 : Make WatchFileDescriptor persistent. #

Patch Set 3 : Add virtual to dtor. #

Total comments: 4

Patch Set 4 : Responded to review (HANDLE_EINTR, type*). #

Patch Set 5 : Wrapped HANDLE_EINTR(close) into CloseSocket. #

Total comments: 10

Patch Set 6 : Responded to vandebo's review. #

Total comments: 7

Patch Set 7 : Added explicit to ctor. #

Total comments: 14

Patch Set 8 : sync #

Patch Set 9 : Added tests; unabbreviated some var names; fixed const; added NCN::GetAddressTracker. #

Patch Set 10 : Removed unnecessary forward declaration. #

Patch Set 11 : sync after remove #pragma once #

Patch Set 12 : Added comment on IFA_ADDRESS vs. IFA_LOCAL. #

Patch Set 13 : minor edit in test #

Patch Set 14 : Move DCHECK for addres_length to the right spot. #

Patch Set 15 : Added test for ignored attribute. #

Total comments: 1

Patch Set 16 : Renamed GetMap to GetAddressMap. Fixed nits. #

Total comments: 1

Patch Set 17 : Reorder functions. #

Patch Set 18 : Connect GetAddressTracker to NetworkChangeNotifierLinux::Thread::address_tracker #

Patch Set 19 : Added NET_EXPORT_PRIVATE for tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+607 lines, -240 lines) Patch
A net/base/address_tracker_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +68 lines, -0 lines 0 comments Download
A net/base/address_tracker_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +226 lines, -0 lines 0 comments Download
A net/base/address_tracker_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +259 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +15 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +16 lines, -0 lines 0 comments Download
M net/base/network_change_notifier_linux.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/network_change_notifier_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +17 lines, -89 lines 0 comments Download
D net/base/network_change_notifier_netlink_linux.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -20 lines 0 comments Download
D net/base/network_change_notifier_netlink_linux.cc View 1 chunk +0 lines, -129 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
szym
This is essential for RFC3484, but should also improve IPv6 address tracking for NetworkChangeNotifierLinux.
8 years, 5 months ago (2012-06-27 22:15:12 UTC) #1
willchan no longer on Chromium
I'm happy to defer this to another Linux guy...if there's anyone else who'd like to ...
8 years, 5 months ago (2012-06-28 01:36:44 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/10689015/diff/20001/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): http://codereview.chromium.org/10689015/diff/20001/net/base/address_tracker_linux.cc#newcode36 net/base/address_tracker_linux.cc:36: unsigned char *address = NULL; be consistent about type* ...
8 years, 5 months ago (2012-06-29 01:53:41 UTC) #3
szym
http://codereview.chromium.org/10689015/diff/20001/net/base/address_tracker_linux.h File net/base/address_tracker_linux.h (right): http://codereview.chromium.org/10689015/diff/20001/net/base/address_tracker_linux.h#newcode52 net/base/address_tracker_linux.h:52: mutable base::Lock lock_; On 2012/06/29 01:53:41, willchan wrote: > ...
8 years, 5 months ago (2012-06-29 03:06:09 UTC) #4
szym
vandebo: Would you be able to review this?
8 years, 5 months ago (2012-06-29 04:20:15 UTC) #5
vandebo (ex-Chrome)
http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc#newcode132 net/base/address_tracker_linux.cc:132: ReadMessages(); Do you need to call ReadMessages here? Won't ...
8 years, 5 months ago (2012-06-29 17:52:03 UTC) #6
szym
http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc#newcode132 net/base/address_tracker_linux.cc:132: ReadMessages(); On 2012/06/29 17:52:03, vandebo wrote: > Do you ...
8 years, 5 months ago (2012-06-29 18:34:52 UTC) #7
vandebo (ex-Chrome)
http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc#newcode165 net/base/address_tracker_linux.cc:165: switch (header->nlmsg_type) { On 2012/06/29 18:34:52, szym wrote: > ...
8 years, 5 months ago (2012-06-29 21:01:18 UTC) #8
szym
http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc#newcode165 net/base/address_tracker_linux.cc:165: switch (header->nlmsg_type) { On 2012/06/29 21:01:18, vandebo wrote: > ...
8 years, 5 months ago (2012-06-29 21:09:06 UTC) #9
vandebo (ex-Chrome)
On 2012/06/29 21:09:06, szym wrote: > http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc > File net/base/address_tracker_linux.cc (right): > > http://codereview.chromium.org/10689015/diff/15002/net/base/address_tracker_linux.cc#newcode165 > ...
8 years, 5 months ago (2012-06-29 21:20:46 UTC) #10
willchan no longer on Chromium
vandebo, szym is already an OWNER and I am very comfortable with your approval here. ...
8 years, 5 months ago (2012-06-29 21:31:50 UTC) #11
szym
On 2012/06/29 21:20:46, vandebo wrote: > So it looks like we have both NetworkChangeNotifier and ...
8 years, 5 months ago (2012-06-29 21:49:31 UTC) #12
vandebo (ex-Chrome)
On 2012/06/29 21:49:31, szym wrote: > On 2012/06/29 21:20:46, vandebo wrote: > > So it ...
8 years, 5 months ago (2012-06-29 22:00:50 UTC) #13
vandebo (ex-Chrome)
http://codereview.chromium.org/10689015/diff/16004/net/base/address_tracker_linux.cc File net/base/address_tracker_linux.cc (right): http://codereview.chromium.org/10689015/diff/16004/net/base/address_tracker_linux.cc#newcode66 net/base/address_tracker_linux.cc:66: : callback_(callback), netlink_fd_(-1) { On 2012/06/29 21:01:18, vandebo wrote: ...
8 years, 5 months ago (2012-06-29 22:24:29 UTC) #14
szym
I am away from my workstation, so I will upload the updated CL shortly, but ...
8 years, 5 months ago (2012-06-30 00:00:57 UTC) #15
vandebo (ex-Chrome)
On 2012/06/30 00:00:57, szym wrote: > I am away from my workstation, so I will ...
8 years, 5 months ago (2012-06-30 19:44:03 UTC) #16
szym
On 2012/06/30 19:44:03, vandebo wrote: > I think I see how things will fit together ...
8 years, 5 months ago (2012-07-11 22:42:34 UTC) #17
vandebo (ex-Chrome)
On 2012/07/11 22:42:34, szym wrote: > On 2012/06/30 19:44:03, vandebo wrote: > > I think ...
8 years, 5 months ago (2012-07-12 18:34:26 UTC) #18
szym
> What I was suggesting is to define a type AddressTracker::IPEntry that differs > across ...
8 years, 5 months ago (2012-07-12 18:55:47 UTC) #19
vandebo (ex-Chrome)
> I have no plans for AddressTracker on other platforms. On BSD (including > Darwin/OSX), ...
8 years, 5 months ago (2012-07-12 19:05:09 UTC) #20
szym
On 2012/07/12 19:05:09, vandebo wrote: > It sucks when the same things are implemented in ...
8 years, 5 months ago (2012-07-13 22:37:21 UTC) #21
szym
I forgot to mention that we have no need for AddressMap on Windows, where RFC3484 ...
8 years, 5 months ago (2012-07-13 22:38:55 UTC) #22
vandebo (ex-Chrome)
On 2012/07/13 22:37:21, szym wrote: > The key issue here is that unlike on other ...
8 years, 5 months ago (2012-07-16 18:06:27 UTC) #23
szym
Agreed. That said, are you opposed to having two instances of AddressTrackerLinux so that it ...
8 years, 5 months ago (2012-07-16 18:46:56 UTC) #24
vandebo (ex-Chrome)
On 2012/07/16 18:46:56, szym wrote: > Agreed. That said, are you opposed to having two ...
8 years, 5 months ago (2012-07-16 18:50:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/10689015/39002
8 years, 5 months ago (2012-07-16 20:41:48 UTC) #26
commit-bot: I haz the power
Try job failure for 10689015-39002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-16 21:06:29 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/10689015/42003
8 years, 5 months ago (2012-07-16 21:08:02 UTC) #28
commit-bot: I haz the power
8 years, 5 months ago (2012-07-16 22:27:25 UTC) #29
Change committed as 146907

Powered by Google App Engine
This is Rietveld 408576698