]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: fix link_up() (#12505)
authorSusant Sahani <ssahani@gmail.com>
Thu, 9 May 2019 02:05:35 +0000 (07:35 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 9 May 2019 02:05:35 +0000 (04:05 +0200)
commit4eb086a38712ea98faf41e075b84555b11b54362
tree7abf32e2b2b592c1b97c72aa7d29bc70696bcf3f
parent180f1e33599c571125a00d40f04b01d3b2a82993
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.
src/network/networkd-link.c