diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-12-02 15:02:07 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-12-02 23:07:19 +0100 |
| commit | 860d3b1a71b56127840223b2949099e477f33444 (patch) | |
| tree | 5ba09713555e888d57a2cc9c0273de964d3a0082 /doc/platform-requirements | |
| parent | 3b8b8342999b9dfd5f68adc7a5855c4e9a134892 (diff) | |
| download | passt-860d3b1a71b56127840223b2949099e477f33444.tar passt-860d3b1a71b56127840223b2949099e477f33444.tar.gz passt-860d3b1a71b56127840223b2949099e477f33444.tar.bz2 passt-860d3b1a71b56127840223b2949099e477f33444.tar.lz passt-860d3b1a71b56127840223b2949099e477f33444.tar.xz passt-860d3b1a71b56127840223b2949099e477f33444.tar.zst passt-860d3b1a71b56127840223b2949099e477f33444.zip | |
tcp: Merge tcp_ns_sock_init[46]() into tcp_sock_init_one()
Surprisingly little logic is shared between the path for creating a
listen()ing socket in the guest namespace versus in the host namespace.
Improve this, by extending tcp_sock_init_one() to take a pif parameter
indicating where it should open the socket. This allows
tcp_ns_sock_init[46]() to be removed entirely.
We generalise tcp_sock_init() in the same way, although we don't fully use
it yet, due to some subtle differences in how we bind for -t versus -T.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc/platform-requirements')
0 files changed, 0 insertions, 0 deletions
