summaryrefslogtreecommitdiff
path: root/net/ipv6/fib6_rules.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-08-25 16:04:29 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 15:18:06 -0700
commit6c5eb6a50741b882fd99fbb8178942ca2f74b724 (patch)
tree24fa447c98e26c7ab939514b360d41a050115829 /net/ipv6/fib6_rules.c
parentacba48e1a3c95082af1e12c5efaaca3506103a92 (diff)
[IPV6] ROUTE: Fix FWMARK support.
- Add missing nla_policy entry. - type of fwmark is u32, not u8. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/fib6_rules.c')
-rw-r--r--net/ipv6/fib6_rules.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c
index aebd9e2b85a8..b4cd5c03b0b6 100644
--- a/net/ipv6/fib6_rules.c
+++ b/net/ipv6/fib6_rules.c
@@ -27,7 +27,7 @@ struct fib6_rule
struct rt6key src;
struct rt6key dst;
#ifdef CONFIG_IPV6_ROUTE_FWMARK
- u8 fwmark;
+ u32 fwmark;
#endif
u8 tclass;
};
@@ -140,6 +140,7 @@ static struct nla_policy fib6_rule_policy[RTA_MAX+1] __read_mostly = {
[FRA_PRIORITY] = { .type = NLA_U32 },
[FRA_SRC] = { .minlen = sizeof(struct in6_addr) },
[FRA_DST] = { .minlen = sizeof(struct in6_addr) },
+ [FRA_FWMARK] = { .type = NLA_U32 },
[FRA_TABLE] = { .type = NLA_U32 },
};