Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/ip_fw_nat64.h
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | struct ipfw_nat64lsn_stats { | ||||
| uint64_t jmaxlen; /* Max queue length reached */ | uint64_t jmaxlen; /* Max queue length reached */ | ||||
| uint64_t jnomem; /* No memory to alloc queue item */ | uint64_t jnomem; /* No memory to alloc queue item */ | ||||
| uint64_t screated; /* Number of states created */ | uint64_t screated; /* Number of states created */ | ||||
| uint64_t sdeleted; /* Number of states deleted */ | uint64_t sdeleted; /* Number of states deleted */ | ||||
| uint64_t spgcreated; /* Number of portgroups created */ | uint64_t spgcreated; /* Number of portgroups created */ | ||||
| uint64_t spgdeleted; /* Number of portgroups deleted */ | uint64_t spgdeleted; /* Number of portgroups deleted */ | ||||
| uint64_t hostcount; /* Number of hosts */ | uint64_t hostcount; /* Number of hosts */ | ||||
| uint64_t tcpchunks; /* Number of TCP chunks */ | uint64_t tcpchunks; /* Number of TCP portgroups */ | ||||
| uint64_t udpchunks; /* Number of UDP chunks */ | uint64_t udpchunks; /* Number of UDP portgroups */ | ||||
| uint64_t icmpchunks; /* Number of ICMP chunks */ | uint64_t icmpchunks; /* Number of ICMP portgroups */ | ||||
| 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] */ | ||||
| ▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines | |||||