aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-11-03 13:22:57 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-11-07 09:53:16 +0100
commit17d40d1cb50e53b25eee522a165bba5f04a93a31 (patch)
treeaf8fc3d8e1296451d4968a7bc771ea1d0b808f55 /util.c
parente90f2770ae44de238a227f884e806637a2b80403 (diff)
downloadpasst-17d40d1cb50e53b25eee522a165bba5f04a93a31.tar
passt-17d40d1cb50e53b25eee522a165bba5f04a93a31.tar.gz
passt-17d40d1cb50e53b25eee522a165bba5f04a93a31.tar.bz2
passt-17d40d1cb50e53b25eee522a165bba5f04a93a31.tar.lz
passt-17d40d1cb50e53b25eee522a165bba5f04a93a31.tar.xz
passt-17d40d1cb50e53b25eee522a165bba5f04a93a31.tar.zst
passt-17d40d1cb50e53b25eee522a165bba5f04a93a31.zip
port_fwd: Better parameterise procfs_scan_listen()
procfs_scan_listen() does some slightly clunky logic to deduce the fd it wants to use, the path it wants to open and the state it's looking for based on parameters for protocol, IP version and whether we're in the namespace. However, the caller already has to make choices based on similar parameters so it can just pass in the things that procfs_scan_listen() needs directly. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions