ipmasqadm binary

Andrew Bortz (splat@clark.net)
Sun, 5 Apr 1998 18:29:35 -0400


I am running Pentium / Linux 2.1.92 / Redhat 5.0 and am unable to compile
the ipmasqadm tool to control ip masquerading. any suggestions/patches i
could get. this is as far as i can get in the compile:

gcc -Wall -O2 -I../include -I
/usr/src/linux/include -fPIC -DLIBDIR=\"/usr/lib/
ipmasqadm\" ipmasqadm.c -ldl -o ipmasqadm
gcc -Wall -O2 -I../include -I
/usr/src/linux/include -fPIC -DLIBDIR=\"/usr/lib/
ipmasqadm\" -fPIC -o portfw_sh.o -c portfw.c
In file included from portfw.c:57:
/usr/src/linux/include/linux/ip_fw.h:66: field `fw_src' has incomplete type
/usr/src/linux/include/linux/ip_fw.h:66: field `fw_dst' has incomplete type
/usr/src/linux/include/linux/ip_fw.h:67: field `fw_smsk' has incomplete type
/usr/src/linux/include/linux/ip_fw.h:67: field `fw_dmsk' has incomplete type
/usr/src/linux/include/linux/ip_fw.h:68: field `fw_via' has incomplete type
/usr/src/linux/include/linux/ip_fw.h:185: field `fwp_iph' has incomplete
type
/usr/src/linux/include/linux/ip_fw.h:187: field `fwp_tcph' has incomplete
type
/usr/src/linux/include/linux/ip_fw.h:188: field `fwp_udph' has incomplete
type
/usr/src/linux/include/linux/ip_fw.h:189: field `fwp_icmph' has incomplete
type
/usr/src/linux/include/linux/ip_fw.h:191: field `fwp_via' has incomplete
type
portfw.c: In function `masqmod_main':
portfw.c:80: storage size of `local_sin' isn't known
portfw.c:81: storage size of `redir_sin' isn't known
portfw.c:129: `IPPROTO_TCP' undeclared (first use this function)
portfw.c:129: (Each undeclared identifier is reported only once
portfw.c:129: for each function it appears in.)
portfw.c:132: `IPPROTO_UDP' undeclared (first use this function)
portfw.c:81: warning: unused variable `redir_sin'
portfw.c:80: warning: unused variable `local_sin'
portfw.c: In function `do_setsockopt':
portfw.c:214: `IPPROTO_RAW' undeclared (first use this function)
portfw.c:220: `IPPROTO_IP' undeclared (first use this function)
portfw.c: In function `list_forwarding':
portfw.c:273: warning: implicit declaration of function `htonl'
portfw.c:275: warning: implicit declaration of function `htons'
make: *** [portfw_sh.o] Error 1

thanks for any help any of you can give me.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu