aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2019-03-18 14:00:19 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2019-03-18 14:00:19 +0000
commitd6369c2d18afbf23d8fa0038d2974cab7f82a976 (patch)
treea67506c34f46cd96cf461860e4c92a36eb07b296 /sys/netinet6
parentd7a1cf06f3fd3d54182b60b4336267ad95148502 (diff)
downloadsrc-d6369c2d18afbf23d8fa0038d2974cab7f82a976.tar.gz
src-d6369c2d18afbf23d8fa0038d2974cab7f82a976.zip
Revert r345274. It appears that not all 32-bit architectures have
necessary CK primitives.
Notes
Notes: svn path=/head/; revision=345275
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip_fw_nat64.h45
1 files changed, 8 insertions, 37 deletions
diff --git a/sys/netinet6/ip_fw_nat64.h b/sys/netinet6/ip_fw_nat64.h
index 40e3441132e1..47c0a70d167f 100644
--- a/sys/netinet6/ip_fw_nat64.h
+++ b/sys/netinet6/ip_fw_nat64.h
@@ -122,7 +122,7 @@ typedef struct _ipfw_nat64clat_cfg {
/*
* NAT64LSN default configuration values
*/
-#define NAT64LSN_MAX_PORTS 2048 /* Unused */
+#define NAT64LSN_MAX_PORTS 2048 /* Max number of ports per host */
#define NAT64LSN_JMAXLEN 2048 /* Max outstanding requests. */
#define NAT64LSN_TCP_SYN_AGE 10 /* State's TTL after SYN received. */
#define NAT64LSN_TCP_EST_AGE (2 * 3600) /* TTL for established connection */
@@ -135,20 +135,16 @@ typedef struct _ipfw_nat64clat_cfg {
typedef struct _ipfw_nat64lsn_cfg {
char name[64]; /* NAT name */
uint32_t flags;
-
- uint32_t max_ports; /* Unused */
- uint32_t agg_prefix_len; /* Unused */
- uint32_t agg_prefix_max; /* Unused */
-
+ uint32_t max_ports; /* Max ports per client */
+ uint32_t agg_prefix_len; /* Prefix length to count */
+ uint32_t agg_prefix_max; /* Max hosts per agg prefix */
struct in_addr prefix4;
uint16_t plen4; /* Prefix length */
uint16_t plen6; /* Prefix length */
struct in6_addr prefix6; /* NAT64 prefix */
uint32_t jmaxlen; /* Max jobqueue length */
-
- uint16_t min_port; /* Unused */
- uint16_t max_port; /* Unused */
-
+ uint16_t min_port; /* Min port group # to use */
+ uint16_t max_port; /* Max port group # to use */
uint16_t nh_delete_delay;/* Stale host delete delay */
uint16_t pg_delete_delay;/* Stale portgroup delete delay */
uint16_t st_syn_ttl; /* TCP syn expire */
@@ -157,7 +153,7 @@ typedef struct _ipfw_nat64lsn_cfg {
uint16_t st_udp_ttl; /* UDP expire */
uint16_t st_icmp_ttl; /* ICMP expire */
uint8_t set; /* Named instance set [0..31] */
- uint8_t states_chunks; /* Number of states chunks per PG */
+ uint8_t spare;
} ipfw_nat64lsn_cfg;
typedef struct _ipfw_nat64lsn_state {
@@ -181,30 +177,5 @@ typedef struct _ipfw_nat64lsn_stg {
uint32_t spare2;
} ipfw_nat64lsn_stg;
-typedef struct _ipfw_nat64lsn_state_v1 {
- struct in6_addr host6; /* Bound IPv6 host */
- struct in_addr daddr; /* Remote IPv4 address */
- uint16_t dport; /* Remote destination port */
- uint16_t aport; /* Local alias port */
- uint16_t sport; /* Source port */
- uint16_t spare;
- uint16_t idle; /* Last used time */
- uint8_t flags; /* State flags */
- uint8_t proto; /* protocol */
-} ipfw_nat64lsn_state_v1;
-
-typedef struct _ipfw_nat64lsn_stg_v1 {
- union nat64lsn_pgidx {
- uint64_t index;
- struct {
- uint8_t chunk; /* states chunk */
- uint8_t proto; /* protocol */
- uint16_t port; /* base port */
- in_addr_t addr; /* alias address */
- };
- } next; /* next state index */
- struct in_addr alias4; /* IPv4 alias address */
- uint32_t count; /* Number of states */
-} ipfw_nat64lsn_stg_v1;
-
#endif /* _NETINET6_IP_FW_NAT64_H_ */
+