summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-04-13 05:03:16 +0000
committerDavid S. Miller <davem@davemloft.net>2010-04-13 14:49:30 -0700
commit28bb17268b92b0c568f2496e5e631008f9108409 (patch)
treeba2d619dbb6caf9ad81849e58d7409b790f9539c /net/ipv6
parentd8a566beaa75c6ad5e38cdccf0ea5294323e7866 (diff)
downloadop-kernel-dev-28bb17268b92b0c568f2496e5e631008f9108409.zip
op-kernel-dev-28bb17268b92b0c568f2496e5e631008f9108409.tar.gz
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/ipv6')
-rw-r--r--net/ipv6/fib6_rules.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index 5e463c43..92b2b7f 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -208,7 +208,6 @@ static int fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb,
{
struct fib6_rule *rule6 = (struct fib6_rule *) rule;
- frh->family = AF_INET6;
frh->dst_len = rule6->dst.plen;
frh->src_len = rule6->src.plen;
frh->tos = rule6->tclass;
OpenPOWER on IntegriCloud