|
@@ -12,6 +12,7 @@
|
|
#include <linux/socket.h>
|
|
#include <linux/socket.h>
|
|
#include <linux/in.h>
|
|
#include <linux/in.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
|
|
+#include <linux/module.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/timer.h>
|
|
#include <linux/timer.h>
|
|
@@ -74,6 +75,8 @@ int ax25_protocol_register(unsigned int pid,
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+EXPORT_SYMBOL(ax25_protocol_register);
|
|
|
|
+
|
|
void ax25_protocol_release(unsigned int pid)
|
|
void ax25_protocol_release(unsigned int pid)
|
|
{
|
|
{
|
|
struct protocol_struct *s, *protocol;
|
|
struct protocol_struct *s, *protocol;
|
|
@@ -106,6 +109,8 @@ void ax25_protocol_release(unsigned int pid)
|
|
write_unlock(&protocol_list_lock);
|
|
write_unlock(&protocol_list_lock);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+EXPORT_SYMBOL(ax25_protocol_release);
|
|
|
|
+
|
|
int ax25_linkfail_register(void (*func)(ax25_cb *, int))
|
|
int ax25_linkfail_register(void (*func)(ax25_cb *, int))
|
|
{
|
|
{
|
|
struct linkfail_struct *linkfail;
|
|
struct linkfail_struct *linkfail;
|
|
@@ -123,6 +128,8 @@ int ax25_linkfail_register(void (*func)(ax25_cb *, int))
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+EXPORT_SYMBOL(ax25_linkfail_register);
|
|
|
|
+
|
|
void ax25_linkfail_release(void (*func)(ax25_cb *, int))
|
|
void ax25_linkfail_release(void (*func)(ax25_cb *, int))
|
|
{
|
|
{
|
|
struct linkfail_struct *s, *linkfail;
|
|
struct linkfail_struct *s, *linkfail;
|
|
@@ -155,6 +162,8 @@ void ax25_linkfail_release(void (*func)(ax25_cb *, int))
|
|
spin_unlock_bh(&linkfail_lock);
|
|
spin_unlock_bh(&linkfail_lock);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+EXPORT_SYMBOL(ax25_linkfail_release);
|
|
|
|
+
|
|
int ax25_listen_register(ax25_address *callsign, struct net_device *dev)
|
|
int ax25_listen_register(ax25_address *callsign, struct net_device *dev)
|
|
{
|
|
{
|
|
struct listen_struct *listen;
|
|
struct listen_struct *listen;
|
|
@@ -176,6 +185,8 @@ int ax25_listen_register(ax25_address *callsign, struct net_device *dev)
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+EXPORT_SYMBOL(ax25_listen_register);
|
|
|
|
+
|
|
void ax25_listen_release(ax25_address *callsign, struct net_device *dev)
|
|
void ax25_listen_release(ax25_address *callsign, struct net_device *dev)
|
|
{
|
|
{
|
|
struct listen_struct *s, *listen;
|
|
struct listen_struct *s, *listen;
|
|
@@ -208,6 +219,8 @@ void ax25_listen_release(ax25_address *callsign, struct net_device *dev)
|
|
spin_unlock_bh(&listen_lock);
|
|
spin_unlock_bh(&listen_lock);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+EXPORT_SYMBOL(ax25_listen_release);
|
|
|
|
+
|
|
int (*ax25_protocol_function(unsigned int pid))(struct sk_buff *, ax25_cb *)
|
|
int (*ax25_protocol_function(unsigned int pid))(struct sk_buff *, ax25_cb *)
|
|
{
|
|
{
|
|
int (*res)(struct sk_buff *, ax25_cb *) = NULL;
|
|
int (*res)(struct sk_buff *, ax25_cb *) = NULL;
|