[PATCH] 2.5.43 : net/ipv4/ip_forward.c compile error fix

Frank Davis (fdavis@si.rr.com)
Fri, 18 Oct 2002 20:11:50 -0400 (EDT)


Hello all,
The following patch seems to fix the error below. Please review for
inclusion.

Regards,
Frank

--- linux/net/ipv4/ip_forward.c.old Thu Apr 12 15:11:39 2001
+++ linux/net/ipv4/ip_forward.c Fri Oct 18 20:05:30 2002
@@ -53,7 +53,7 @@

if (rt->rt_flags&RTCF_FAST && !netdev_fastroute_obstacles) {
struct dst_entry *old_dst;
- unsigned h = ((*(u8*)&rt->key.dst)^(*(u8*)&rt->key.src))&NETDEV_FASTROUTE_HMASK;
+ unsigned h = ((*(u8*)&rt->fl.fl4_dst)^(*(u8*)&rt->fl.fl4_src))&NETDEV_FASTROUTE_HMASK;

write_lock_irq(&skb->dev->fastpath_lock);
old_dst = skb->dev->fastpath[h];

On Fri, 18 Oct 2002, Frank Davis wrote:

> Hello all,
> I haven't seen this posted on l-k yet (If I missed it, sorry in
> advance). While a 'make bzImage' on 2.5.43, I received the following
> error.
>
> Regards,
> Frank
>
> net/ipv4/ip_forward.c: In function `ip_forward_finish':
> net/ipv4/ip_forward.c:56: structure has no member named `key'
> net/ipv4/ip_forward.c:56: structure has no member named `key'
> make[2]: *** [net/ipv4/ip_forward.o] Error 1
> make[1]: *** [net/ipv4] Error 2
> make: *** [net] Error 2
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/