summaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_route.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 /net/ax25/ax25_route.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 'net/ax25/ax25_route.h')
-rw-r--r--net/ax25/ax25_route.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/ax25/ax25_route.h b/net/ax25/ax25_route.h
new file mode 100644
index 000000000..edcb41a6e
--- /dev/null
+++ b/net/ax25/ax25_route.h
@@ -0,0 +1,25 @@
+#ifndef _AX25_ROUTE_H
+#define _AX25_ROUTE_H
+
+struct ax25_route {
+ struct ax25_route *next;
+ ax25_path_t path;
+ struct net_device *dev;
+ char ip_mode;
+};
+
+extern void ax25_rt_device_down(struct net_device*);
+extern int ax25_rt_ioctl(unsigned int, void*);
+extern int ax25_rt_get_info(char*, char**, off_t, int);
+extern struct net_device* ax25_rt_set_addr(ax25_addr_t*, ax25_addr_t*, struct net_device*, struct net_device*);
+extern int ax25_rt_autobind(ax25_cb*, ax25_address*);
+extern int ax25_rt_fillin_dev(ax25_cb*, ax25_address*);
+extern char ax25_rt_mode_get(ax25_address*);
+extern struct ax25_route* ax25_find_route(ax25_address*);
+
+extern int ax25_add_route(ax25_path_t*, struct net_device*);
+extern int ax25_del_route(ax25_address*);
+extern int ax25_ipopt_route(ax25_address*, unsigned char);
+void ax25_rt_free(void);
+
+#endif