aboutgitcodebugslistschat
path: root/udp.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-01-16 16:16:18 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-01-22 23:36:56 +0100
commit322660b0b931e5fc1873659182559284e7a0946a (patch)
treed0b62b9a886611df7d9015e43bc41080eaefdba6 /udp.h
parentb6a4e20aa69a855ab2ce04a2eb302416730a21af (diff)
downloadpasst-322660b0b931e5fc1873659182559284e7a0946a.tar
passt-322660b0b931e5fc1873659182559284e7a0946a.tar.gz
passt-322660b0b931e5fc1873659182559284e7a0946a.tar.bz2
passt-322660b0b931e5fc1873659182559284e7a0946a.tar.lz
passt-322660b0b931e5fc1873659182559284e7a0946a.tar.xz
passt-322660b0b931e5fc1873659182559284e7a0946a.tar.zst
passt-322660b0b931e5fc1873659182559284e7a0946a.zip
icmp: Dedicated functions for starting and closing ping sequences
ICMP sockets are cleaned up on a timeout implemented in icmp_timer_one(), and the logic to do that cleanup is open coded in that function. Similarly new sockets are opened when we discover we don't have an existing one in icmp_tap_handler(), and again the logic is open-coded. That's not the worst thing, but it's a bit cleaner to have dedicated functions for the creation and destruction of ping sockets. This will also make things a bit easier for future changes we have in mind. 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