|
@@ -86,8 +86,8 @@ static int wanrouter_device_del_if(struct wan_device *wandev,
|
|
|
|
|
|
static struct wan_device *wanrouter_find_device(char *name);
|
|
static struct wan_device *wanrouter_find_device(char *name);
|
|
static int wanrouter_delete_interface(struct wan_device *wandev, char *name);
|
|
static int wanrouter_delete_interface(struct wan_device *wandev, char *name);
|
|
-void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
|
|
|
|
-void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
|
|
|
|
|
|
+static void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
|
|
|
|
+static void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -104,8 +104,8 @@ struct wan_device* wanrouter_router_devlist; /* list of registered devices */
|
|
* Organize Unique Identifiers for encapsulation/decapsulation
|
|
* Organize Unique Identifiers for encapsulation/decapsulation
|
|
*/
|
|
*/
|
|
|
|
|
|
-static unsigned char wanrouter_oui_ether[] = { 0x00, 0x00, 0x00 };
|
|
|
|
#if 0
|
|
#if 0
|
|
|
|
+static unsigned char wanrouter_oui_ether[] = { 0x00, 0x00, 0x00 };
|
|
static unsigned char wanrouter_oui_802_2[] = { 0x00, 0x80, 0xC2 };
|
|
static unsigned char wanrouter_oui_802_2[] = { 0x00, 0x80, 0xC2 };
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -246,6 +246,8 @@ int unregister_wan_device(char *name)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Encapsulate packet.
|
|
* Encapsulate packet.
|
|
*
|
|
*
|
|
@@ -341,6 +343,7 @@ __be16 wanrouter_type_trans(struct sk_buff *skb, struct net_device *dev)
|
|
return ethertype;
|
|
return ethertype;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#endif /* 0 */
|
|
|
|
|
|
/*
|
|
/*
|
|
* WAN device IOCTL.
|
|
* WAN device IOCTL.
|
|
@@ -799,23 +802,19 @@ static int wanrouter_delete_interface(struct wan_device *wandev, char *name)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
|
|
|
|
|
|
+static void lock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
|
|
{
|
|
{
|
|
spin_lock_irqsave(lock, *smp_flags);
|
|
spin_lock_irqsave(lock, *smp_flags);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
|
|
|
|
|
|
+static void unlock_adapter_irq(spinlock_t *lock, unsigned long *smp_flags)
|
|
{
|
|
{
|
|
spin_unlock_irqrestore(lock, *smp_flags);
|
|
spin_unlock_irqrestore(lock, *smp_flags);
|
|
}
|
|
}
|
|
|
|
|
|
EXPORT_SYMBOL(register_wan_device);
|
|
EXPORT_SYMBOL(register_wan_device);
|
|
EXPORT_SYMBOL(unregister_wan_device);
|
|
EXPORT_SYMBOL(unregister_wan_device);
|
|
-EXPORT_SYMBOL(wanrouter_encapsulate);
|
|
|
|
-EXPORT_SYMBOL(wanrouter_type_trans);
|
|
|
|
-EXPORT_SYMBOL(lock_adapter_irq);
|
|
|
|
-EXPORT_SYMBOL(unlock_adapter_irq);
|
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_LICENSE("GPL");
|
|
|
|
|