3 * Copyright (C) 1996, 1997 John Ioannidis.
4 * Copyright (C) 1998, 1999, 2000, 2001 Richard Guy Briggs.
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>.
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
16 * RCSID $Id: ipsec_rcv.h,v 1.1 2004/03/15 20:35:25 as Exp $
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
34 #define __NO_VERSION__
35 #include <linux/module.h>
36 #include <linux/config.h> /* for CONFIG_IP_FORWARD */
37 #include <linux/version.h>
40 #define IPSEC_BIRTH_TEMPLATE_MAXLEN 256
42 struct ipsec_birth_reply
{
43 int packet_template_len
;
44 unsigned char packet_template
[IPSEC_BIRTH_TEMPLATE_MAXLEN
];
47 extern struct ipsec_birth_reply ipsec_ipv4_birth_packet
;
48 extern struct ipsec_birth_reply ipsec_ipv6_birth_packet
;
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
,
64 struct inet_protocol
*protocol
);
66 #endif /* PROTO_HANDLER_SINGLE_PARM */
68 #ifdef CONFIG_IPSEC_DEBUG
70 #endif /* CONFIG_IPSEC_DEBUG */
71 extern int sysctl_ipsec_inbound_policy_check
;
72 #endif /* __KERNEL__ */