diff options
author | David Ahern <dsahern@gmail.com> | 2017-10-18 19:56:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-20 15:15:07 +0300 |
commit | de95e04791a03de5cb681980a3880db6919e3b4a (patch) | |
tree | bd085d94eee4f421f39b6fc650cdb86a54bb379c /include | |
parent | ff7883ea60e7b021bcd6539b8211879554c8db9a (diff) | |
download | linux-de95e04791a03de5cb681980a3880db6919e3b4a.tar.xz |
net: Add extack to validator_info structs used for address notifier
Add extack to in_validator_info and in6_validator_info. Update the one
user of each, ipvlan, to return an error message for failures.
Only manual configuration of an address is plumbed in the IPv6 code path.
Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/inetdevice.h | 1 | ||||
-rw-r--r-- | include/net/addrconf.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index 751d051f0bc7..681dff30940b 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -154,6 +154,7 @@ struct in_ifaddr { struct in_validator_info { __be32 ivi_addr; struct in_device *ivi_dev; + struct netlink_ext_ack *extack; }; int register_inetaddr_notifier(struct notifier_block *nb); diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 87981cd63180..b8b16437c6d5 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h @@ -55,6 +55,7 @@ struct prefix_info { struct in6_validator_info { struct in6_addr i6vi_addr; struct inet6_dev *i6vi_dev; + struct netlink_ext_ack *extack; }; #define IN6_ADDR_HSIZE_SHIFT 4 |