** Patch added: "iproute2_6.1.0-1ubuntu3.debdiff" https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/2039280/+attachment/5709212/+files/iproute2_6.1.0-1ubuntu3.debdiff
** Description changed: [Impact] 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 patch, add support for setting the protocol attribute at IP address addition, replacement, and listing requests. [Fix] Apply the attached patch [How to test] $ cat << EOF > test.sh #!/bin/sh addr=192.0.2.1/28 addr2=${addr%/*}2/${addr#*/} ifr=test-dummy123 sudo ip link add name "$ifr" type dummy sudo ip link set "$ifr" up sudo ip address add dev "$ifr" "$addr2" proto 0x99 sudo ip link del "$ifr" EOF $chmod +x test.sh $test.sh $ echo $? 0 if you get an error instead, like: Error: either "local" is duplicate, or "proto" is a garbage. your iproute2 is not patched. Alternativerly, you could download Linux v6.5 source code and run: $ cd linux $ sudo ./tools/testing/selftests/net/rtnetlink.sh -t kci_test_address_proto [Regression potential] - Two clean upstream cherry-picks so regression potential is low. + Two clean upstream cherry-picks, low regression potential is low. ** Description changed: [Impact] 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 patch, add support for setting the protocol attribute at IP address addition, replacement, and listing requests. [Fix] Apply the attached patch [How to test] $ cat << EOF > test.sh #!/bin/sh addr=192.0.2.1/28 addr2=${addr%/*}2/${addr#*/} ifr=test-dummy123 sudo ip link add name "$ifr" type dummy sudo ip link set "$ifr" up sudo ip address add dev "$ifr" "$addr2" proto 0x99 sudo ip link del "$ifr" EOF $chmod +x test.sh $test.sh $ echo $? 0 if you get an error instead, like: Error: either "local" is duplicate, or "proto" is a garbage. your iproute2 is not patched. Alternativerly, you could download Linux v6.5 source code and run: $ cd linux $ sudo ./tools/testing/selftests/net/rtnetlink.sh -t kci_test_address_proto [Regression potential] - Two clean upstream cherry-picks, low regression potential is low. + Two clean upstream cherry-picks, regression potential should be low. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to iproute2 in Ubuntu. Matching subscriptions: iproute2 https://bugs.launchpad.net/bugs/2039280 Title: Support IP address protocol Status in iproute2 package in Ubuntu: New Bug description: [Impact] 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 patch, add support for setting the protocol attribute at IP address addition, replacement, and listing requests. [Fix] Apply the attached patch [How to test] $ cat << EOF > test.sh #!/bin/sh addr=192.0.2.1/28 addr2=${addr%/*}2/${addr#*/} ifr=test-dummy123 sudo ip link add name "$ifr" type dummy sudo ip link set "$ifr" up sudo ip address add dev "$ifr" "$addr2" proto 0x99 sudo ip link del "$ifr" EOF $chmod +x test.sh $test.sh $ echo $? 0 if you get an error instead, like: Error: either "local" is duplicate, or "proto" is a garbage. your iproute2 is not patched. Alternativerly, you could download Linux v6.5 source code and run: $ cd linux $ sudo ./tools/testing/selftests/net/rtnetlink.sh -t kci_test_address_proto [Regression potential] Two clean upstream cherry-picks, regression potential should be low. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/2039280/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp