JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 1 | /* @(#) $Header: /tcpdump/master/tcpdump/enc.h,v 1.1 2003-03-08 08:55:33 guy Exp $ (LBL) */ |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 2 | /* From $OpenBSD: if_enc.h,v 1.8 2001/06/25 05:14:00 angelos Exp $ */ |
| 3 | /* |
| 4 | * The authors of this code are John Ioannidis (ji@tla.org), |
| 5 | * Angelos D. Keromytis (kermit@csd.uch.gr) and |
| 6 | * Niels Provos (provos@physnet.uni-hamburg.de). |
| 7 | * |
| 8 | * This code was written by John Ioannidis for BSD/OS in Athens, Greece, |
| 9 | * in November 1995. |
| 10 | * |
| 11 | * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996, |
| 12 | * by Angelos D. Keromytis. |
| 13 | * |
| 14 | * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis |
| 15 | * and Niels Provos. |
| 16 | * |
| 17 | * Copyright (C) 1995, 1996, 1997, 1998 by John Ioannidis, Angelos D. Keromytis |
| 18 | * and Niels Provos. |
| 19 | * Copyright (c) 2001, Angelos D. Keromytis. |
| 20 | * |
| 21 | * Permission to use, copy, and modify this software with or without fee |
| 22 | * is hereby granted, provided that this entire notice is included in |
| 23 | * all copies of any software which is or includes a copy or |
| 24 | * modification of this software. |
| 25 | * You may use this code under the GNU public license if you so wish. Please |
| 26 | * contribute changes back to the authors under this freer than GPL license |
| 27 | * so that we may further the use of strong encryption without limitations to |
| 28 | * all. |
| 29 | * |
| 30 | * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR |
| 31 | * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY |
| 32 | * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE |
| 33 | * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR |
| 34 | * PURPOSE. |
| 35 | */ |
| 36 | |
| 37 | #define ENC_HDRLEN 12 |
| 38 | |
| 39 | /* From $OpenBSD: mbuf.h,v 1.56 2002/01/25 15:50:23 art Exp $ */ |
| 40 | #define M_CONF 0x0400 /* packet was encrypted (ESP-transport) */ |
| 41 | #define M_AUTH 0x0800 /* packet was authenticated (AH) */ |
| 42 | |
| 43 | struct enchdr { |
| 44 | u_int32_t af; |
| 45 | u_int32_t spi; |
| 46 | u_int32_t flags; |
| 47 | }; |