summaryrefslogtreecommitdiffstats
path: root/include/net/ax25_uid.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-24 04:23:46 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-24 10:03:18 +0200
commite5067d7cd967cb17067de24a162306b79f432b20 (patch)
tree541f101762df32a5742bec354009986a96d8e564 /include/net/ax25_uid.h
parent86a981e836404006efc35881ebf3d5ae36925e82 (diff)
Import newax25-2.4.3.patch.1.bz2HEADnewax25-2.4.3-1
And cleanup the *.orig and *.rej files and whitespace errors that are part of the original patch. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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