diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-11-03 13:22:57 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-11-07 09:53:16 +0100 |
commit | 17d40d1cb50e53b25eee522a165bba5f04a93a31 (patch) | |
tree | af8fc3d8e1296451d4968a7bc771ea1d0b808f55 /test | |
parent | e90f2770ae44de238a227f884e806637a2b80403 (diff) | |
download | passt-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 'test')
0 files changed, 0 insertions, 0 deletions