From: Stephen Hemminger <stephen@networkplumber.org>
To: Omar Ramadan <omar@blockcast.net>
Cc: netdev@vger.kernel.org, David Ahern <dsahern@kernel.org>
Subject: Re: [PATCH iproute2-next] iplink: amt: support an IPv6 outer transport
Date: Wed, 25 Nov 2026 14:54:45 -0800 [thread overview]
Message-ID: <20261125145445.11835626@phoenix.local> (raw)
In-Reply-To: <20261125170100.3054010-iproute2-omar@blockcast.net>
On Wed, 25 Nov 2026 19:14:47 +0000
Omar Ramadan <omar@blockcast.net> wrote:
> + if (tb[IFLA_AMT_LOCAL_IP6]) {
> + const void *addr = RTA_DATA(tb[IFLA_AMT_LOCAL_IP6]);
> +
> + print_string(PRINT_ANY, "local", "local %s ",
> + format_host(AF_INET6, 16, addr));
> + }
Should be something like:
print_string(PRINT_FP, NULL, "%s", "local ");
print_color_string(PRINT_ANY, "local", "%s", format_host_r(AF_INET6, 16, addr, b1, sizeof(b1));
key point:
color output
only for address not the "local "
prefer format_host_r on new code
See ip/ip6tunnel.c for examples
prev parent reply other threads:[~2026-11-25 22:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 19:14 [PATCH iproute2-next] iplink: amt: support an IPv6 outer transport Omar Ramadan
2026-11-25 22:54 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125145445.11835626@phoenix.local \
--to=stephen@networkplumber.org \
--cc=dsahern@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=omar@blockcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox