[PATCH 2.5.66] C99 initializer for IPV4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This also makes changing packet_type list to RCU (later) easier.

--- linux-2.5/net/ipv4/ip_output.c	2003-04-03 12:13:10.000000000 -0800
+++ linux-2.5-nobrlock/net/ipv4/ip_output.c	2003-04-04 11:33:43.000000000 -0800
@@ -1293,11 +1293,10 @@
 
 static struct packet_type ip_packet_type =
 {
-	__constant_htons(ETH_P_IP),
-	NULL,	/* All devices */
-	ip_rcv,
-	(void*)1,
-	NULL,
+	.type = __constant_htons(ETH_P_IP),
+	.dev  = NULL,	/* All devices */
+	.func = ip_rcv,
+	.data = (void*)1,
 };
 
 /*
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux