enc.h revision 296373
1227825Stheraven/* @(#) $Header: /tcpdump/master/tcpdump/enc.h,v 1.1 2003-03-08 08:55:33 guy Exp $ (LBL) */
2227825Stheraven/* From $OpenBSD: if_enc.h,v 1.8 2001/06/25 05:14:00 angelos Exp $ */
3227825Stheraven/*
4227825Stheraven * The authors of this code are John Ioannidis (ji@tla.org),
5227825Stheraven * Angelos D. Keromytis (kermit@csd.uch.gr) and
6227825Stheraven * Niels Provos (provos@physnet.uni-hamburg.de).
7227825Stheraven *
8227825Stheraven * This code was written by John Ioannidis for BSD/OS in Athens, Greece,
9227825Stheraven * in November 1995.
10227825Stheraven *
11227825Stheraven * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996,
12227825Stheraven * by Angelos D. Keromytis.
13227825Stheraven *
14227825Stheraven * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis
15227825Stheraven * and Niels Provos.
16227825Stheraven *
17227825Stheraven * Copyright (C) 1995, 1996, 1997, 1998 by John Ioannidis, Angelos D. Keromytis
18227825Stheraven * and Niels Provos.
19227825Stheraven * Copyright (c) 2001, Angelos D. Keromytis.
20227825Stheraven *
21227825Stheraven * Permission to use, copy, and modify this software with or without fee
22227825Stheraven * is hereby granted, provided that this entire notice is included in
23227825Stheraven * all copies of any software which is or includes a copy or
24227825Stheraven * modification of this software.
25227825Stheraven * You may use this code under the GNU public license if you so wish. Please
26227825Stheraven * contribute changes back to the authors under this freer than GPL license
27227825Stheraven * so that we may further the use of strong encryption without limitations to
28227825Stheraven * all.
29227825Stheraven *
30227825Stheraven * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
31227825Stheraven * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
32227825Stheraven * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
33227825Stheraven * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
34227825Stheraven * PURPOSE.
35227825Stheraven */
36227825Stheraven
37227825Stheraven#define ENC_HDRLEN	12
38227825Stheraven
39227825Stheraven/* From $OpenBSD: mbuf.h,v 1.56 2002/01/25 15:50:23 art Exp $	*/
40227825Stheraven#define M_CONF		0x0400  /* packet was encrypted (ESP-transport) */
41227825Stheraven#define M_AUTH		0x0800  /* packet was authenticated (AH) */
42227825Stheraven
43227825Stheravenstruct enchdr {
44227825Stheraven	u_int32_t af;
45227825Stheraven	u_int32_t spi;
46227825Stheraven	u_int32_t flags;
47227825Stheraven};
48227825Stheraven