patch-2.3.14 linux/net/wanrouter/wanmain.c
Next file: linux/net/x25/af_x25.c
Previous file: linux/net/sched/sch_teql.c
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Wed Aug 18 11:38:49 1999
- Orig file:
v2.3.13/linux/net/wanrouter/wanmain.c
- Orig date:
Wed Jun 2 14:40:22 1999
diff -u --recursive --new-file v2.3.13/linux/net/wanrouter/wanmain.c linux/net/wanrouter/wanmain.c
@@ -297,7 +297,7 @@
*/
-int wanrouter_encapsulate (struct sk_buff* skb, struct device* dev)
+int wanrouter_encapsulate (struct sk_buff* skb, struct net_device* dev)
{
int hdr_len = 0;
@@ -339,7 +339,7 @@
*/
-unsigned short wanrouter_type_trans (struct sk_buff* skb, struct device* dev)
+unsigned short wanrouter_type_trans (struct sk_buff* skb, struct net_device* dev)
{
int cnt = skb->data[0] ? 0 : 1; /* there may be a pad present */
unsigned short ethertype;
@@ -515,7 +515,7 @@
static int device_shutdown (wan_device_t* wandev)
{
- struct device* dev;
+ struct net_device* dev;
if (wandev->state == WAN_UNCONFIGURED)
return 0;
@@ -569,7 +569,7 @@
static int device_new_if (wan_device_t* wandev, wanif_conf_t* u_conf)
{
wanif_conf_t conf;
- struct device* dev;
+ struct net_device* dev;
int err;
if ((wandev->state == WAN_UNCONFIGURED) || (wandev->new_if == NULL))
@@ -581,11 +581,11 @@
if (conf.magic != ROUTER_MAGIC)
return -EINVAL;
- dev = kmalloc(sizeof(struct device), GFP_KERNEL);
+ dev = kmalloc(sizeof(struct net_device), GFP_KERNEL);
if (dev == NULL)
return -ENOBUFS;
- memset(dev, 0, sizeof(struct device));
+ memset(dev, 0, sizeof(struct net_device));
err = wandev->new_if(wandev, dev, &conf);
if (!err)
{
@@ -678,7 +678,7 @@
static int delete_interface (wan_device_t* wandev, char* name, int force)
{
- struct device *dev, *prev;
+ struct net_device *dev, *prev;
for (dev = wandev->dev, prev = NULL;
dev && strcmp(name, dev->name);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)