patch-2.1.22 linux/include/linux/net_alias.h

Next file: linux/include/linux/netdevice.h
Previous file: linux/include/linux/module.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.21/linux/include/linux/net_alias.h linux/include/linux/net_alias.h
@@ -18,6 +18,8 @@
 #define _NET_ALIAS_H
 
 #include <linux/config.h>
+
+#ifdef CONFIG_NET_ALIAS
 #include <linux/types.h>
 #include <linux/if.h>
 #include <linux/netdevice.h>
@@ -173,5 +175,13 @@
 extern struct device * net_alias_dev_rcv_sel32(struct device *main_dev, int family, __u32 src, __u32 dst);
 
 
+
+#else
+
+#define net_alias_is(a)		0
+#define net_alias_main_dev(dev)	(dev)
+#define net_alias_has(dev)	0
+
+#endif
 
 #endif  /* _NET_ALIAS_H */

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