Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Stephen Hemminger
Wed, 25 Nov 2026 22:54
Re: [PATCH iproute2-next] iplink: amt: support an IPv6 outer transport
Author: Stephen Hemminger
Date: Wed, 25 Nov 2026 22:54
Date: Wed, 25 Nov 2026 22:54
21 lines
11479 bytes
11479 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads