[IPV6]: Fix build with fwmark disabled.

Based upon a patch by Brian Haley.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2006-08-25 16:07:48 -07:00
parent cd9d742622
commit 267935b197
1 changed files with 2 additions and 0 deletions

View File

@ -703,7 +703,9 @@ void ip6_route_input(struct sk_buff *skb)
.ip6_u = {
.daddr = iph->daddr,
.saddr = iph->saddr,
#ifdef CONFIG_IPV6_ROUTE_FWMARK
.fwmark = skb->nfmark,
#endif
.flowlabel = (* (u32 *) iph)&IPV6_FLOWINFO_MASK,
},
},