networkd: fix link_up() (#12505)
authorSusant Sahani <ssahani@gmail.com>
Thu, 9 May 2019 02:05:35 +0000 (07:35 +0530)
committerAdrian Bunk <bunk@debian.org>
Thu, 29 Jun 2023 13:57:02 +0000 (14:57 +0100)
commitbeea2026f3d78e2b3cdd5594823a00b12b71fdd3
tree2725346ea547c7acc01b9cdb3b8b9e30599c4967
parent5ce54dea0e418926e6cba628bb7d35ce0aaeadcc
networkd: fix link_up() (#12505)

Fillup IFLA_INET6_ADDR_GEN_MODE while we do link_up.

Fixes the following error:
```
dummy-test: Could not bring up interface: Invalid argument
```

After reading the kernel code when we do a link up
```
net/core/rtnetlink.c
IFLA_AF_SPEC
 af_ops->set_link_af(dev, af);
  inet6_set_link_af
   if (tb[IFLA_INET6_ADDR_GEN_MODE])
             Here it looks for IFLA_INET6_ADDR_GEN_MODE
```
Since link up we didn't filling up that it's failing.

Closes #12504.

(cherry picked from commit 4eb086a38712ea98faf41e075b84555b11b54362)

Gbp-Pq: Name networkd-fix-link_up-12505.patch
src/network/networkd-link.c