]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/core/fib_rules.c
net: fib_rules: set family in fib_rule_hdr centrally
[net-next-2.6.git] / net / core / fib_rules.c
index 1eb32276be773c61c4dbb83ba0752ded6dac8ead..1bc66592453ca5cdffb71179a8c69eae7c2265c3 100644 (file)
@@ -535,6 +535,7 @@ static int fib_nl_fill_rule(struct sk_buff *skb, struct fib_rule *rule,
                return -EMSGSIZE;
 
        frh = nlmsg_data(nlh);
+       frh->family = ops->family;
        frh->table = rule->table;
        NLA_PUT_U32(skb, FRA_TABLE, rule->table);
        frh->res1 = 0;