1345264Sae/*- 2345264Sae * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3345264Sae * 4345264Sae * Copyright (c) 2019 Yandex LLC 5345264Sae * Copyright (c) 2019 Andrey V. Elsukov <ae@FreeBSD.org> 6345264Sae * Copyright (c) 2019 Boris N. Lytochkin <lytboris@gmail.com> 7345264Sae * 8345264Sae * Redistribution and use in source and binary forms, with or without 9345264Sae * modification, are permitted provided that the following conditions 10345264Sae * are met: 11345264Sae * 12345264Sae * 1. Redistributions of source code must retain the above copyright 13345264Sae * notice, this list of conditions and the following disclaimer. 14345264Sae * 2. Redistributions in binary form must reproduce the above copyright 15345264Sae * notice, this list of conditions and the following disclaimer in the 16345264Sae * documentation and/or other materials provided with the distribution. 17345264Sae * 18345264Sae * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19345264Sae * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20345264Sae * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21345264Sae * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22345264Sae * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23345264Sae * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24345264Sae * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25345264Sae * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26345264Sae * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27345264Sae * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28345264Sae * 29345264Sae * $FreeBSD: stable/11/sys/netpfil/ipfw/nat64/nat64clat.h 346212 2019-04-14 12:39:09Z ae $ 30345264Sae */ 31345264Sae 32345264Sae#ifndef _IP_FW_NAT64CLAT_H_ 33345264Sae#define _IP_FW_NAT64CLAT_H_ 34345264Sae 35345264Sae#include "ip_fw_nat64.h" 36345264Sae#include "nat64_translate.h" 37345264Sae 38345264Saestruct nat64clat_cfg { 39345264Sae struct named_object no; 40345264Sae 41345264Sae struct nat64_config base; 42345264Sae#define NAT64CLAT_FLAGSMASK \ 43345264Sae (NAT64_LOG | NAT64_ALLOW_PRIVATE) /* flags to pass to userland */ 44345264Sae char name[64]; 45345264Sae}; 46345264Sae 47345264SaeVNET_DECLARE(uint16_t, nat64clat_eid); 48345264Sae#define V_nat64clat_eid VNET(nat64clat_eid) 49345264Sae#define IPFW_TLV_NAT64CLAT_NAME IPFW_TLV_EACTION_NAME(V_nat64clat_eid) 50345264Sae 51345264Saeint ipfw_nat64clat(struct ip_fw_chain *chain, struct ip_fw_args *args, 52345264Sae ipfw_insn *cmd, int *done); 53345264Sae 54345264Sae#endif 55