The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netipsec/ah_var.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: ah_var.h,v 1.4 2008/04/23 06:09:05 thorpej Exp $       */
    2 /*      $FreeBSD: src/sys/netipsec/ah_var.h,v 1.1.4.1 2003/01/24 05:11:35 sam Exp $     */
    3 /*      $OpenBSD: ip_ah.h,v 1.29 2002/06/09 16:26:10 itojun Exp $       */
    4 /*
    5  * The authors of this code are John Ioannidis (ji@tla.org),
    6  * Angelos D. Keromytis (kermit@csd.uch.gr) and
    7  * Niels Provos (provos@physnet.uni-hamburg.de).
    8  *
    9  * The original version of this code was written by John Ioannidis
   10  * for BSD/OS in Athens, Greece, in November 1995.
   11  *
   12  * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996,
   13  * by Angelos D. Keromytis.
   14  *
   15  * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis
   16  * and Niels Provos.
   17  *
   18  * Additional features in 1999 by Angelos D. Keromytis.
   19  *
   20  * Copyright (C) 1995, 1996, 1997, 1998, 1999 John Ioannidis,
   21  * Angelos D. Keromytis and Niels Provos.
   22  * Copyright (c) 2001 Angelos D. Keromytis.
   23  *
   24  * Permission to use, copy, and modify this software with or without fee
   25  * is hereby granted, provided that this entire notice is included in
   26  * all copies of any software which is or includes a copy or
   27  * modification of this software.
   28  * You may use this code under the GNU public license if you so wish. Please
   29  * contribute changes back to the authors under this freer than GPL license
   30  * so that we may further the use of strong encryption without limitations to
   31  * all.
   32  *
   33  * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
   34  * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
   35  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
   36  * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
   37  * PURPOSE.
   38  */
   39 
   40 #ifndef _NETIPSEC_AH_VAR_H_
   41 #define _NETIPSEC_AH_VAR_H_
   42 
   43 /*
   44  * These define the algorithm indices into the histogram.  They're
   45  * presently based on the PF_KEY v2 protocol values which is bogus;
   46  * they should be decoupled from the protocol at which time we can
   47  * pack them and reduce the size of the array to a minimum.
   48  */
   49 #define AH_ALG_MAX      16
   50 
   51 #define AH_STAT_HDROPS          0       /* packet shorter than header shows */
   52 #define AH_STAT_NOPF            1       /* protocol family not supported */
   53 #define AH_STAT_NOTDB           2
   54 #define AH_STAT_BADKCR          3
   55 #define AH_STAT_BADAUTH         4
   56 #define AH_STAT_NOXFORM         5
   57 #define AH_STAT_QFULL           6
   58 #define AH_STAT_WRAP            7
   59 #define AH_STAT_REPLAY          8
   60 #define AH_STAT_BADAUTHL        9       /* bad authenticator length */
   61 #define AH_STAT_INPUT           10      /* input AH packets */
   62 #define AH_STAT_OUTPUT          11      /* output AH packets */
   63 #define AH_STAT_INVALID         12      /* trying to use an invalid TDB */
   64 #define AH_STAT_IBYTES          13      /* input bytes */
   65 #define AH_STAT_OBYTES          14      /* output bytes */
   66 #define AH_STAT_TOOBIG          15      /* packet got > than IP_MAXPACKET */
   67 #define AH_STAT_PDROPS          16      /* packet blocked due to policy */
   68 #define AH_STAT_CRYPTO          17      /* crypto processing failure */
   69 #define AH_STAT_TUNNEL          18      /* tunnel sanity check failure */
   70 #define AH_STAT_HIST            19      /* per-algorithm op count */
   71                 /* space for AH_ALG_MAX (16) counters */
   72 
   73 #define AH_NSTATS               35
   74 
   75 #ifdef _KERNEL
   76 extern  int ah_enable;
   77 extern  int ah_cleartos;
   78 #endif /* _KERNEL */
   79 #endif /* !_NETIPSEC_AH_VAR_H_ */

Cache object: 66a75f0500851c366a65f5d2e200f84e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.