diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-02-23 10:51:46 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-02-23 13:21:52 +0100 |
commit | e5bd8dbb24c01321f5417463af17a10df98cd546 (patch) | |
tree | 08c97d562abb0a0f51786e42027e319d7e5ba845 /conf.c | |
parent | ed58ad1a5998291385d29dc9069f64af7a8f6dd1 (diff) | |
download | passt-e5bd8dbb24c01321f5417463af17a10df98cd546.tar passt-e5bd8dbb24c01321f5417463af17a10df98cd546.tar.gz passt-e5bd8dbb24c01321f5417463af17a10df98cd546.tar.bz2 passt-e5bd8dbb24c01321f5417463af17a10df98cd546.tar.lz passt-e5bd8dbb24c01321f5417463af17a10df98cd546.tar.xz passt-e5bd8dbb24c01321f5417463af17a10df98cd546.tar.zst passt-e5bd8dbb24c01321f5417463af17a10df98cd546.zip |
conf, ndp: Disable router advertisements on --config-net
If we statically configure a default route, and also advertise it for
SLAAC, the kernel will try moments later to add the same route:
ICMPv6: RA: ndisc_router_discovery failed to add default route
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1255,6 +1255,9 @@ void conf(struct ctx *c, int argc, char **argv) usage(argv[0]); } + if (c->pasta_conf_ns) + c->no_ra = 1; + if (c->mode == MODE_PASTA && c->pasta_netns_fd == -1) pasta_start_ns(c); |