2.1.75: problems compiling net

Gestor de Sistemes (sistema@readysoft.es)
Mon, 22 Dec 1997 12:22:49 +0100 (MET)


--578667187-269167349-882789775=:1082
Content-Type: TEXT/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT

Due to the changes of BSF, sock.c doesnīt compile.
The message is the following one:

make[2]: Entering directory `/usr/src/linux-2.1.75/net/core'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.1.75/net/core'
gcc -D__KERNEL__ -I/usr/src/linux-2.1.75/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 firewall.c
gcc -D__KERNEL__ -I/usr/src/linux-2.1.75/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o sock.o sock.c
/usr/src/linux-2.1.75/include/linux/ipsec.h: In function `ipsec_sk_policy':
In file included from sock.c:129:
/usr/src/linux-2.1.75/include/linux/ipsec.h:54: structure has no member named `authentication'
/usr/src/linux-2.1.75/include/linux/ipsec.h:56: structure has no member named `encryption'
sock.c: In function `sock_setsockopt':
sock.c:300: structure has no member named `authentication'
sock.c:304: structure has no member named `authentication'
sock.c:312: structure has no member named `encryption'
sock.c:316: structure has no member named `encryption'
sock.c:324: structure has no member named `encrypt_net'
sock.c:328: structure has no member named `encrypt_net'
sock.c: In function `sock_getsockopt':
sock.c:513: structure has no member named `authentication'
sock.c:517: structure has no member named `encryption'
sock.c:521: structure has no member named `encrypt_net'
make[3]: *** [sock.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.1.75/net/core'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.1.75/net/core'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.1.75/net'
make: *** [linuxsubdirs] Error 2

I attach a patch to add the NET_SECURITY functionality, removed after
adding the BSF.

But itīs not enough to let it compile.
Should it disapear?

Pau Aliagas
Ready Soft

--578667187-269167349-882789775=:1082
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Description: sock-2.1.75.patch

--- linux-2.1.75/net/core/sock.c.orig Mon Dec 22 09:21:27 1997
+++ linux/net/core/sock.c Mon Dec 22 12:14:33 1997
@@ -287,6 +287,48 @@
break;


+#ifdef CONFIG_NET_SECURITY
+ /*
+ * FIXME: make these error things that are not
+ * available!
+ */
+
+ case SO_SECURITY_AUTHENTICATION:
+ if(val<=IPSEC_LEVEL_DEFAULT)
+ {
+ sk->authentication=val;
+ return 0;
+ }
+ if(net_families[sock->ops->family]->authentication)
+ sk->authentication=val;
+ else
+ return -EINVAL;
+ break;
+
+ case SO_SECURITY_ENCRYPTION_TRANSPORT:
+ if(val<=IPSEC_LEVEL_DEFAULT)
+ {
+ sk->encryption=val;
+ return 0;
+ }
+ if(net_families[sock->ops->family]->encryption)
+ sk->encryption = val;
+ else
+ return -EINVAL;
+ break;
+
+ case SO_SECURITY_ENCRYPTION_NETWORK:
+ if(val<=IPSEC_LEVEL_DEFAULT)
+ {
+ sk->encrypt_net=val;
+ return 0;
+ }
+ if(net_families[sock->ops->family]->encrypt_net)
+ sk->encrypt_net = val;
+ else
+ return -EINVAL;
+ break;
+#endif
case SO_BINDTODEVICE:
/* Bind this socket to a particular device like "eth0",
* as specified in an ifreq structure. If the device

--578667187-269167349-882789775=:1082--