Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/nat64/nat64stl.h
| Show All 29 Lines | |||||
| #define _IP_FW_NAT64STL_H_ | #define _IP_FW_NAT64STL_H_ | ||||
| #include "ip_fw_nat64.h" | #include "ip_fw_nat64.h" | ||||
| #include "nat64_translate.h" | #include "nat64_translate.h" | ||||
| struct nat64stl_cfg { | struct nat64stl_cfg { | ||||
| struct named_object no; | struct named_object no; | ||||
| uint16_t map64; /* table with 6to4 mapping */ | uint32_t map64; /* table with 6to4 mapping */ | ||||
| uint16_t map46; /* table with 4to6 mapping */ | uint32_t map46; /* table with 4to6 mapping */ | ||||
| struct nat64_config base; | struct nat64_config base; | ||||
| #define NAT64STL_KIDX 0x0100 | #define NAT64STL_KIDX 0x0100 | ||||
| #define NAT64STL_46T 0x0200 | #define NAT64STL_46T 0x0200 | ||||
| #define NAT64STL_64T 0x0400 | #define NAT64STL_64T 0x0400 | ||||
| /* flags to pass to userland */ | /* flags to pass to userland */ | ||||
| #define NAT64STL_FLAGSMASK (NAT64_LOG | NAT64_ALLOW_PRIVATE) | #define NAT64STL_FLAGSMASK (NAT64_LOG | NAT64_ALLOW_PRIVATE) | ||||
| char name[64]; | char name[64]; | ||||
| }; | }; | ||||
| VNET_DECLARE(uint16_t, nat64stl_eid); | VNET_DECLARE(uint32_t, nat64stl_eid); | ||||
| #define V_nat64stl_eid VNET(nat64stl_eid) | #define V_nat64stl_eid VNET(nat64stl_eid) | ||||
| #define IPFW_TLV_NAT64STL_NAME IPFW_TLV_EACTION_NAME(V_nat64stl_eid) | #define IPFW_TLV_NAT64STL_NAME IPFW_TLV_EACTION_NAME(V_nat64stl_eid) | ||||
| int ipfw_nat64stl(struct ip_fw_chain *chain, struct ip_fw_args *args, | int ipfw_nat64stl(struct ip_fw_chain *chain, struct ip_fw_args *args, | ||||
| ipfw_insn *cmd, int *done); | ipfw_insn *cmd, int *done); | ||||
| #endif | #endif | ||||