aboutgitcodebugslistschat
path: root/udp.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-01-16 16:16:12 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-01-22 23:36:43 +0100
commit24badd0acf887fdd9009e4c249bf0e68344ea49d (patch)
treecebbf6e58890cfffa37fed36d86a69ce53991c65 /udp.h
parent43713af50e8a343e0df1f219a29e3d2891a094d6 (diff)
downloadpasst-24badd0acf887fdd9009e4c249bf0e68344ea49d.tar
passt-24badd0acf887fdd9009e4c249bf0e68344ea49d.tar.gz
passt-24badd0acf887fdd9009e4c249bf0e68344ea49d.tar.bz2
passt-24badd0acf887fdd9009e4c249bf0e68344ea49d.tar.lz
passt-24badd0acf887fdd9009e4c249bf0e68344ea49d.tar.xz
passt-24badd0acf887fdd9009e4c249bf0e68344ea49d.tar.zst
passt-24badd0acf887fdd9009e4c249bf0e68344ea49d.zip
icmp: Use -1 to represent "missing" sockets
icmp_id_map[] contains, amongst other things, fds for "ping" sockets associated with various ICMP echo ids. However, we only lazily open() those sockets, so many will be missing. We currently represent that with a 0, which isn't great, since that's technically a valid fd. Use -1 instead. This does require initializing the fields in icmp_id_map[] but we already have an obvious place to do that. 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