root/net/if_enc.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


    1 /* $OpenBSD: if_enc.h,v 1.8 2001/06/25 05:14:00 angelos Exp $ */
    2 /*
    3  * The authors of this code are John Ioannidis (ji@tla.org),
    4  * Angelos D. Keromytis (kermit@csd.uch.gr) and 
    5  * Niels Provos (provos@physnet.uni-hamburg.de).
    6  *
    7  * This code was written by John Ioannidis for BSD/OS in Athens, Greece, 
    8  * in November 1995.
    9  *
   10  * Ported to OpenBSD and NetBSD, with additional transforms, in December 1996,
   11  * by Angelos D. Keromytis.
   12  *
   13  * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis
   14  * and Niels Provos.
   15  *
   16  * Copyright (C) 1995, 1996, 1997, 1998 by John Ioannidis, Angelos D. Keromytis
   17  * and Niels Provos.
   18  * Copyright (c) 2001, Angelos D. Keromytis.
   19  *
   20  * Permission to use, copy, and modify this software with or without fee
   21  * is hereby granted, provided that this entire notice is included in
   22  * all copies of any software which is or includes a copy or
   23  * modification of this software. 
   24  * You may use this code under the GNU public license if you so wish. Please
   25  * contribute changes back to the authors under this freer than GPL license
   26  * so that we may further the use of strong encryption without limitations to
   27  * all.
   28  *
   29  * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
   30  * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
   31  * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
   32  * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
   33  * PURPOSE.
   34  */
   35 
   36 #ifndef _NET_IF_ENC_H_
   37 #define _NET_IF_ENC_H_
   38 
   39 #define ENCMTU          (1024+512)
   40 #define ENC_HDRLEN      12
   41 
   42 struct enc_softc {
   43         struct ifnet            sc_if;  /* the interface */
   44 };
   45 
   46 struct enchdr {
   47         u_int32_t af;
   48         u_int32_t spi;
   49         u_int32_t flags;
   50 };
   51 
   52 extern struct enc_softc encif[];
   53 #endif /* _NET_IF_ENC_H_ */

/* [<][>][^][v][top][bottom][index][help] */