patch-2.1.3 linux/net/core/net_alias.c
Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Wed Oct 9 20:11:11 1996
- Orig file:
v2.1.2/linux/net/core/net_alias.c
- Orig date:
Sat Aug 31 19:39:10 1996
diff -u --recursive --new-file v2.1.2/linux/net/core/net_alias.c linux/net/core/net_alias.c
@@ -1278,6 +1278,22 @@
0
};
+#ifndef ALIAS_USER_LAND_DEBUG
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_alias_types = {
+ PROC_NET_ALIAS_TYPES, 11, "alias_types",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ net_alias_types_getinfo
+};
+static struct proc_dir_entry proc_net_aliases = {
+ PROC_NET_ALIASES, 7, "aliases",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_net_inode_operations,
+ net_alias_getinfo
+};
+#endif
+#endif
/*
* net_alias initialisation
@@ -1299,18 +1315,8 @@
#ifndef ALIAS_USER_LAND_DEBUG
#ifdef CONFIG_PROC_FS
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_ALIAS_TYPES, 11, "alias_types",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- net_alias_types_getinfo
- });
- proc_net_register(&(struct proc_dir_entry) {
- PROC_NET_ALIASES, 7, "aliases",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_net_inode_operations,
- net_alias_getinfo
- });
+ proc_net_register(&proc_net_alias_types);
+ proc_net_register(&proc_net_aliases);
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov