Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 18 Oct 2002 20:13:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 18 Oct 2002 20:13:22 -0400 Received: from nycsmtp3out.rdc-nyc.rr.com ([24.29.99.228]:19869 "EHLO nycsmtp3out.rdc-nyc.rr.com") by vger.kernel.org with ESMTP id ; Fri, 18 Oct 2002 20:13:21 -0400 Date: Fri, 18 Oct 2002 20:11:50 -0400 (EDT) From: Frank Davis X-X-Sender: fdavis@localhost.localdomain To: linux-kernel@vger.kernel.org cc: fdavis@si.rr.com, Subject: [PATCH] 2.5.43 : net/ipv4/ip_forward.c compile error fix In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 44 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/