175115Sfenner/* $NetBSD: ah.h,v 1.12 2000/07/23 05:23:04 itojun Exp $ */ 275115Sfenner/* $KAME: ah.h,v 1.12 2000/07/20 17:41:01 itojun Exp $ */ 375115Sfenner 475115Sfenner/* 575115Sfenner * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 675115Sfenner * All rights reserved. 775115Sfenner * 875115Sfenner * Redistribution and use in source and binary forms, with or without 975115Sfenner * modification, are permitted provided that the following conditions 1075115Sfenner * are met: 1175115Sfenner * 1. Redistributions of source code must retain the above copyright 1275115Sfenner * notice, this list of conditions and the following disclaimer. 1375115Sfenner * 2. Redistributions in binary form must reproduce the above copyright 1475115Sfenner * notice, this list of conditions and the following disclaimer in the 1575115Sfenner * documentation and/or other materials provided with the distribution. 1675115Sfenner * 3. Neither the name of the project nor the names of its contributors 1775115Sfenner * may be used to endorse or promote products derived from this software 1875115Sfenner * without specific prior written permission. 1975115Sfenner * 2075115Sfenner * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 2175115Sfenner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2275115Sfenner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2375115Sfenner * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2475115Sfenner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2575115Sfenner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2675115Sfenner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2775115Sfenner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2875115Sfenner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2975115Sfenner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3075115Sfenner * SUCH DAMAGE. 3175115Sfenner */ 3275115Sfenner 3375115Sfenner/* 3475115Sfenner * RFC1826/2402 authentication header. 3575115Sfenner */ 3675115Sfenner 3775115Sfenner#ifndef _NETINET6_AH_H_ 3875115Sfenner#define _NETINET6_AH_H_ 3975115Sfenner 4075115Sfennerstruct ah { 41276788Sdelphij uint8_t ah_nxt; /* Next Header */ 42276788Sdelphij uint8_t ah_len; /* Length of data, in 32bit */ 43276788Sdelphij uint16_t ah_reserve; /* Reserved for future use */ 44276788Sdelphij uint32_t ah_spi; /* Security parameter index */ 4575115Sfenner /* variable size, 32bit bound*/ /* Authentication data */ 4675115Sfenner}; 4775115Sfenner 4875115Sfennerstruct newah { 49276788Sdelphij uint8_t ah_nxt; /* Next Header */ 50276788Sdelphij uint8_t ah_len; /* Length of data + 1, in 32bit */ 51276788Sdelphij uint16_t ah_reserve; /* Reserved for future use */ 52276788Sdelphij uint32_t ah_spi; /* Security parameter index */ 53276788Sdelphij uint32_t ah_seq; /* Sequence number field */ 5475115Sfenner /* variable size, 32bit bound*/ /* Authentication data */ 5575115Sfenner}; 5675115Sfenner 5775115Sfenner#endif /*_NETINET6_AH_H_*/ 58