public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Petr Machata <petrm@nvidia•com>
To: <netdev@vger•kernel.org>, <dsahern@gmail•com>,
	<stephen@networkplumber•org>
Cc: Petr Machata <petrm@nvidia•com>
Subject: [PATCH iproute2-next 0/2] ip: Support IP address protocol
Date: Mon, 27 Mar 2023 18:12:04 +0200	[thread overview]
Message-ID: <cover.1679933258.git.petrm@nvidia.com> (raw)

IPv4 and IPv6 addresses can be assigned a protocol value that indicates the
provenance of the IP address. The attribute is modeled after ip route
protocols, and essentially allows the administrator or userspace stack to
tag addresses in some way that makes sense to the actor in question.
Support for this feature was merged with commit 47f0bd503210 ("net: Add new
protocol attribute to IP addresses"), for kernel 5.18.

In this patchset, add support for setting the protocol attribute at IP
address addition, replacement, and listing requests.

In patch #1, the code is added. The commit message at the patch lists an
example session including JSON output. In patch #2, add the corresponding
man page coverage.

Petr Machata (2):
  ip: Support IP address protocol
  man: man8: Add man page coverage for "ip address add ... proto"

 include/rt_names.h       |  2 ++
 ip/ip_common.h           |  2 ++
 ip/ipaddress.c           | 34 ++++++++++++++++++++--
 lib/rt_names.c           | 62 ++++++++++++++++++++++++++++++++++++++++
 man/man8/ip-address.8.in | 49 +++++++++++++++++++++++++++++--
 5 files changed, 145 insertions(+), 4 deletions(-)

-- 
2.39.0


             reply	other threads:[~2023-03-27 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 16:12 Petr Machata [this message]
2023-03-30 16:00 ` [PATCH iproute2-next 0/2] ip: Support IP address protocol patchwork-bot+netdevbpf

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=cover.1679933258.git.petrm@nvidia.com \
    --to=petrm@nvidia$(echo .)com \
    --cc=dsahern@gmail$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=stephen@networkplumber$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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