1 1.8 msaitoh /* $NetBSD: ipsec_var.h,v 1.8 2018/08/22 01:05:24 msaitoh Exp $ */ 2 1.6 maxv /* $FreeBSD: ipsec.h,v 1.2.4.2 2004/02/14 22:23:23 bms Exp $ */ 3 1.1 jonathan 4 1.1 jonathan /*- 5 1.1 jonathan * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting 6 1.1 jonathan * All rights reserved. 7 1.1 jonathan * 8 1.1 jonathan * Redistribution and use in source and binary forms, with or without 9 1.1 jonathan * modification, are permitted provided that the following conditions 10 1.1 jonathan * are met: 11 1.1 jonathan * 1. Redistributions of source code must retain the above copyright 12 1.1 jonathan * notice, this list of conditions and the following disclaimer. 13 1.1 jonathan * 2. Redistributions in binary form must reproduce the above copyright 14 1.1 jonathan * notice, this list of conditions and the following disclaimer in the 15 1.1 jonathan * documentation and/or other materials provided with the distribution. 16 1.1 jonathan * 17 1.1 jonathan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18 1.1 jonathan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 1.1 jonathan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 1.1 jonathan * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21 1.1 jonathan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 1.1 jonathan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 1.1 jonathan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 1.1 jonathan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 1.1 jonathan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 1.1 jonathan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 1.1 jonathan * SUCH DAMAGE. 28 1.1 jonathan * 29 1.1 jonathan * $FreeBSD: src/tools/tools/crypto/ipsecstats.c,v 1.1.4.1 2003/06/03 00:13:13 sam Exp $ 30 1.1 jonathan */ 31 1.1 jonathan 32 1.1 jonathan #ifndef _NETIPSEC_IPSEC_VAR_H_ 33 1.1 jonathan #define _NETIPSEC_IPSEC_VAR_H_ 34 1.1 jonathan 35 1.5 thorpej /* 36 1.5 thorpej * statistics for ipsec processing 37 1.5 thorpej * Each counter is an unsigned 64-bit value. 38 1.5 thorpej */ 39 1.5 thorpej #define IPSEC_STAT_IN_POLVIO 0 /* input: sec policy violation */ 40 1.5 thorpej #define IPSEC_STAT_OUT_POLVIO 1 /* output: sec policy violation */ 41 1.5 thorpej #define IPSEC_STAT_OUT_NOSA 2 /* output: SA unavailable */ 42 1.5 thorpej #define IPSEC_STAT_OUT_NOMEM 3 /* output: no memory available */ 43 1.5 thorpej #define IPSEC_STAT_OUT_NOROUTE 4 /* output: no route available */ 44 1.5 thorpej #define IPSEC_STAT_OUT_INVAL 5 /* output: generic error */ 45 1.5 thorpej #define IPSEC_STAT_OUT_BUNDLESA 6 /* output: bundled SA processed */ 46 1.5 thorpej #define IPSEC_STAT_MBCOALESCED 7 /* mbufs coalesced during clone */ 47 1.5 thorpej #define IPSEC_STAT_CLCOALESCED 8 /* clusters coalesced during clone */ 48 1.5 thorpej #define IPSEC_STAT_CLCOPIED 9 /* clusters copied during clone */ 49 1.5 thorpej #define IPSEC_STAT_MBINSERTED 10 /* mbufs inserted during makespace */ 50 1.5 thorpej #define IPSEC_STAT_SPDCACHELOOKUP 11 51 1.5 thorpej #define IPSEC_STAT_SPDCACHEMISS 12 52 1.5 thorpej #define IPSEC_STAT_INPUT_FRONT 13 53 1.5 thorpej #define IPSEC_STAT_INPUT_MIDDLE 14 54 1.5 thorpej #define IPSEC_STAT_INPUT_END 15 55 1.1 jonathan 56 1.5 thorpej #define IPSEC_NSTATS 16 57 1.1 jonathan 58 1.1 jonathan /* 59 1.1 jonathan * Names for IPsec & Key sysctl objects 60 1.1 jonathan */ 61 1.2 atatat #define IPSECCTL_STATS 1 /* KAME compat stats */ 62 1.1 jonathan #define IPSECCTL_DEF_POLICY 2 63 1.1 jonathan #define IPSECCTL_DEF_ESP_TRANSLEV 3 /* int; ESP transport mode */ 64 1.1 jonathan #define IPSECCTL_DEF_ESP_NETLEV 4 /* int; ESP tunnel mode */ 65 1.1 jonathan #define IPSECCTL_DEF_AH_TRANSLEV 5 /* int; AH transport mode */ 66 1.1 jonathan #define IPSECCTL_DEF_AH_NETLEV 6 /* int; AH tunnel mode */ 67 1.1 jonathan #if 0 /* obsolete, do not reuse */ 68 1.1 jonathan #define IPSECCTL_INBOUND_CALL_IKE 7 69 1.1 jonathan #endif 70 1.1 jonathan #define IPSECCTL_AH_CLEARTOS 8 71 1.1 jonathan #define IPSECCTL_AH_OFFSETMASK 9 72 1.1 jonathan #define IPSECCTL_DFBIT 10 73 1.1 jonathan #define IPSECCTL_ECN 11 74 1.1 jonathan #define IPSECCTL_DEBUG 12 75 1.1 jonathan #define IPSECCTL_ESP_RANDPAD 13 76 1.1 jonathan 77 1.4 elad #endif /* !_NETIPSEC_IPSEC_VAR_H_ */ 78