From: Stephen Hemminger <stephen@networkplumber.org>
To: Vincent Jardin via B4 Relay <devnull+vjardin.free.fr@kernel.org>
Cc: vjardin@free.fr, David Ahern <dsahern@kernel.org>,
netdev@vger.kernel.org, Matthieu Baerts <matttbe@kernel.org>
Subject: Re: [PATCH iproute2-next 2/3] ip: add the lisp link type
Date: Fri, 27 Nov 2026 16:25:23 -0800 [thread overview]
Message-ID: <20261127162523.0786b99f@phoenix.local> (raw)
In-Reply-To: <20261127-iproute2-lisp-v1-2-df8ea175bc06@free.fr>
On Fri, 27 Nov 2026 23:37:40 +0100
Vincent Jardin via B4 Relay <devnull+vjardin.free.fr@kernel.org> wrote:
> + if (tb[IFLA_LISP_LOCAL])
> + print_color_string(PRINT_ANY, COLOR_INET, "local", "local %s ",
> + format_host_rta(AF_INET,
> + tb[IFLA_LISP_LOCAL]));
> +
> + if (tb[IFLA_LISP_LOCAL6])
> + print_color_string(PRINT_ANY, COLOR_INET6, "local6",
> + "local %s ",
> + format_host_rta(AF_INET6,
> + tb[IFLA_LISP_LOCAL6]));
> +}
This type of construct will print the "local" and IP address in color which
is not how original authors of color logic wanted it.
You need to use print_string(PRINT_FP, NULL, "%s", "local ") followed by print_color_string.
next prev parent reply other threads:[~2026-11-28 0:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 22:37 [PATCH iproute2-next 0/3] ip: support LISP (RFC 9300) tunnel devices Vincent Jardin via B4 Relay
2026-11-27 22:37 ` [PATCH iproute2-next 1/3] uapi: add the attributes of the lisp devices Vincent Jardin via B4 Relay
2026-11-27 22:37 ` [PATCH iproute2-next 2/3] ip: add the lisp link type Vincent Jardin via B4 Relay
2026-11-28 0:25 ` Stephen Hemminger [this message]
2026-11-27 22:37 ` [PATCH iproute2-next 3/3] testsuite: add test for lisp Vincent Jardin via B4 Relay
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=20261127162523.0786b99f@phoenix.local \
--to=stephen@networkplumber.org \
--cc=devnull+vjardin.free.fr@kernel.org \
--cc=dsahern@kernel.org \
--cc=matttbe@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=vjardin@free.fr \
/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