diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-14 05:26:37 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-14 13:19:52 +0200 |
commit | f45891cf2655ebda318833b1ca4d11a451d6f398 (patch) | |
tree | 88ed2dd04bd3913fac206279c78c987e8ad1b14d /conf.c | |
parent | 3bb859c50522e92f01241403501049692f98d25d (diff) | |
download | passt-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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' }, |