summaryrefslogtreecommitdiffstats
path: root/include/net/ax25_uid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ax25_uid.h')
-rw-r--r--include/net/ax25_uid.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/net/ax25_uid.h b/include/net/ax25_uid.h
new file mode 100644
index 000000000..ae40ff0fd
--- /dev/null
+++ b/include/net/ax25_uid.h
@@ -0,0 +1,33 @@
+/*
+ * This code REQUIRES 1.2.1 or higher/ NET3.029
+ *
+ * This module:
+ * This module is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#ifndef _AX25_UID_H
+#define _AX25_UID_H
+
+typedef struct ax25_uid_assoc {
+ struct ax25_uid_assoc *next;
+ uid_t uid;
+ ax25_address call;
+ char device[IFNAMSIZ];
+} ax25_uid_assoc;
+
+typedef enum {
+ AX25_UID_POLICY_ARBITRARY_CALLSIGN,
+ AX25_UID_POLICY_GIVEN_CALLSIGN,
+ AX25_UID_POLICY_ANY_SSID
+} t_ax25_uid_policy;
+
+extern t_ax25_uid_policy ax25_uid_policy;
+extern int ax25_cs_get_info(char *, char **, off_t, int);
+extern int ax25_uid_ioctl(int, struct sockaddr_ax25*);
+extern ax25_address* ax25_find_by_uid(uid_t uid);
+extern ax25_address* ax25_find_match_for_uid(uid_t uid, ax25_address *providec, char *device);
+
+#endif