patch-2.3.13 linux/net/ethernet/eth.c

Next file: linux/scripts/MAKEDEV.ide
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/net/ethernet/eth.c linux/net/ethernet/eth.c
@@ -60,13 +60,15 @@
 #include <asm/system.h>
 #include <asm/checksum.h>
 
-
-__initfunc(void eth_setup(char *str, int *ints))
+static int __init eth_setup(char *str)
 {
+	int ints[5];
 	struct device *d;
 
+	str = get_options(str, ARRAY_SIZE(ints), ints);
+
 	if (!str || !*str)
-		return;
+		return 0;
 
 	d = dev_base;
 	while (d) 
@@ -85,8 +87,10 @@
 		}
 		d=d->next;
 	}
+	return 1;
 }
 
+__setup("ether=", eth_setup);
 
 /*
  *	 Create the Ethernet MAC header for an arbitrary protocol layer 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)