patch-pre2.0.8 linux/drivers/net/new_tunnel.c
Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/net/loopback.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Mon May 27 13:11:50 1996
- Orig file:
pre2.0.7/linux/drivers/net/new_tunnel.c
- Orig date:
Tue May 7 16:22:29 1996
diff -u --recursive --new-file pre2.0.7/linux/drivers/net/new_tunnel.c linux/drivers/net/new_tunnel.c
@@ -86,7 +86,6 @@
#define TUNL_HLEN (((ETH_HLEN+15)&~15)+tunnel_hlen)
-#ifdef MODULE
static int tunnel_open(struct device *dev)
{
MOD_INC_USE_COUNT;
@@ -99,8 +98,6 @@
return 0;
}
-#endif
-
#ifdef TUNNEL_DEBUG
void print_ip(struct iphdr *ip)
{
@@ -348,10 +345,8 @@
}
/* Add our tunnel functions to the device */
-#ifdef MODULE
dev->open = tunnel_open;
dev->stop = tunnel_close;
-#endif
dev->hard_start_xmit = tunnel_xmit;
dev->get_stats = tunnel_get_stats;
dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
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