aboutgitcodebugslistschat
path: root/test/passt_in_ns/tcp
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-24 19:08:18 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-24 14:48:35 +0200
commit1467a35b5af93a5f7c6678e1c6a8d9b4c191160c (patch)
treeba8dcf1b85c3becb08d9d66b64e79ff4eb7b120e /test/passt_in_ns/tcp
parent163dc5f18899808e97b92ddae0314928c903bb4b (diff)
downloadpasst-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.tar
passt-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.tar.gz
passt-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.tar.bz2
passt-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.tar.lz
passt-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.tar.xz
passt-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.tar.zst
passt-1467a35b5af93a5f7c6678e1c6a8d9b4c191160c.zip
udp: Delay initialization of UDP reversed port mapping table
Because it's connectionless, when mapping UDP ports we need, in addition to the table of deltas for destination ports needed by TCP, we need an inverted table to translate the source ports on return packets. Currently we fill out the inverted table at the same time we construct the main table in udp_remap_to_tap() and udp_remap_to_init(). However, we don't use either table until after we've initialized UDP, so we can delay the construction of the reverse table to udp_init(). This makes the configuration more symmetric between TCP and UDP which will enable further cleanups. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/passt_in_ns/tcp')
0 files changed, 0 insertions, 0 deletions