OSDN Git Service
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:21 +0000 (03:30 +0000)]
am
f5f1c43d: Support setting and clearing the default network.
* commit '
f5f1c43d6958ef2d4f44a5c942161c4ab59b1864':
Support setting and clearing the default network.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:20 +0000 (03:30 +0000)]
am
334a05a2: Clean up code in preparation for AOSP.
* commit '
334a05a24a5e4c27d9318967987fb181530deaff':
Clean up code in preparation for AOSP.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:19 +0000 (03:30 +0000)]
am
105bda9c: Move all setup code to a new multinetwork_base.py
* commit '
105bda9ccf001b11ca15ea48863df44ace2f5ba4':
Move all setup code to a new multinetwork_base.py
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:18 +0000 (03:30 +0000)]
am
78a9a2c9: Remove the EXPERIMENTAL from UID routing.
* commit '
78a9a2c9e6f6c6d830ab972f25624163a39230fe':
Remove the EXPERIMENTAL from UID routing.
Erik Kline [Wed, 4 Feb 2015 03:30:16 +0000 (03:30 +0000)]
am
90fdc219: Verify no NSes from optimistic addresses
* commit '
90fdc21936e7e5f555e73fe9c3555d1f156617b0':
Verify no NSes from optimistic addresses
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:14 +0000 (03:30 +0000)]
am
a0142797: Add a test for cross-protocol ping crash.
* commit '
a014279741d26eb857e6f5a01c5d2fc040cf7b8f':
Add a test for cross-protocol ping crash.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:12 +0000 (03:30 +0000)]
am
cbcbda6d: Skip ping tests instead of failing if the VM has no connectivity.
* commit '
cbcbda6d3d8b0c208590cd769bdcf044396ee68a':
Skip ping tests instead of failing if the VM has no connectivity.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:11 +0000 (03:30 +0000)]
am
1892b4be: Don\'t infinite loop if read() on tun returns 0
* commit '
1892b4bef43fc66e64923debd2619e88faaf2f9b':
Don't infinite loop if read() on tun returns 0
Erik Kline [Wed, 4 Feb 2015 03:30:09 +0000 (03:30 +0000)]
am
b2ea5d6f: Further testing for optimistic address scenarios.
* commit '
b2ea5d6fef9445f25d2f1023643fb620d8c1a216':
Further testing for optimistic address scenarios.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:07 +0000 (03:30 +0000)]
am
b87c8131: Fix lint warnings.
* commit '
b87c813197ab205074e3bdbad4a5e7e2eb39e9d2':
Fix lint warnings.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:05 +0000 (03:30 +0000)]
am
de7c4f07: Manually add directly-connected routes as well as default routes
* commit '
de7c4f07a185470587e7940cb0324823b68ccf28':
Manually add directly-connected routes as well as default routes
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:04 +0000 (03:30 +0000)]
am
f36fcbac: Don\'t specify lladdr when deleting a neighbour.
* commit '
f36fcbacdd0b86bdc2ba1f7059df57c3423019ba':
Don't specify lladdr when deleting a neighbour.
Lorenzo Colitti [Wed, 4 Feb 2015 03:30:02 +0000 (03:30 +0000)]
am
852c1e29: Add debugging capabilities to iproute.
* commit '
852c1e29f7b5965cd398e0bac1a91f9a6fcf6cfd':
Add debugging capabilities to iproute.
Erik Kline [Wed, 4 Feb 2015 03:30:01 +0000 (03:30 +0000)]
am
fd95dbbd: Add test for source address selection behaviour.
* commit '
fd95dbbdec851a6ebec9c5a3dda7b682963a5585':
Add test for source address selection behaviour.
Erik Kline [Wed, 4 Feb 2015 03:30:00 +0000 (03:30 +0000)]
am
ea56ba43: net_test environment changes
* commit '
ea56ba43a8234d545e8e22a09577850972764149':
net_test environment changes
Erik Kline [Wed, 4 Feb 2015 03:29:59 +0000 (03:29 +0000)]
am
aca27221: Add basic RTM_GETADDR support.
* commit '
aca272212f10365ab66891b43c535eed7ef63f72':
Add basic RTM_GETADDR support.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:59 +0000 (03:29 +0000)]
am
d7c39756: Make net_test work on 3.1 kernels.
* commit '
d7c3975614112794fccf8a576d442c19e801daa8':
Make net_test work on 3.1 kernels.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:58 +0000 (03:29 +0000)]
am
e84f2c1e: Don\'t skip the LeftoverRoutes test.
* commit '
e84f2c1e83621d3afc7b00b45cba2edeb96d1412':
Don't skip the LeftoverRoutes test.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:57 +0000 (03:29 +0000)]
am
61074387: When changing UID, become a member of AID_INET.
* commit '
610743878821c018ac1918b280ecfa097b77d6f0':
When changing UID, become a member of AID_INET.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:56 +0000 (03:29 +0000)]
am
1904b962: Use the right version in the rule deletion test.
* commit '
1904b96289d82315dd0ec75eb0fd49cd04c605c5':
Use the right version in the rule deletion test.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:55 +0000 (03:29 +0000)]
am
ab798de7: Return route attribute types as strings.
* commit '
ab798de742c067f74a58841ca8b26be2d683308e':
Return route attribute types as strings.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:55 +0000 (03:29 +0000)]
am
de6b710f: Also check the MTU via netlink.
* commit '
de6b710f4f7f1e1c21e44029e30843d5ba23a033':
Also check the MTU via netlink.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:54 +0000 (03:29 +0000)]
am
a207bc0c: Support decoding route attributes, cacheinfo, uid.
* commit '
a207bc0c270c3f6d34ad69bb10c7e935295712e3':
Support decoding route attributes, cacheinfo, uid.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:53 +0000 (03:29 +0000)]
am
7ba0cb5b: Fix lint error.
* commit '
7ba0cb5bf39f904f61c55e0e130a3d7f55ba1c8f':
Fix lint error.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:52 +0000 (03:29 +0000)]
am
f4f1424e: Check that route deletion does not ignore the table.
* commit '
f4f1424e5a1bcd4642b7a1489a36c1cb3f03e046':
Check that route deletion does not ignore the table.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:51 +0000 (03:29 +0000)]
am
9a2c7bb2: Don\'t check IPv6 echo reply tclass on pre-3.14 kernels
* commit '
9a2c7bb233a4c0b0d66c5d8fe0a6e264c8759ace':
Don't check IPv6 echo reply tclass on pre-3.14 kernels
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:50 +0000 (03:29 +0000)]
am
a608717f: Better tests for Path MTU discovery.
* commit '
a608717fb126073d5b117f5f3b1d2f8fa5767e8a':
Better tests for Path MTU discovery.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:49 +0000 (03:29 +0000)]
am
d73faf93: Move sending via pktinfo to a SendOnNetid function.
* commit '
d73faf93478dd7e735b4d878fd96954e85c024d5':
Move sending via pktinfo to a SendOnNetid function.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:48 +0000 (03:29 +0000)]
am
1eccad2f: Make olddefconfig optional; it only appeared recently.
* commit '
1eccad2f9baf2dc69e46d2ef5a6f2b6f928e185b':
Make olddefconfig optional; it only appeared recently.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:47 +0000 (03:29 +0000)]
am
576ddcbe: If there\'s a new root fs, delete the old one
* commit '
576ddcbec8256749141a9ef1fccad42667917f29':
If there's a new root fs, delete the old one
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:46 +0000 (03:29 +0000)]
am
b23e017b: Make iproute.py work on 3.4 kernels too.
* commit '
b23e017b5cd2d1a163259a7cfdc9270d4d982e9b':
Make iproute.py work on 3.4 kernels too.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:46 +0000 (03:29 +0000)]
am
32cb491f: Add a function to build UDP packets with options.
* commit '
32cb491fea0bf4b4fdf092b155480c4429d967cd':
Add a function to build UDP packets with options.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:45 +0000 (03:29 +0000)]
am
0eaba68a: Add tests for {sticky,non-sticky} pktinfo routing
* commit '
0eaba68afe333b2d62cba5060115a4b8264988a0':
Add tests for {sticky,non-sticky} pktinfo routing
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:44 +0000 (03:29 +0000)]
am
720635f6: Add a wrapper for sendmsg.
* commit '
720635f61d1db84884e0de41102a7c8e3af521d2':
Add a wrapper for sendmsg.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:43 +0000 (03:29 +0000)]
am
5a6a2e94: Support returning a C pointer to struct data.
* commit '
5a6a2e948ca06b60a35c11b5af52045a95cb2de3':
Support returning a C pointer to struct data.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:43 +0000 (03:29 +0000)]
am
ae73c498: Refactor outgoing routing into its own test.
* commit '
ae73c4984e3222e5811ab783e3e18b14b017db1d':
Refactor outgoing routing into its own test.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:41 +0000 (03:29 +0000)]
am
8d010427: Only run iptables when necessary.
* commit '
8d010427e1a6108eb496d82616f411ebc9a3d60e':
Only run iptables when necessary.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:41 +0000 (03:29 +0000)]
am
c8cff0d2: Better test incoming connections.
* commit '
c8cff0d2e6066c4479f2ca74103002a59fd23d5c':
Better test incoming connections.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:40 +0000 (03:29 +0000)]
am
051c2907: Make the test more robust with an unreachable rule
* commit '
051c29078188c01d5c451b60a003ba9ec00a2822':
Make the test more robust with an unreachable rule
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:39 +0000 (03:29 +0000)]
am
0df6a62a: Make it easier to test IPv4 ping on IPv6 sockets.
* commit '
0df6a62a65f2ed142732a0da57965fe7bfbfde9c':
Make it easier to test IPv4 ping on IPv6 sockets.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:39 +0000 (03:29 +0000)]
am
d74629e0: Separate the reflect and accept tests.
* commit '
d74629e02cfade2561e6698c2f7f7c0310575257':
Separate the reflect and accept tests.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:38 +0000 (03:29 +0000)]
am
71f0b621: Test raw sockets as well, using GRE packets.
* commit '
71f0b6211d9550ae267af2603a61789aa680cd28':
Test raw sockets as well, using GRE packets.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:37 +0000 (03:29 +0000)]
am
82be6b94: Use a DNS query instead of "hello" as UDP payload
* commit '
82be6b9451bfa9e131e5a7f9e5eaf40236a3a2fa':
Use a DNS query instead of "hello" as UDP payload
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:37 +0000 (03:29 +0000)]
am
05a6d74c: Apparently setting don\'t fragment is unnecessary.
* commit '
05a6d74cece5bea71c1c1e13e715ac091033ab04':
Apparently setting don't fragment is unnecessary.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:36 +0000 (03:29 +0000)]
am
90d3fc65: Simplify putting sockets onto networks.
* commit '
90d3fc65dc3160a269a4d31312db90b0c33b5705':
Simplify putting sockets onto networks.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:35 +0000 (03:29 +0000)]
am
186aaaf3: Test IPv4 PMTU as well.
* commit '
186aaaf3781e3fddc575d2351ac36ff78f2382d1':
Test IPv4 PMTU as well.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:35 +0000 (03:29 +0000)]
am
2595a2ae: Improve iproute attribute decoding documentation.
* commit '
2595a2ae2e62ca29569aeb18f7f7857659cd78b5':
Improve iproute attribute decoding documentation.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:34 +0000 (03:29 +0000)]
am
cf0ff157: Add outgoing packet tests using IP{,V6}_UNICAST_IF
* commit '
cf0ff1578d3a29663c10251f0975b1b4844146b7':
Add outgoing packet tests using IP{,V6}_UNICAST_IF
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:33 +0000 (03:29 +0000)]
am
2a139c9b: Add more checks to the ping code.
* commit '
2a139c9bbc93ec3e81312f795e8f0528783c6beb':
Add more checks to the ping code.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:33 +0000 (03:29 +0000)]
am
df9b9bf5: Test looking up routes with UIDs from userspace.
* commit '
df9b9bf57c755bc6ad234baa6d5a4454be1307bd':
Test looking up routes with UIDs from userspace.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:32 +0000 (03:29 +0000)]
am
f3b5413c: Add a test for UID routing configuration.
* commit '
f3b5413c600aadb8b56dbbfdb761ffb582166eb0':
Add a test for UID routing configuration.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:31 +0000 (03:29 +0000)]
am
7a799dc4: Better support for rule attributes.
* commit '
7a799dc4db3d08e3308af6fc1e7a1fa1e404442c':
Better support for rule attributes.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:25 +0000 (03:29 +0000)]
am
355dbf5f: Clear CROSS_COMPILE when running tests.
* commit '
355dbf5fbbeff6c6b2a42fb5a5df673951cb2b17':
Clear CROSS_COMPILE when running tests.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:25 +0000 (03:29 +0000)]
am
ac57df5a: Fix flowlabel test, now it\'s working in the kernel
* commit '
ac57df5a25e37f9fe2c6ec62d4d6a25f8b39c7ce':
Fix flowlabel test, now it's working in the kernel
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:24 +0000 (03:29 +0000)]
am
9e66bfb4: Replace shelling out to ip with netlink code.
* commit '
9e66bfb4888ca59a38aeb8a0952b03a022187b88':
Replace shelling out to ip with netlink code.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:24 +0000 (03:29 +0000)]
am
ec753c46: Check that remarking a socket works as expected.
* commit '
ec753c46447602f2befffa34c04273c43820d1c7':
Check that remarking a socket works as expected.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:23 +0000 (03:29 +0000)]
am
b4088c2a: Change from UID routing to UID range routing.
* commit '
b4088c2ad97e03c4e56f031c2df181df7d36c3b0':
Change from UID routing to UID range routing.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:22 +0000 (03:29 +0000)]
am
85447142: Test that local IPv6 connectivity goes direct.
* commit '
85447142cdf078670357a5239f98a3ad6261709c':
Test that local IPv6 connectivity goes direct.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:22 +0000 (03:29 +0000)]
am
97d1b15c: Test outgoing oif routing.
* commit '
97d1b15c8e0962de1579bc1705bf45424aea1165':
Test outgoing oif routing.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:21 +0000 (03:29 +0000)]
am
71324fb4: Really disable DAD, and get rid of the sleeps.
* commit '
71324fb493cb2225ec4f957033240af1a827f0a7':
Really disable DAD, and get rid of the sleeps.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:20 +0000 (03:29 +0000)]
am
98eb6fdc: Deflakify the PMTU test.
* commit '
98eb6fdc5f8dc40f3923680cb6a5f38d96b15816':
Deflakify the PMTU test.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:20 +0000 (03:29 +0000)]
am
0a3a775f: Change the error messages.
* commit '
0a3a775f4e7fec0c3326a88f9cf709e2ba665e7b':
Change the error messages.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:19 +0000 (03:29 +0000)]
am
7a743f13: Test the oif rules using SO_BINDTODEVICE.
* commit '
7a743f133a5f6e2a658d82dbcddb88820e03b555':
Test the oif rules using SO_BINDTODEVICE.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:18 +0000 (03:29 +0000)]
am
d1d32975: Add more tests.
* commit '
d1d32975b8a3da041cea5ee322fe3c99cd313d4a':
Add more tests.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:17 +0000 (03:29 +0000)]
am
455a2a69: Fixes to iproute.
* commit '
455a2a6964ec6408d8f7cb2c629a65a34bc43f08':
Fixes to iproute.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:16 +0000 (03:29 +0000)]
am
d6d303df: Support adding outgoing interface rules.
* commit '
d6d303df685e53f93d2a9e15496d2fc083928b74':
Support adding outgoing interface rules.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:15 +0000 (03:29 +0000)]
am
460fefc3: Refactor setup and common code into a superclass.
* commit '
460fefc3d5298acaec30377aef26b9f06472d53d':
Refactor setup and common code into a superclass.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:14 +0000 (03:29 +0000)]
am
cabf6eb8: Updates to mark_test.
* commit '
cabf6eb8a9816682c90d11cd84cb59d0f2d7f4c9':
Updates to mark_test.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:14 +0000 (03:29 +0000)]
am
15654338: Add support for reading routing rules.
* commit '
15654338bcd6d12f8d360007d38d2e71056da29f':
Add support for reading routing rules.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:13 +0000 (03:29 +0000)]
am
2466e38e: Add a module for dealing with C-style structs.
* commit '
2466e38ed01367dd81b1f9b5251040c202e94d0e':
Add a module for dealing with C-style structs.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:12 +0000 (03:29 +0000)]
am
d2dab451: Support setting the priority of rules.
* commit '
d2dab4516b902bdaef56a00c14e0121fd5bc18a9':
Support setting the priority of rules.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:12 +0000 (03:29 +0000)]
am
9c53e8a6: Move ip rule functionality to Python.
* commit '
9c53e8a60125235f0c2263a06ba9a9d2b5419f2c':
Move ip rule functionality to Python.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:11 +0000 (03:29 +0000)]
am
124b5aae: Fix lint warnings.
* commit '
124b5aae8ca65731b363d898e2da7a543e4b0e3e':
Fix lint warnings.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:10 +0000 (03:29 +0000)]
am
a25ebd97: Improve MarkTest.
* commit '
a25ebd97dd121c7f89e59fa440b86ffc9822d012':
Improve MarkTest.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:09 +0000 (03:29 +0000)]
am
717357af: Test mark-based routing for outgoing packets.
* commit '
717357af1ea56f3474a17fb909efc0f86db31e15':
Test mark-based routing for outgoing packets.
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:08 +0000 (03:29 +0000)]
am
ebb4d67d: Don\'t export ARCH and SUBARCH, set them explicitly
* commit '
ebb4d67dbf10140dd48675bc8726013ce3e514f4':
Don't export ARCH and SUBARCH, set them explicitly
Lorenzo Colitti [Wed, 4 Feb 2015 03:29:07 +0000 (03:29 +0000)]
am
b6b1fc33: Add a README file.
* commit '
b6b1fc335e4a82f7b2d22ce2f7243649f2fbe13d':
Add a README file.
Lorenzo Colitti [Wed, 4 Feb 2015 03:23:25 +0000 (03:23 +0000)]
am
6ef3e4fd: Kernel networking test scripts using UML.
* commit '
6ef3e4fdfd823b08aca5ea2c2368e956b5e0eaea':
Kernel networking test scripts using UML.
Lorenzo Colitti [Fri, 19 Dec 2014 03:23:19 +0000 (12:23 +0900)]
Support setting and clearing the default network.
Change-Id: I97531e429362b896bb72b80ba31bbc27bf345b75
Lorenzo Colitti [Wed, 17 Dec 2014 06:14:56 +0000 (15:14 +0900)]
Clean up code in preparation for AOSP.
1. Include copyright headers in all files.
2. Clean up all lint messages except "bad header", which doesn't
like our copyright statement, but which I do not seem to be
able to disable.
Change-Id: I33b44eb7f942f0ce03c001e674377f193fb66def
Lorenzo Colitti [Wed, 17 Dec 2014 04:43:53 +0000 (13:43 +0900)]
Move all setup code to a new multinetwork_base.py
Change-Id: I4874829bb10bdd1a84ec6485a8f36e5441fc510f
Lorenzo Colitti [Wed, 17 Dec 2014 04:46:31 +0000 (13:46 +0900)]
Remove the EXPERIMENTAL from UID routing.
Change-Id: I12e6f072f9c7c096c5212becc77e83b4407ab0d0
Erik Kline [Wed, 17 Dec 2014 05:10:51 +0000 (14:10 +0900)]
Verify no NSes from optimistic addresses
- also, fixup tests to skip at more appropriate times.
Change-Id: Ib7df5a176a30a9e31e403883d52cd0d41b4475ae
Lorenzo Colitti [Wed, 17 Dec 2014 04:26:58 +0000 (13:26 +0900)]
Add a test for cross-protocol ping crash.
Change-Id: Idfea9137d77675c15c8f11f4e9603ca79c49f997
Lorenzo Colitti [Wed, 17 Dec 2014 01:33:20 +0000 (10:33 +0900)]
Skip ping tests instead of failing if the VM has no connectivity.
Change-Id: I8cf39e2409fd9521e89e73c5080b79159718965e
Lorenzo Colitti [Wed, 17 Dec 2014 04:23:43 +0000 (13:23 +0900)]
Don't infinite loop if read() on tun returns 0
Change-Id: I146ca638a250ab1d20655b995f6fa9bf637187a6
Erik Kline [Wed, 8 Oct 2014 02:17:00 +0000 (11:17 +0900)]
Further testing for optimistic address scenarios.
- Add DAD failure test.
- Separate testing address for "usability" from being "selected"
(or "preferred") by source address selection.
Change-Id: I8c11fb0dc539bc04e05274f513e07fe5531964ab
Lorenzo Colitti [Mon, 15 Dec 2014 08:23:42 +0000 (17:23 +0900)]
Fix lint warnings.
Change-Id: Icd3053963fd2e69cddb35ac7cb24bc428d536d43
Lorenzo Colitti [Mon, 15 Dec 2014 05:57:36 +0000 (14:57 +0900)]
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
Lorenzo Colitti [Mon, 15 Dec 2014 06:04:04 +0000 (15:04 +0900)]
Don't specify lladdr when deleting a neighbour.
Change-Id: I8001527095da47dafc66569bd0d4f4f742b48a33
Lorenzo Colitti [Mon, 15 Dec 2014 05:55:20 +0000 (14:55 +0900)]
Add debugging capabilities to iproute.
Change-Id: If098aafc7feee6db49de29594565f166b2100cfd
Erik Kline [Wed, 8 Oct 2014 02:17:00 +0000 (11:17 +0900)]
Add test for source address selection behaviour.
Depends on use_optimistic kernel work:
https://android-review.googlesource.com/#/c/109934/
- Add busy wait for DAD to complete to verify that
tentative and optimistic addresses both /eventually/
become preferable addresses for source selection.
Change-Id: I7a584129f69e6159ff9a0a7eaf54de3200321546
Erik Kline [Tue, 14 Oct 2014 06:52:37 +0000 (15:52 +0900)]
net_test environment changes
- update run_net_test.sh to config-enable privacy addresses
and optimistic DAD (both apparently off by default)
- update mark_test's SendRA to support passing in the ND
retranstimer parameter
Change-Id: I348609bcef16e0cb7b1f9cbfd33ef2ab4dcda917
Erik Kline [Mon, 6 Oct 2014 11:25:36 +0000 (20:25 +0900)]
Add basic RTM_GETADDR support.
[iproute.py]
- Basic RTM_GETADDR support (currently IPv6-only).
- Add the rest of Linux's IFA_F_* flags values.
[mark_test.py]
- Fix comment typo.
Bug:
17769720
Change-Id: I4e883a6e01c825ee0de75314f12c0892e96d5a15
Lorenzo Colitti [Wed, 16 Jul 2014 15:50:37 +0000 (00:50 +0900)]
Make net_test work on 3.1 kernels.
Change-Id: Ic8d2ae94a2f359ea2d3166d057f769c0692e944b
Lorenzo Colitti [Fri, 20 Jun 2014 15:55:05 +0000 (00:55 +0900)]
Don't skip the LeftoverRoutes test.
Instead, make it just document the issue.
Change-Id: I03284bb238acee3217a3b2117c262423c0383b67
Lorenzo Colitti [Fri, 20 Jun 2014 15:41:26 +0000 (00:41 +0900)]
When changing UID, become a member of AID_INET.
Otherwise we can't open any sockets, which is not very useful.
Change-Id: I4a7def277f1d14232cfc4486011935e608571fd6
Lorenzo Colitti [Mon, 19 May 2014 21:31:50 +0000 (14:31 -0700)]
Use the right version in the rule deletion test.
Change-Id: I54e53cf7751f1fce464c72d5a0468bba553f2cfa
Lorenzo Colitti [Thu, 15 May 2014 22:34:34 +0000 (15:34 -0700)]
Return route attribute types as strings.
This is not really a good solution, because attributes are
passed in as integers and returned as strings, but at least the
returned values don't need to be decoded again. Without this
change, attribute types are integers whose meaning cannot be
determined without decoding the message again.
The proper solution would be to define these as some sort of
enum type.
Change-Id: Ifd031329719db40f2230ae3d020c65427f3207f5
Lorenzo Colitti [Thu, 15 May 2014 22:42:08 +0000 (15:42 -0700)]
Also check the MTU via netlink.
Change-Id: Ic12ab3046d1eeb5053c6d2e2693be818f6252c83