enc.h revision 127668
1127668Sbms/* @(#) $Header: /tcpdump/master/tcpdump/enc.h,v 1.1 2003/03/08 08:55:33 guy Exp $ (LBL) */ 2127668Sbms/* From $OpenBSD: if_enc.h,v 1.8 2001/06/25 05:14:00 angelos Exp $ */ 3127668Sbms/* 4127668Sbms * The authors of this code are John Ioannidis (ji@tla.org), 5127668Sbms * Angelos D. Keromytis (kermit@csd.uch.gr) and 6127668Sbms * Niels Provos (provos@physnet.uni-hamburg.de). 7127668Sbms * 8127668Sbms * This code was written by John Ioannidis for BSD/OS in Athens, Greece, 9127668Sbms * in November 1995. 10127668Sbms * 11127668Sbms * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996, 12127668Sbms * by Angelos D. Keromytis. 13127668Sbms * 14127668Sbms * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis 15127668Sbms * and Niels Provos. 16127668Sbms * 17127668Sbms * Copyright (C) 1995, 1996, 1997, 1998 by John Ioannidis, Angelos D. Keromytis 18127668Sbms * and Niels Provos. 19127668Sbms * Copyright (c) 2001, Angelos D. Keromytis. 20127668Sbms * 21127668Sbms * Permission to use, copy, and modify this software with or without fee 22127668Sbms * is hereby granted, provided that this entire notice is included in 23127668Sbms * all copies of any software which is or includes a copy or 24127668Sbms * modification of this software. 25127668Sbms * You may use this code under the GNU public license if you so wish. Please 26127668Sbms * contribute changes back to the authors under this freer than GPL license 27127668Sbms * so that we may further the use of strong encryption without limitations to 28127668Sbms * all. 29127668Sbms * 30127668Sbms * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR 31127668Sbms * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY 32127668Sbms * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE 33127668Sbms * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR 34127668Sbms * PURPOSE. 35127668Sbms */ 36127668Sbms 37127668Sbms#define ENC_HDRLEN 12 38127668Sbms 39127668Sbms/* From $OpenBSD: mbuf.h,v 1.56 2002/01/25 15:50:23 art Exp $ */ 40127668Sbms#define M_CONF 0x0400 /* packet was encrypted (ESP-transport) */ 41127668Sbms#define M_AUTH 0x0800 /* packet was authenticated (AH) */ 42127668Sbms 43127668Sbmsstruct enchdr { 44127668Sbms u_int32_t af; 45127668Sbms u_int32_t spi; 46127668Sbms u_int32_t flags; 47127668Sbms}; 48