summaryrefslogtreecommitdiffstats
path: root/tools/pci
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-11-03 19:53:42 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-11-08 11:26:57 +0100
commite1f8bc06e49794ebecc0f276429a7ab9f105ac06 (patch)
tree0c032d16c7ee19005f7ec258034d1b3ebc0bbe25 /tools/pci
parent00d8b83725e9b9bf5eac1f23712aa94ce30dad46 (diff)
downloadlinux-e1f8bc06e49794ebecc0f276429a7ab9f105ac06.tar.bz2
selftests: nft_nat: Improve port shadow test stability
Setup phase in test_port_shadow() relied upon a race-condition: Listening nc on port 1405 was started in background before attempting to create the fake conntrack entry using the same source port. If listening nc won, fake conntrack entry could not be created causing wrong behaviour. Reorder nc calls to fix this and introduce a short delay before testing the setup to wait for listening nc process startup. Fixes: 465f15a6d1a8f ("selftests: nft_nat: add udp hole punch test case") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/pci')
0 files changed, 0 insertions, 0 deletions