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

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

diff -u --recursive --new-file v2.0.29/linux/net/ipv4/packet.c linux/net/ipv4/packet.c
@@ -479,28 +479,34 @@
  
 struct proto packet_prot = 
 {
-	packet_close,
-	ip_build_header,	/* Not actually used */
-	NULL,
-	NULL,
-	ip_queue_xmit,		/* These two are not actually used */
-	NULL,
-	NULL,
-	NULL,
-	NULL, 
-	datagram_select,
-	NULL,			/* No ioctl */
-	packet_init,
-	NULL,
-	NULL,			/* No set/get socket options */
-	NULL,
-	packet_sendmsg,		/* Sendmsg */
-	packet_recvmsg,		/* Recvmsg */
-	packet_bind,		/* Bind */
-	128,
-	0,
-	"PACKET",
-	0, 0
+	(struct sock *)&packet_prot,	/* sklist_next */
+	(struct sock *)&packet_prot,	/* sklist_prev */
+	packet_close,			/* close */
+	ip_build_header,		/* build_header, Not actually used */
+	NULL,				/* connect */
+	NULL,				/* accept */
+	ip_queue_xmit,			/* queue_xmit, These two are not actually used */
+	NULL,				/* retransmit */
+	NULL,				/* write_wakeup */
+	NULL,				/* read_wakeup */
+	NULL,				/* rcv */
+	datagram_select,		/* select */
+	NULL,				/* ioctl, No ioctl */
+	packet_init,			/* init */
+	NULL,				/* shutdown */
+	NULL,				/* setsockopt, No set/get socket options */
+	NULL,				/* getsockopt */
+	packet_sendmsg,			/* sendmsg */
+	packet_recvmsg,			/* recvmsg */
+	packet_bind,			/* bind */
+	NULL,				/* hash */
+	NULL,				/* unhash */
+	NULL,				/* rehash */
+	NULL,				/* good_socknum */
+	NULL,				/* verify_bind */
+	128,				/* max_header */
+	0,				/* retransmits */
+	"PACKET",			/* name */
+	0,				/* inuse */
+	0				/* highestinuse */
 };
-
-	

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