Skip to contentSkip to conversation

ip: Support IP address protocol

PATCH Applied Petr Machata 2 participants 2 messages Mar 27, 2023 – Mar 30, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ip: Support IP address protocol

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(-)
Signature · 1 line
2.39.0
#1 lore raw
This series was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:

Hello:

This series was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:

Quoted 8 lines · On Mon, 27 Mar 2023 18:12:04 +0200 you wrote:

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.

[...]

Here is the summary with links:
- [iproute2-next,1/2] ip: Support IP address protocol

    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=bdb8d8549ed9
  - [iproute2-next,2/2] man: man8: Add man page coverage for "ip address add ... proto"
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=1fbb61058d34

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html