diff options
author | Patrick McHardy <kaber@trash.net> | 2010-04-13 09:03:16 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-14 01:49:30 +0400 |
commit | 28bb17268b92b0c568f2496e5e631008f9108409 (patch) | |
tree | ba2d619dbb6caf9ad81849e58d7409b790f9539c /net/decnet/dn_rules.c | |
parent | d8a566beaa75c6ad5e38cdccf0ea5294323e7866 (diff) | |
download | linux-28bb17268b92b0c568f2496e5e631008f9108409.tar.xz |
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/decnet/dn_rules.c')
-rw-r--r-- | net/decnet/dn_rules.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c index 2d14093a2c3a..1c8cc6d5b645 100644 --- a/net/decnet/dn_rules.c +++ b/net/decnet/dn_rules.c @@ -196,7 +196,6 @@ static int dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb, { struct dn_fib_rule *r = (struct dn_fib_rule *)rule; - frh->family = AF_DECnet; frh->dst_len = r->dst_len; frh->src_len = r->src_len; frh->tos = 0; |