2002-10-19 00:00:56

by Frank Davis

[permalink] [raw]
Subject: 2.5.43 : net/ipv4/ip_forward.c compile error

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


2002-10-19 00:13:22

by Frank Davis

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

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
>
>

2002-10-19 00:17:47

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] 2.5.43 : net/ipv4/ip_forward.c compile error fix

From: Frank Davis <[email protected]>
Date: Fri, 18 Oct 2002 20:11:50 -0400 (EDT)

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

I'll apply this thanks.

2002-10-19 00:17:15

by David Miller

[permalink] [raw]
Subject: Re: 2.5.43 : net/ipv4/ip_forward.c compile error


Turn off fast routing for now, I'll fix this up.