]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[IPV6] ROUTE: Fix FWMARK support.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Fri, 25 Aug 2006 23:04:29 +0000 (16:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:18:06 +0000 (15:18 -0700)
- 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>
net/ipv6/fib6_rules.c

index aebd9e2b85a881bfbca634063c085d527d3cbe2d..b4cd5c03b0b61d6df03895bdc0b3bc96ae7e726f 100644 (file)
@@ -27,7 +27,7 @@ struct fib6_rule
        struct rt6key           src;
        struct rt6key           dst;
 #ifdef CONFIG_IPV6_ROUTE_FWMARK
-       u                     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 },
 };