[OpenWrt-Devel] [netifd][PATCH] interface-ip: transfer prefix route ownership to kernel when IPv6 address becomes deprecated

Hans Dedecker dedeckeh at gmail.com
Tue Feb 4 16:49:37 EST 2020


Hi Alin,
On Mon, Feb 3, 2020 at 4:27 PM Alin Nastac <alin.nastac at gmail.com> wrote:
>
> From: Alin Nastac <alin.nastac at gmail.com>
>
> When netifd manages the prefix route directly, it will remove it
> the moment prefix gets deprecated. This will make it impossible
> for the target to send ICMPv6 errors back to LAN devices still
> using the deprecated prefix, thus breaking the L-14 requirement
> of RFC 7084.
>
> Signed-off-by: Alin Nastac <alin.nastac at gmail.com>
The patch fails to apply with the following error message :

Applying: interface-ip: transfer prefix route ownership to kernel when
IPv6 address becomes deprecated
error: sha1 information is lacking or useless (interface-ip.c).
error: could not build fake ancestor
Patch failed at 0001 interface-ip: transfer prefix route ownership to
kernel when IPv6 address becomes deprecated

Hans
> ---
>  interface-ip.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/interface-ip.c b/interface-ip.c
> index 91c305b..ff8f219 100644
> --- a/interface-ip.c
> +++ b/interface-ip.c
> @@ -913,7 +913,7 @@ interface_set_prefix_address(struct device_prefix_assignment *assignment,
>
>         addr.addr.in6 = assignment->addr;
>         addr.mask = assignment->length;
> -       addr.flags = DEVADDR_INET6 | DEVADDR_OFFLINK;
> +       addr.flags = DEVADDR_INET6;
>         addr.preferred_until = prefix->preferred_until;
>         addr.valid_until = prefix->valid_until;
>
> @@ -960,6 +960,7 @@ interface_set_prefix_address(struct device_prefix_assignment *assignment,
>                         route.addr = addr.addr;
>                 }
>
> +               addr.flags |= DEVADDR_OFFLINK;
>                 if (system_add_address(l3_downlink, &addr))
>                         return;
>
> --
> 2.7.4
>

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list