Patch - 5

Marcin Dalecki (dalecki@sub994.sub.uni-goettingen.de)
Thu, 25 Sep 1997 12:36:36 +0200 (MET DST)


This is a tinny memmory saver which will help to save the world from the
polution generated by the production of something about 4kB of RAM
memmory. And please beleve me there many many non networked Linux boxes
out there. You just don't notice theyr exeistence through e-mail :-).

The patch is agains an vanilla 2.1.53 and will aplly seamplessly to 2.1.56
too. Please apply it to the next kernel release.

Many thank's in advance.

=================START OF PATCH===========================================
diff -urN linux-2.1.53/net/core/Makefile linux/net/core/Makefile
--- linux-2.1.53/net/core/Makefile Mon Apr 7 20:35:32 1997
+++ linux/net/core/Makefile Thu Aug 21 00:32:59 1997
@@ -9,8 +9,7 @@

O_TARGET := core.o

-O_OBJS := sock.o skbuff.o iovec.o datagram.o dst.o scm.o \
- neighbour.o
+O_OBJS := sock.o skbuff.o iovec.o datagram.o scm.o

ifeq ($(CONFIG_SYSCTL),y)
O_OBJS += sysctl_net_core.o
@@ -18,7 +17,7 @@

ifdef CONFIG_NET

-O_OBJS += dev.o dev_mcast.o
+O_OBJS += dev.o dev_mcast.o dst.o neighbour.o

ifdef CONFIG_FIREWALL
OX_OBJS += firewall.o
diff -urN linux-2.1.53/net/socket.c linux/net/socket.c
--- linux-2.1.53/net/socket.c Thu Sep 4 22:25:29 1997
+++ linux/net/socket.c Fri Sep 5 14:18:22 1997
@@ -1479,6 +1479,7 @@
proto_init();
}

+#ifdef CONFIG_NET
int socket_get_info(char *buffer, char **start, off_t offset, int length)
{
int len = sprintf(buffer, "sockets: used %d\n", sockets_in_use);
@@ -1493,3 +1494,4 @@
len = length;
return len;
}
+#endif
=======================END OF PATCH=======================================

Marcin