aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-14 05:26:37 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-14 13:19:52 +0200
commitf45891cf2655ebda318833b1ca4d11a451d6f398 (patch)
tree88ed2dd04bd3913fac206279c78c987e8ad1b14d /conf.c
parent3bb859c50522e92f01241403501049692f98d25d (diff)
downloadpasst-f45891cf2655ebda318833b1ca4d11a451d6f398.tar
passt-f45891cf2655ebda318833b1ca4d11a451d6f398.tar.gz
passt-f45891cf2655ebda318833b1ca4d11a451d6f398.tar.bz2
passt-f45891cf2655ebda318833b1ca4d11a451d6f398.tar.lz
passt-f45891cf2655ebda318833b1ca4d11a451d6f398.tar.xz
passt-f45891cf2655ebda318833b1ca4d11a451d6f398.tar.zst
passt-f45891cf2655ebda318833b1ca4d11a451d6f398.zip
conf, tcp, udp: Add --no-map-gw to disable mapping gateway address to host
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index d347f1d..dcba9ae 100644
--- a/conf.c
+++ b/conf.c
@@ -600,6 +600,7 @@ static void usage(const char *name)
info( " --no-ndp Disable NDP responses");
info( " --no-dhcpv6 Disable DHCPv6 server");
info( " --no-ra Disable router advertisements");
+ info( " --no-map-gw Don't map gateway address to host");
info( " -4, --ipv4-only Enable IPv4 operation only");
info( " -6, --ipv6-only Enable IPv6 operation only");
@@ -776,6 +777,7 @@ void conf(struct ctx *c, int argc, char **argv)
{"no-dhcpv6", no_argument, &c->no_dhcpv6, 1 },
{"no-ndp", no_argument, &c->no_ndp, 1 },
{"no-ra", no_argument, &c->no_ra, 1 },
+ {"no-map-gw", no_argument, &c->no_map_gw, 1 },
{"ipv4-only", no_argument, &c->v4, '4' },
{"ipv6-only", no_argument, &c->v6, '6' },
{"tcp-ports", required_argument, NULL, 't' },