aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-10-18 12:35:51 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-10-18 20:27:47 +0200
commit75b9c0feb0b54b040a8c49f160cfc2defe28c045 (patch)
treec68865fbe5db3cad75a933f0b550c715119e8530 /tcp.c
parentf9d677bff6af48b50f3655224e8b0eb8820d3e89 (diff)
downloadpasst-75b9c0feb0b54b040a8c49f160cfc2defe28c045.tar
passt-75b9c0feb0b54b040a8c49f160cfc2defe28c045.tar.gz
passt-75b9c0feb0b54b040a8c49f160cfc2defe28c045.tar.bz2
passt-75b9c0feb0b54b040a8c49f160cfc2defe28c045.tar.lz
passt-75b9c0feb0b54b040a8c49f160cfc2defe28c045.tar.xz
passt-75b9c0feb0b54b040a8c49f160cfc2defe28c045.tar.zst
passt-75b9c0feb0b54b040a8c49f160cfc2defe28c045.zip
test: Explicitly wait for DAD to complete on SLAAC addresses
Getting a SLAAC address takes a little while because the kernel must complete Duplicate Address Detection (DAD) before marking the address as ready. In several places we have an explicit 'sleep 2' to wait for that to complete. Fixed length delays are never a great idea, although this one is pretty solid. Still, it would be better to explicitly wait for DAD to complete in case of long delays (which might happen on slow emulated hosts, or with heavy load), and to speed the tests up if DAD completes quicker. Replace the fixed sleeps with a loop waiting for DAD to complete. We do this by looping waiting for all tentative addresses to disappear. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
0 files changed, 0 insertions, 0 deletions