enc.h revision 256281
110058Swollman/* @(#) $Header: /tcpdump/master/tcpdump/enc.h,v 1.1 2003-03-08 08:55:33 guy Exp $ (LBL) */
210058Swollman/* From $OpenBSD: if_enc.h,v 1.8 2001/06/25 05:14:00 angelos Exp $ */
310058Swollman/*
410058Swollman * The authors of this code are John Ioannidis (ji@tla.org),
510058Swollman * Angelos D. Keromytis (kermit@csd.uch.gr) and
610058Swollman * Niels Provos (provos@physnet.uni-hamburg.de).
710058Swollman *
810058Swollman * This code was written by John Ioannidis for BSD/OS in Athens, Greece,
910058Swollman * in November 1995.
1010058Swollman *
1110058Swollman * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996,
1210058Swollman * by Angelos D. Keromytis.
1310058Swollman *
1410058Swollman * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis
1510058Swollman * and Niels Provos.
1610058Swollman *
1710058Swollman * Copyright (C) 1995, 1996, 1997, 1998 by John Ioannidis, Angelos D. Keromytis
1810058Swollman * and Niels Provos.
1910058Swollman * Copyright (c) 2001, Angelos D. Keromytis.
2010058Swollman *
2110058Swollman * Permission to use, copy, and modify this software with or without fee
2210058Swollman * is hereby granted, provided that this entire notice is included in
2310058Swollman * all copies of any software which is or includes a copy or
2410058Swollman * modification of this software.
2510058Swollman * You may use this code under the GNU public license if you so wish. Please
2610058Swollman * contribute changes back to the authors under this freer than GPL license
2710058Swollman * so that we may further the use of strong encryption without limitations to
2810058Swollman * all.
2914585Sache *
3010058Swollman * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
3110058Swollman * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
3210058Swollman * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
3310058Swollman * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
3410058Swollman * PURPOSE.
3510058Swollman */
3610058Swollman
3710058Swollman#define ENC_HDRLEN	12
3810058Swollman
3910058Swollman/* From $OpenBSD: mbuf.h,v 1.56 2002/01/25 15:50:23 art Exp $	*/
4010058Swollman#define M_CONF		0x0400  /* packet was encrypted (ESP-transport) */
4110058Swollman#define M_AUTH		0x0800  /* packet was authenticated (AH) */
4210058Swollman
4310058Swollmanstruct enchdr {
4410058Swollman	u_int32_t af;
4510058Swollman	u_int32_t spi;
4610058Swollman	u_int32_t flags;
4710058Swollman};
4810058Swollman