OSDN Git Service

Manually add directly-connected routes as well as default routes
authorLorenzo Colitti <lorenzo@google.com>
Mon, 15 Dec 2014 05:57:36 +0000 (14:57 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 2 Feb 2015 08:47:30 +0000 (17:47 +0900)
commitde7c4f07a185470587e7940cb0324823b68ccf28
tree4d8fe6ba1e9cf7acd480285bb6cca931ed47429c
parentf36fcbacdd0b86bdc2ba1f7059df57c3423019ba
Manually add directly-connected routes as well as default routes

Currently, the manual routing configuration that we use when
running the tests on a kernel that does not have the
accept_ra_rt_table sysctl does not add directly-connected routes
to the per-interface routing tables. This does not allow us to
test on-link connectivity unless the sysctl is present.

Remove this restriction and enable testOnlinkCommunication.

Also make testLeftoverRoutes conditional on HAVE_AUTOCONF_TABLE,
because without per-interface routing tables, sending an RA does
not result in the creation of a new routing table.

Change-Id: I16177cf374040b87a78e7455b05b11b956f4e7ee
tests/net_test/iproute.py
tests/net_test/mark_test.py