Re: ip-masq breaks 2.2.14-pre-13?

Frank McIngvale (frankm@HiWAAY.net)
Wed, 15 Dec 1999 16:31:11 -0600 (CST)


On Wed, 15 Dec 1999, Robert L. Harris wrote:

>
> I'm trying to compile a kernel for a freind and I get this:
>
> make[3]: Entering directory `/usr/src/linux-2.2.13/net/ipv4'
> gcc -D__KERNEL__ -I/usr/src/linux-2.2.13/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c ip_masq.c ip_masq.c: In function `masq_expire':
> ip_masq.c:845: `sysctl_ip_always_defrag' undeclared (first use this function)
> ip_masq.c:845: (Each undeclared identifier is reported only once
> ip_masq.c:845: for each function it appears in.)
> ip_masq.c: At top level:

Move the variable declaration up a few lines:

--- linux/net/ipv4/ip_masq.c Tue Dec 14 09:34:37 1999
+++ linux-2.2.14pre13-fpm/net/ipv4/ip_masq.c Tue Dec 14 09:29:16 1999
@@ -790,6 +790,8 @@
}
}

+extern int sysctl_ip_always_defrag;
+
static void masq_expire(unsigned long data)
{
struct ip_masq *ms = (struct ip_masq *)data;
@@ -883,8 +885,6 @@
*
* Be careful, it can be called from u-space
*/
-
-extern int sysctl_ip_always_defrag;

struct ip_masq * ip_masq_new(int proto, __u32 maddr, __u16 mport, __u32 saddr, __u16 sport, __u32 daddr, __u16 dport, unsigned mflags)
{

-frank

>
> Robert
>
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris | Low quality in a product happens.
> Senior System Engineer | That doesn't mean it's right and
> at RnD Consulting. | and defintely doesn't mean it should
> \_ be accepted. Require quality.
>
> http://www.rnd-consulting.com/~nomad
>
> DISCLAIMER:
> These are MY OPINIONS ALONE. I speak for no-one else.
>
> FYI:
> perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

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