aboutgitcodebugslistschat
path: root/udp.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-01-05 15:26:22 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-01-13 01:07:03 +0100
commitf1ed8dbfa732dd0c94461373fbcaea86b9eb1734 (patch)
tree07e8c99e3ea41b53b06a9a18e1491ab1c3f7764c /udp.h
parentc9e193b5ae0d785f9d77adf2ce196393a1ab205c (diff)
downloadpasst-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.tar
passt-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.tar.gz
passt-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.tar.bz2
passt-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.tar.lz
passt-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.tar.xz
passt-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.tar.zst
passt-f1ed8dbfa732dd0c94461373fbcaea86b9eb1734.zip
udp: Pre-populate msg_names with local address
udp_splice_namebuf is now used only for spliced sending, and so it is only ever populated with the localhost address, either IPv4 or IPv6. So, replace the awkward initialization in udp_sock_handler_splice() with statically initialized versions for IPv4 and IPv6. We then just need to update the port number in udp_sock_handler_splice(). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.h')
0 files changed, 0 insertions, 0 deletions