]> Git Repo - linux.git/blobdiff - net/sched/sch_sfb.c
netlink: make validation more configurable for future strictness
[linux.git] / net / sched / sch_sfb.c
index 2419fdb759667a5c124f2018a310aabe9318b257..b245d6a2068d04b1433a8d6740b4edcf1dd2e872 100644 (file)
@@ -499,7 +499,8 @@ static int sfb_change(struct Qdisc *sch, struct nlattr *opt,
        int err;
 
        if (opt) {
-               err = nla_parse_nested(tb, TCA_SFB_MAX, opt, sfb_policy, NULL);
+               err = nla_parse_nested_deprecated(tb, TCA_SFB_MAX, opt,
+                                                 sfb_policy, NULL);
                if (err < 0)
                        return -EINVAL;
 
@@ -580,7 +581,7 @@ static int sfb_dump(struct Qdisc *sch, struct sk_buff *skb)
        };
 
        sch->qstats.backlog = q->qdisc->qstats.backlog;
-       opts = nla_nest_start(skb, TCA_OPTIONS);
+       opts = nla_nest_start_noflag(skb, TCA_OPTIONS);
        if (opts == NULL)
                goto nla_put_failure;
        if (nla_put(skb, TCA_SFB_PARMS, sizeof(opt), &opt))
This page took 0.027684 seconds and 4 git commands to generate.