Commit cb7e8e7f authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Use a better way to invalidate socket destination cache entries.

Some of the TCP tests rely on invalidating socket destination
cache entries to ensure that packets are routed correctly because
the routing code is correct, not because the destination cache
entry is correct. However, we don't currently have a way to
invalidate the destination cache entry of a socket that has no
corresponding userspace socket, so we can't check that
established but not yet accepted sockets are routed correctly.

Instead of invalidating socket destination caches by relying on
the side effects of changing IP options, manipulate routing to
the socket destination address. This works regardless of whether
we have a socket fd or not.

Also augment testIPv[v6]Remarking to test that InvalidateDstCache
actually does something.

Change-Id: I043b043699571b4553243bd10034d65e50003b1b
parent 81df1783
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment