patch-2.1.8 linux/net/ipv4/packet.c

Next file: linux/net/ipv4/proc.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.7/linux/net/ipv4/packet.c linux/net/ipv4/packet.c
@@ -60,17 +60,6 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 
-/*
- *	We really ought to have a single public _inline_ min function!
- */
-
-static unsigned long min(unsigned long a, unsigned long b)
-{
-	if (a < b) 
-		return(a);
-	return(b);
-}
-
 
 /*
  *	This should be the easiest of all, all we do is copy it into a buffer. 
@@ -480,23 +469,22 @@
 struct proto packet_prot = 
 {
 	packet_close,
-	ip_build_header,	/* Not actually used */
 	NULL,
+	NULL,			/* accept */
 	NULL,
-	ip_queue_xmit,		/* These two are not actually used */
 	NULL,
 	NULL,
-	NULL,
-	NULL, 
 	datagram_select,
 	NULL,			/* No ioctl */
 	packet_init,
 	NULL,
+	NULL,
 	NULL,			/* No set/get socket options */
 	NULL,
 	packet_sendmsg,		/* Sendmsg */
 	packet_recvmsg,		/* Recvmsg */
 	packet_bind,		/* Bind */
+	NULL,			/* Backlog_rcv */
 	128,
 	0,
 	"PACKET",

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov