diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-02-17 23:25:39 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-02-21 13:41:13 +0100 |
commit | 53489b8e6ef61b5f9930575eee047f9ab2342ef7 (patch) | |
tree | 1e9a40495106e17d42b782334a93f50a3733d249 /contrib/podman/0001-libpod-Add-pasta-networking-mode.patch | |
parent | ce4e7b4d5ddb213f45164015ef5479943fec2f8e (diff) | |
download | passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.tar passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.tar.gz passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.tar.bz2 passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.tar.lz passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.tar.xz passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.tar.zst passt-53489b8e6ef61b5f9930575eee047f9ab2342ef7.zip |
slirp4netns.sh: Implement API socket option for port forwarding
Introduce the equivalent of the --api-socket option from slirp4netns:
spawn a subshell to handle requests, netcat binds to a UNIX domain
socket and jq parses messages.
Three minor differences compared to slirp4netns:
- IPv6 ports are forwarded too
- error messages are not as specific, for example we don't tell
apart malformed JSON requests from invalid parameters
- host addresses are always 0.0.0.0 and ::1, pasta doesn't bind on
specific addresses for different ports
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/podman/0001-libpod-Add-pasta-networking-mode.patch')
0 files changed, 0 insertions, 0 deletions