zephyr/tests
Andy Ross a5b694fbbc net: tcp: Select correct source address for SYNACK packets
The source address for a TCP SYNACK must (obviously) be the same as
the destination address of the SYN that produced it.  But the existing
IP packet creation routines would simply fill in a default address
from the net_context struct, which is correct for *established*
connections, but for the listening socket is generally INADDR_ANY
(i.e. all zeroes) and will result in an arbitrary choice for source
address (e.g. a link-local address on the same interface) which can
easily be wrong.

So we need to pass the correct address all the way down from the SYN
packet handler code through the net_ipv*_create() packet creation
functions.  This requires lots of API plumbing, but relatively little
logic change.

Change-Id: Ic368f8cef6689f8a27cbafd5933a4964d5cc457e
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2017-01-06 08:21:15 -05:00
..
bluetooth Bluetooth: Controller: Kconfig connection RSSI measurement 2017-01-05 08:49:16 +02:00
booting/stub tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
compliance tests/compiance/checkpatch: force the format to 'email' 2016-11-10 19:30:32 +00:00
crypto tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
drivers tests/gpio: fix typo 2017-01-05 23:54:18 +00:00
fs/fat_fs tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
include tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
kernel tests/kernel/stackprot: 'fatal fault' is not a failure 2017-01-03 19:30:54 +00:00
legacy sanity: prevent stack corruption at test_static_idt 2017-01-05 02:03:27 +00:00
net net: tcp: Select correct source address for SYNACK packets 2017-01-06 08:21:15 -05:00
power/power_states tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
subsys/debug/gdb_server tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
unit net: buf: Remove the need for net_buf_pool_init() 2016-12-15 09:58:02 +02:00
ztest tests: introduce Makefile.test 2017-01-03 17:48:44 +00:00
defaults.tc testcases: introduce defaults to build/deploy/evaluate 2016-07-23 18:31:18 +00:00
Kconfig tests: Add a generic testing framework 2016-09-30 21:17:39 +00:00
Makefile tests: Add a generic testing framework 2016-09-30 21:17:39 +00:00
Makefile.test tests: Add a generic testing framework 2016-09-30 21:17:39 +00:00