patch-pre2.0.6 linux/net/core/net_alias.c

Next file: linux/net/decnet/README
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.5/linux/net/core/net_alias.c linux/net/core/net_alias.c
@@ -235,6 +235,18 @@
 }
 
 
+static int
+net_alias_open(struct device * dev)
+{
+  return 0;
+}
+
+static int
+net_alias_close(struct device * dev)
+{
+  return 0;
+}
+
 /*
  * setups a new (alias) device 
  */
@@ -264,6 +276,8 @@
   dev->my_alias = alias;	/* point to alias */
   dev->name = alias->name;
   dev->type = main_dev->type;
+  dev->open = net_alias_open;
+  dev->stop = net_alias_close;
   dev->hard_header_len = main_dev->hard_header_len;
   memcpy(dev->broadcast, main_dev->broadcast, MAX_ADDR_LEN);
   memcpy(dev->dev_addr, main_dev->dev_addr, MAX_ADDR_LEN);

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