Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip_fw_nat64.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | struct ipfw_nat64lsn_stats { | ||||
uint64_t _reserved[4]; | uint64_t _reserved[4]; | ||||
}; | }; | ||||
#define NAT64_LOG 0x0001 /* Enable logging via BPF */ | #define NAT64_LOG 0x0001 /* Enable logging via BPF */ | ||||
#define NAT64_ALLOW_PRIVATE 0x0002 /* Allow private IPv4 address | #define NAT64_ALLOW_PRIVATE 0x0002 /* Allow private IPv4 address | ||||
* translation | * translation | ||||
*/ | */ | ||||
#define NAT64LSN_ALLOW_SWAPCONF 0x0004 /* Allow configuration exchange | |||||
* between NAT64LSN instances | |||||
* during the sets swapping. | |||||
*/ | |||||
typedef struct _ipfw_nat64stl_cfg { | typedef struct _ipfw_nat64stl_cfg { | ||||
char name[64]; /* NAT name */ | char name[64]; /* NAT name */ | ||||
ipfw_obj_ntlv ntlv6; /* object name tlv */ | ipfw_obj_ntlv ntlv6; /* object name tlv */ | ||||
ipfw_obj_ntlv ntlv4; /* object name tlv */ | ipfw_obj_ntlv ntlv4; /* object name tlv */ | ||||
struct in6_addr prefix6; /* NAT64 prefix */ | struct in6_addr prefix6; /* NAT64 prefix */ | ||||
uint8_t plen6; /* Prefix length */ | uint8_t plen6; /* Prefix length */ | ||||
uint8_t set; /* Named instance set [0..31] */ | uint8_t set; /* Named instance set [0..31] */ | ||||
uint8_t spare[2]; | uint8_t spare[2]; | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |