patch-2.1.44 linux/net/ax25/ax25_iface.c
Next file: linux/net/ax25/ax25_in.c
Previous file: linux/net/ax25/ax25_ds_timer.c
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Mon Jul 7 08:19:59 1997
- Orig file:
v2.1.43/linux/net/ax25/ax25_iface.c
- Orig date:
Thu May 29 21:53:11 1997
diff -u --recursive --new-file v2.1.43/linux/net/ax25/ax25_iface.c linux/net/ax25/ax25_iface.c
@@ -1,5 +1,5 @@
/*
- * AX.25 release 036
+ * AX.25 release 037
*
* This code REQUIRES 2.1.15 or higher/ NET3.038
*
@@ -44,7 +44,7 @@
static struct linkfail_struct {
struct linkfail_struct *next;
- void (*func)(ax25_address *, struct device *);
+ void (*func)(ax25_cb *, int);
} *linkfail_list = NULL;
static struct listen_struct {
@@ -114,7 +114,7 @@
restore_flags(flags);
}
-int ax25_linkfail_register(void (*func)(ax25_address *, struct device *))
+int ax25_linkfail_register(void (*func)(ax25_cb *, int))
{
struct linkfail_struct *linkfail;
unsigned long flags;
@@ -135,7 +135,7 @@
return 1;
}
-void ax25_linkfail_release(void (*func)(ax25_address *, struct device *))
+void ax25_linkfail_release(void (*func)(ax25_cb *, int))
{
struct linkfail_struct *s, *linkfail = linkfail_list;
unsigned long flags;
@@ -248,21 +248,12 @@
return 0;
}
-void ax25_link_failed(ax25_address *callsign, struct device *dev)
+void ax25_link_failed(ax25_cb *ax25, int reason)
{
struct linkfail_struct *linkfail;
for (linkfail = linkfail_list; linkfail != NULL; linkfail = linkfail->next)
- (linkfail->func)(callsign, dev);
-}
-
-/*
- * Return the state of an AX.25 link given source, destination, and
- * device.
- */
-int ax25_link_up(ax25_address *src, ax25_address *dest, ax25_digi *digi, struct device *dev)
-{
- return ax25_find_cb(src, dest, digi, dev) != NULL;
+ (linkfail->func)(ax25, reason);
}
int ax25_protocol_is_registered(unsigned int pid)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov