removed old FreeS/WAN cvs revision entries
[strongswan.git] / src / libfreeswan / ipsec_rcv.h
1 /*
2 *
3 * Copyright (C) 1996, 1997 John Ioannidis.
4 * Copyright (C) 1998, 1999, 2000, 2001 Richard Guy Briggs.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * RCSID $Id: ipsec_rcv.h,v 1.1 2004/03/15 20:35:25 as Exp $
17 */
18
19 #define DB_RX_PKTRX 0x0001
20 #define DB_RX_PKTRX2 0x0002
21 #define DB_RX_DMP 0x0004
22 #define DB_RX_IPSA 0x0010
23 #define DB_RX_XF 0x0020
24 #define DB_RX_IPAD 0x0040
25 #define DB_RX_INAU 0x0080
26 #define DB_RX_OINFO 0x0100
27 #define DB_RX_OINFO2 0x0200
28 #define DB_RX_OH 0x0400
29 #define DB_RX_REPLAY 0x0800
30
31 #ifdef __KERNEL__
32 /* struct options; */
33
34 #define __NO_VERSION__
35 #include <linux/module.h>
36 #include <linux/config.h> /* for CONFIG_IP_FORWARD */
37 #include <linux/version.h>
38 #include <freeswan.h>
39
40 #define IPSEC_BIRTH_TEMPLATE_MAXLEN 256
41
42 struct ipsec_birth_reply {
43 int packet_template_len;
44 unsigned char packet_template[IPSEC_BIRTH_TEMPLATE_MAXLEN];
45 };
46
47 extern struct ipsec_birth_reply ipsec_ipv4_birth_packet;
48 extern struct ipsec_birth_reply ipsec_ipv6_birth_packet;
49
50 extern int
51 #ifdef PROTO_HANDLER_SINGLE_PARM
52 ipsec_rcv(struct sk_buff *skb);
53 #else /* PROTO_HANDLER_SINGLE_PARM */
54 ipsec_rcv(struct sk_buff *skb,
55 #ifdef NET_21
56 unsigned short xlen);
57 #else /* NET_21 */
58 struct device *dev,
59 struct options *opt,
60 __u32 daddr,
61 unsigned short len,
62 __u32 saddr,
63 int redo,
64 struct inet_protocol *protocol);
65 #endif /* NET_21 */
66 #endif /* PROTO_HANDLER_SINGLE_PARM */
67
68 #ifdef CONFIG_IPSEC_DEBUG
69 extern int debug_rcv;
70 #endif /* CONFIG_IPSEC_DEBUG */
71 extern int sysctl_ipsec_inbound_policy_check;
72 #endif /* __KERNEL__ */