summaryrefslogtreecommitdiff
path: root/driver/gre.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/gre.h')
-rw-r--r--driver/gre.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/driver/gre.h b/driver/gre.h
new file mode 100644
index 00000000..2ca7f749
--- /dev/null
+++ b/driver/gre.h
@@ -0,0 +1,18 @@
+#ifndef __LINUX_GRE_H
+#define __LINUX_GRE_H
+
+#include <linux/skbuff.h>
+
+#define GREPROTO_CISCO 0
+#define GREPROTO_PPTP 1
+#define GREPROTO_MAX 2
+
+struct gre_protocol {
+ int (*handler)(struct sk_buff *skb);
+ void (*err_handler)(struct sk_buff *skb, u32 info);
+};
+
+int gre_add_protocol(struct gre_protocol *proto, u8 version);
+int gre_del_protocol(struct gre_protocol *proto, u8 version);
+
+#endif