OSDN Git Service

ipv6: report errors for iftoken via netlink extack
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 7 Apr 2021 15:59:12 +0000 (08:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2021 20:52:36 +0000 (13:52 -0700)
commit3583a4e8d77d44697a21437227dd53fc6e7b2cb5
treecf2dd8e85c6c74f7f1d14ab7c5bf3707c2b91263
parentf2fbd0aacdaf10cef961750af55d895b8a455b12
ipv6: report errors for iftoken via netlink extack

Setting iftoken can fail for several different reasons but there
and there was no report to user as to the cause. Add netlink
extended errors to the processing of the request.

This requires adding additional argument through rtnl_af_ops
set_link_af callback.

Reported-by: Hongren Zheng <li@zenithal.me>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h
net/core/rtnetlink.c
net/ipv4/devinet.c
net/ipv6/addrconf.c