diff options
author | 2010-04-13 05:03:16 +0000 | |
---|---|---|
committer | 2010-04-13 14:49:30 -0700 | |
commit | 28bb17268b92b0c568f2496e5e631008f9108409 (patch) | |
tree | ba2d619dbb6caf9ad81849e58d7409b790f9539c /net/core/fib_rules.c | |
parent | net: fib_rules: consolidate IPv4 and DECnet ->default_pref() functions. (diff) | |
download | linux-28bb17268b92b0c568f2496e5e631008f9108409.tar.gz linux-28bb17268b92b0c568f2496e5e631008f9108409.tar.bz2 linux-28bb17268b92b0c568f2496e5e631008f9108409.zip |
net: fib_rules: set family in fib_rule_hdr centrally
All fib_rules implementations need to set the family in their ->fill()
functions. Since the value is available to the generic fib_nl_fill_rule()
function, set it there.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/fib_rules.c')
-rw-r--r-- | net/core/fib_rules.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 1eb32276be77..1bc66592453c 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -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; |