lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250614011921.273dffed57221d3af04f008e@uniroma2.it>
Date: Sat, 14 Jun 2025 01:19:21 +0200
From: Andrea Mayer <andrea.mayer@...roma2.it>
To: Ido Schimmel <idosch@...dia.com>
Cc: <netdev@...r.kernel.org>, <davem@...emloft.net>, <kuba@...nel.org>,
        <pabeni@...hat.com>, <edumazet@...gle.com>, <dsahern@...nel.org>,
        <horms@...nel.org>, <petrm@...dia.com>,
        Andrea Mayer
 <andrea.mayer@...roma2.it>, stefano.salsano@...roma2.it,
        paolo.lungaroni@...roma2.it
Subject: Re: [PATCH net-next 3/4] seg6: Allow End.X behavior to accept an
 oif

On Thu, 12 Jun 2025 15:23:22 +0300
Ido Schimmel <idosch@...dia.com> wrote:

> Extend the End.X behavior to accept an output interface as an optional
> attribute and make use of it when resolving a route. This is needed when
> user space wants to use a link-local address as the nexthop address.
> 
> Before:
> 
>  # ip route add 2001:db8:1::/64 encap seg6local action End.X nh6 fe80::1 oif eth0 dev sr6
>  # ip route add 2001:db8:2::/64 encap seg6local action End.X nh6 2001:db8:10::1 dev sr6
>  $ ip -6 route show
>  2001:db8:1::/64  encap seg6local action End.X nh6 fe80::1 dev sr6 metric 1024 pref medium
>  2001:db8:2::/64  encap seg6local action End.X nh6 2001:db8:10::1 dev sr6 metric 1024 pref medium
> 
> After:
> 
>  # ip route add 2001:db8:1::/64 encap seg6local action End.X nh6 fe80::1 oif eth0 dev sr6
>  # ip route add 2001:db8:2::/64 encap seg6local action End.X nh6 2001:db8:10::1 dev sr6
>  $ ip -6 route show
>  2001:db8:1::/64  encap seg6local action End.X nh6 fe80::1 oif eth0 dev sr6 metric 1024 pref medium
>  2001:db8:2::/64  encap seg6local action End.X nh6 2001:db8:10::1 dev sr6 metric 1024 pref medium
> 
> Note that the oif attribute is not dumped to user space when it was not
> specified (as an oif of 0) since each entry keeps track of the optional
> attributes that it parsed during configuration (see struct
> seg6_local_lwt::parsed_optattrs).
> 
> Signed-off-by: Ido Schimmel <idosch@...dia.com>
> ---
>  net/ipv6/seg6_local.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Andrea Mayer <andrea.mayer@...roma2.it>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ