patch-2.3.14 linux/net/ax25/af_ax25.c
Next file: linux/net/ax25/ax25_dev.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Aug 18 11:38:48 1999
- Orig file:
v2.3.13/linux/net/ax25/af_ax25.c
- Orig date:
Thu Jul 8 15:42:21 1999
diff -u --recursive --new-file v2.3.13/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -188,7 +188,7 @@
/*
* Kill all bound sockets on a dropped device.
*/
-static void ax25_kill_by_device(struct device *dev)
+static void ax25_kill_by_device(struct net_device *dev)
{
ax25_dev *ax25_dev;
ax25_cb *s;
@@ -209,7 +209,7 @@
*/
static int ax25_device_event(struct notifier_block *this,unsigned long event, void *ptr)
{
- struct device *dev = (struct device *)ptr;
+ struct net_device *dev = (struct net_device *)ptr;
/* Reject non AX.25 devices */
if (dev->type != ARPHRD_AX25)
@@ -251,7 +251,7 @@
* Find a socket that wants to accept the SABM we have just
* received.
*/
-struct sock *ax25_find_listener(ax25_address *addr, int digi, struct device *dev, int type)
+struct sock *ax25_find_listener(ax25_address *addr, int digi, struct net_device *dev, int type)
{
unsigned long flags;
ax25_cb *s;
@@ -302,7 +302,7 @@
* Find an AX.25 control block given both ends. It will only pick up
* floating AX.25 control blocks or non Raw socket bound control blocks.
*/
-ax25_cb *ax25_find_cb(ax25_address *src_addr, ax25_address *dest_addr, ax25_digi *digi, struct device *dev)
+ax25_cb *ax25_find_cb(ax25_address *src_addr, ax25_address *dest_addr, ax25_digi *digi, struct net_device *dev)
{
ax25_cb *s;
unsigned long flags;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)