aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/interceptor/platform_interceptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/interceptor/platform_interceptor.h')
-rw-r--r--drivers/interceptor/platform_interceptor.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/interceptor/platform_interceptor.h b/drivers/interceptor/platform_interceptor.h
new file mode 100644
index 0000000..2813cca
--- /dev/null
+++ b/drivers/interceptor/platform_interceptor.h
@@ -0,0 +1,34 @@
+/* Netfilter Driver for IPSec VPN Client
+ *
+ * Copyright(c) 2012 Samsung Electronics
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/*
+ * platform_interceptor.h
+ *
+ * Linux interceptor specific defines for the Interceptor API.
+ *
+ */
+
+#ifndef SSH_PLATFORM_INTERCEPTOR_H
+
+#define SSH_PLATFORM_INTERCEPTOR_H 1
+
+#ifdef KERNEL
+#ifndef KERNEL_INTERCEPTOR_USE_FUNCTIONS
+
+#define ssh_interceptor_packet_len(pp) \
+ ((size_t)((SshInterceptorInternalPacket)(pp))->skb->len)
+
+#include "linux_params.h"
+#include "linux_packet_internal.h"
+
+#endif /* KERNEL_INTERCEPTOR_USE_FUNCTIONS */
+#endif /* KERNEL */
+
+#endif /* SSH_PLATFORM_INTERCEPTOR_H */