diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-03-07 19:23:18 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-03-09 00:36:08 +0100 |
commit | 70148ce5be9844ba0e3c8112fb0117689c1bfca0 (patch) | |
tree | 07cca7b35138c75be644e347fbe1a53242a44343 /conf.c | |
parent | d361fe6e809bdf3539d764cfa5058f46ce51bcbf (diff) | |
download | passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.tar passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.tar.gz passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.tar.bz2 passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.tar.lz passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.tar.xz passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.tar.zst passt-70148ce5be9844ba0e3c8112fb0117689c1bfca0.zip |
conf, passt.h: Rename "outbound" interface to "template" interface
In preparation for the next patch, make it clear that the first
routable interface fetched via netlink, or the one configured via
-i/--interface, is simply used as template to copy addresses and
routes, not an interface we actually use to derive the source address
(which will be _bound to_) for outgoing packets.
The man page and usage message appear to be already clear enough.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -903,10 +903,13 @@ static void conf_print(const struct ctx *c) char buf4[INET_ADDRSTRLEN], ifn[IFNAMSIZ]; int i; - if (c->ifi4) - info("Outbound interface (IPv4): %s", if_indextoname(c->ifi4, ifn)); - if (c->ifi6) - info("Outbound interface (IPv6): %s", if_indextoname(c->ifi6, ifn)); + info("Template interface: %s%s%s%s%s", + c->ifi4 ? if_indextoname(c->ifi4, ifn) : "", + c->ifi4 ? " (IPv4)" : "", + (c->ifi4 && c->ifi6) ? ", " : "", + c->ifi6 ? if_indextoname(c->ifi6, ifn) : "", + c->ifi6 ? " (IPv6)" : ""); + if (c->mode == MODE_PASTA) info("Namespace interface: %s", c->pasta_ifn); |