ipsecesp.h revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _INET_IPSECESP_H
#define _INET_IPSECESP_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/* Named Dispatch Parameter Management Structure */
typedef struct ipsecespparam_s {
char *ipsecesp_param_name;
/*
* IPSECESP stack instances
*/
struct ipsecesp_stack {
struct ipsecespparam_s *ipsecesp_params;
/* Packet dropper for ESP drops. */
struct esp_kstats_s *esp_kstats;
/*
* Keysock instance of ESP. There can be only one per stack instance.
* Use casptr() on this because I don't set it until KEYSOCK_HELLO
* comes down.
* Paired up with the esp_pfkey_q is the esp_event, which will age SAs.
*/
};
typedef struct ipsecesp_stack ipsecesp_stack_t;
#endif /* _KERNEL */
/*
* For now, only provide "aligned" version of header.
* If aligned version is needed, we'll go with the naming conventions then.
*/
typedef struct esph {
} esph_t;
/* No need for "old" ESP, just point a uint32_t *. */
#ifdef __cplusplus
}
#endif
#endif /* _INET_IPSECESP_H */