patch-1.3.47 linux/net/ipv4/af_inet.c

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

diff -u --recursive --new-file v1.3.46/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -88,6 +88,9 @@
 #include <net/raw.h>
 #include <net/icmp.h>
 #include <linux/ip_fw.h>
+#ifdef CONFIG_IP_ALIAS
+#include <net/ip_alias.h>
+#endif
 
 #define min(a,b)	((a)<(b)?(a):(b))
 
@@ -1530,6 +1533,13 @@
 	ip_mr_init();
 #endif
 
+	/*
+	 *  Initialise AF_INET alias type (register net_alias_type)
+	 */
+
+#if defined(CONFIG_IP_ALIAS)
+	ip_alias_init();
+#endif
 	/*
 	 *	Create all the /proc entries.
 	 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this