aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fib6_rules.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2006-08-25 19:04:29 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:18:06 -0400
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
27 struct rt6key src; 27 struct rt6key src;
28 struct rt6key dst; 28 struct rt6key dst;
29#ifdef CONFIG_IPV6_ROUTE_FWMARK 29#ifdef CONFIG_IPV6_ROUTE_FWMARK
30 u8 fwmark; 30 u32 fwmark;
31#endif 31#endif
32 u8 tclass; 32 u8 tclass;
33}; 33};
@@ -140,6 +140,7 @@ static struct nla_policy fib6_rule_policy[RTA_MAX+1] __read_mostly = {
140 [FRA_PRIORITY] = { .type = NLA_U32 }, 140 [FRA_PRIORITY] = { .type = NLA_U32 },
141 [FRA_SRC] = { .minlen = sizeof(struct in6_addr) }, 141 [FRA_SRC] = { .minlen = sizeof(struct in6_addr) },
142 [FRA_DST] = { .minlen = sizeof(struct in6_addr) }, 142 [FRA_DST] = { .minlen = sizeof(struct in6_addr) },
143 [FRA_FWMARK] = { .type = NLA_U32 },
143 [FRA_TABLE] = { .type = NLA_U32 }, 144 [FRA_TABLE] = { .type = NLA_U32 },
144}; 145};
145 146