net: Add extack to nlmsg_parse
Make sure extack is passed to nlmsg_parse where easy to do so. Most of these are dump handlers and leveraging the extack in the netlink_callback. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Christian Brauner <christian@brauner.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Este cometimento está contido em:

cometido por
David S. Miller

ascendente
3d0d4337d7
cometimento
dac9c9790e
@@ -5021,7 +5021,7 @@ static int inet6_dump_addr(struct sk_buff *skb, struct netlink_callback *cb,
|
||||
s_ip_idx = ip_idx = cb->args[2];
|
||||
|
||||
if (nlmsg_parse(cb->nlh, sizeof(struct ifaddrmsg), tb, IFA_MAX,
|
||||
ifa_ipv6_policy, NULL) >= 0) {
|
||||
ifa_ipv6_policy, cb->extack) >= 0) {
|
||||
if (tb[IFA_TARGET_NETNSID]) {
|
||||
netnsid = nla_get_s32(tb[IFA_TARGET_NETNSID]);
|
||||
|
||||
|
@@ -4117,7 +4117,7 @@ static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
int err;
|
||||
|
||||
err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv6_policy,
|
||||
NULL);
|
||||
extack);
|
||||
if (err < 0)
|
||||
goto errout;
|
||||
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador