X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2Fnat%2Fnat44-ei%2Fnat44_ei.h;h=2e95b1413cabaaa4049cdf2d637f1a8d51a02daa;hb=ff334db797c9cede308367ef1c27bd8dfce0baf4;hp=29c92e96cbd1c3622cd90147524f08c99b9ae959;hpb=3a5bd85476311d4ad2b0cbbca3f98d53f13a3afb;p=vpp.git diff --git a/src/plugins/nat/nat44-ei/nat44_ei.h b/src/plugins/nat/nat44-ei/nat44_ei.h index 29c92e96cbd..2e95b1413ca 100644 --- a/src/plugins/nat/nat44-ei/nat44_ei.h +++ b/src/plugins/nat/nat44-ei/nat44_ei.h @@ -32,9 +32,11 @@ #include #include #include +#include #include #include +#include /* default number of worker handoff frame queue elements */ #define NAT_FQ_NELTS_DEFAULT 64 @@ -71,7 +73,7 @@ typedef struct #define _(N, i, n, s) \ u32 busy_##n##_ports; \ u32 *busy_##n##_ports_per_thread; \ - u32 busy_##n##_port_refcounts[65535]; + u32 busy_##n##_port_refcounts[0xffff + 1]; foreach_nat_protocol #undef _ } nat44_ei_address_t; @@ -160,7 +162,7 @@ typedef struct typedef struct { - /* prefered pool address */ + /* preferred pool address */ ip4_address_t pool_addr; /* local IP address */ ip4_address_t local_addr; @@ -304,7 +306,7 @@ typedef struct typedef struct { u32 cached_sw_if_index; - u32 cached_ip4_address; + uword *cached_presence_by_ip4_address; } nat44_ei_runtime_t; typedef struct