shill: Connection: Add facility to add host routes
This requires a facility for tracking outstanding RTNL route requests,
and adding routes when they the response arrives. A few small fixes
to RTNL handling needed to be added.
BUG=chromium-os:27483
TEST=New Unit Tests, manual: Assocated my new Neptune proto to test
network.
Change-Id: I701fa244041ad9e0d0a502a263d83792ab3c9114
Reviewed-on: https://gerrit.chromium.org/gerrit/17889
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/rtnl_handler.h b/rtnl_handler.h
index 6b88f0b..d9d815b 100644
--- a/rtnl_handler.h
+++ b/rtnl_handler.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -118,7 +118,7 @@
// Dispatches an rtnl message to all listeners
void DispatchEvent(int type, const RTNLMessage &msg);
// Send the next table-dump request to the kernel
- void NextRequest(uint32_t seq);
+ void NextRequest(uint32 seq);
// Parse an incoming rtnl message from the kernel
void ParseRTNL(InputData *data);
@@ -131,9 +131,9 @@
bool in_request_;
int rtnl_socket_;
- uint32_t request_flags_;
- uint32_t request_sequence_;
- uint32_t last_dump_sequence_;
+ uint32 request_flags_;
+ uint32 request_sequence_;
+ uint32 last_dump_sequence_;
std::vector<RTNLListener *> listeners_;
scoped_ptr<Callback1<InputData *>::Type> rtnl_callback_;