aboutgitcodebugslistschat
path: root/tap.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-08-12 19:53:54 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-08-12 21:29:36 +0200
commitf6d5a52392645f9b52c1b969ea2e85762626c5ba (patch)
tree268cf4691fafc6b914f9ff56ab7a7b72561992c4 /tap.h
parent86bdd968ea2df977b40b5120c13672ca6ee98c79 (diff)
downloadpasst-f6d5a52392645f9b52c1b969ea2e85762626c5ba.tar
passt-f6d5a52392645f9b52c1b969ea2e85762626c5ba.tar.gz
passt-f6d5a52392645f9b52c1b969ea2e85762626c5ba.tar.bz2
passt-f6d5a52392645f9b52c1b969ea2e85762626c5ba.tar.lz
passt-f6d5a52392645f9b52c1b969ea2e85762626c5ba.tar.xz
passt-f6d5a52392645f9b52c1b969ea2e85762626c5ba.tar.zst
passt-f6d5a52392645f9b52c1b969ea2e85762626c5ba.zip
conf: Delay handling -D option until after addresses are configured
add_dns[46]() rely on the gateway address and c->no_map_gw being already initialised, in order to properly handle DNS servers which need NAT to be accessed from the guest. Usually these are called from get_dns() which is well after the addresses are configured, so that's fine. However, they can also be called earlier if an explicit -D command line option is given. In this case no_map_gw and/or c->ip[46].gw may not get be initialised properly, leading to this doing the wrong thing. Luckily we already have a second pass of option parsing for things which need addresses to already be configured. Move handling of -D to there. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.h')
0 files changed, 0 insertions, 0 deletions