1181627Svanhu/*- 2181627Svanhu * Copyright (c) 2008 The FreeBSD Project. 3181627Svanhu * All rights reserved. 4181627Svanhu * 5181627Svanhu * Redistribution and use in source and binary forms, with or without 6181627Svanhu * modification, are permitted provided that the following conditions 7181627Svanhu * are met: 8181627Svanhu * 9181627Svanhu * 1. Redistributions of source code must retain the above copyright 10181627Svanhu * notice, this list of conditions and the following disclaimer. 11181627Svanhu * 2. Redistributions in binary form must reproduce the above copyright 12181627Svanhu * notice, this list of conditions and the following disclaimer in the 13181627Svanhu * documentation and/or other materials provided with the distribution. 14181627Svanhu * 15181627Svanhu * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16181627Svanhu * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17181627Svanhu * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18181627Svanhu * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19181627Svanhu * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20181627Svanhu * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21181627Svanhu * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22181627Svanhu * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23181627Svanhu * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24181627Svanhu * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25181627Svanhu * SUCH DAMAGE. 26181627Svanhu * 27181627Svanhu * $FreeBSD: stable/11/sys/net/if_enc.h 322741 2017-08-21 09:03:20Z ae $ 28181627Svanhu */ 29181627Svanhu 30181627Svanhu#ifndef _NET_IF_ENC_H 31181627Svanhu#define _NET_IF_ENC_H 32181627Svanhu 33291292Saestruct ipsec_ctx_data { 34291292Sae struct mbuf **mp; 35291292Sae struct secasvar *sav; 36322741Sae struct inpcb *inp; 37291292Sae uint8_t af; 38291292Sae#define IPSEC_ENC_BEFORE 0x01 39291292Sae#define IPSEC_ENC_AFTER 0x02 40291292Sae uint8_t enc; 41291292Sae}; 42181627Svanhu 43181627Svanhu#endif /* _NET_IF_ENC_H */ 44