OSDN Git Service

Better test incoming connections.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 1 May 2014 08:08:29 +0000 (17:08 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 2 Feb 2015 08:47:27 +0000 (17:47 +0900)
commitc8cff0d2e6066c4479f2ca74103002a59fd23d5c
tree9052599a1a1299752cc376393d3b5343e2eb5e0a
parent051c29078188c01d5c451b60a003ba9ec00a2822
Better test incoming connections.

0. Factor the TCP accept tests into their own test class.
1. Test all routing modes. Previously, the code was only testing
   incoming connections with SO_BINDTODEVICE and mark accepting.
   Test with UID and explicit marking as well.
2. Also check that when data is sent on the connection, it goes
   out on the right interface.
3. In between calls, attempt to clear the socket destination
   cache by changing IPv4 ToS and adding / deleting IPv6 options.

Change-Id: I15a28aa1f657f9c876e622e8a1a07185976828e3
tests/net_test/mark_test.py