aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-07 11:28:57 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-09 15:40:04 +0200
commit3df5debf378a5d4a9cbe3223dcb15dd271991193 (patch)
tree0f4ba0099ec9e740b1745c459e8a82ecba780866 /conf.c
parentec2b58ea4dc45079470efedaa632da25031d5adc (diff)
downloadpasst-3df5debf378a5d4a9cbe3223dcb15dd271991193.tar
passt-3df5debf378a5d4a9cbe3223dcb15dd271991193.tar.gz
passt-3df5debf378a5d4a9cbe3223dcb15dd271991193.tar.bz2
passt-3df5debf378a5d4a9cbe3223dcb15dd271991193.tar.lz
passt-3df5debf378a5d4a9cbe3223dcb15dd271991193.tar.xz
passt-3df5debf378a5d4a9cbe3223dcb15dd271991193.tar.zst
passt-3df5debf378a5d4a9cbe3223dcb15dd271991193.zip
conf: Fix help message about default behaviour for UDP port forwarding
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/conf.c b/conf.c
index 2622a38..e956240 100644
--- a/conf.c
+++ b/conf.c
@@ -676,9 +676,6 @@ static void usage(const char *name)
info( " -u, --udp-ports SPEC UDP port forwarding to guest");
info( " SPEC is as described for TCP above");
info( " default: none");
- info( " unless overridden, UDP ports with numbers corresponding");
- info( " to forwarded TCP port numbers are forwarded too, and");
- info( " IPv6 bound ports are also forwarded for IPv4");
exit(EXIT_FAILURE);
@@ -701,9 +698,10 @@ pasta_ports:
info( " -u, --udp-ports SPEC UDP port forwarding to namespace");
info( " SPEC is as described for TCP above");
info( " default: auto");
- info( " unless overridden, UDP ports with numbers corresponding");
- info( " to forwarded TCP port numbers are forwarded too, and");
- info( " IPv6 bound ports are also forwarded for IPv4");
+ info( " IPv6 bound ports are also forwarded for IPv4");
+ info( " unless specified, with '-t auto', UDP ports with numbers");
+ info( " corresponding to forwarded TCP port numbers are");
+ info( " forwarded too");
info( " -T, --tcp-ns SPEC TCP port forwarding to init namespace");
info( " SPEC is as described above");
info( " default: auto");