diff options
author | Ole Troan <ot@cisco.com> | 2020-06-03 11:47:55 +0200 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2020-06-03 11:48:50 +0200 |
commit | ec62d0a436be00bcc084a56548c8c7fa55b2cb61 (patch) | |
tree | b80ef1eb7340165c0cabf348198e0084c36990f4 /src/plugins/nat/nat64_in2out.c | |
parent | be360ee4d7d34954bd93ed852c9d7bf9109ce6fb (diff) |
nat: refactor mss_clamping to not depend on snat_main_t
Type: refactor
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I1110e425859a4f1f07952c91b50f263cb7323836
Diffstat (limited to 'src/plugins/nat/nat64_in2out.c')
-rw-r--r-- | src/plugins/nat/nat64_in2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/nat/nat64_in2out.c b/src/plugins/nat/nat64_in2out.c index 38e98340b8c..af212d3061d 100644 --- a/src/plugins/nat/nat64_in2out.c +++ b/src/plugins/nat/nat64_in2out.c @@ -21,6 +21,7 @@ #include <nat/nat_inlines.h> #include <vnet/ip/ip6_to_ip4.h> #include <vnet/fib/fib_table.h> +#include <nat/lib/nat_inlines.h> typedef struct { @@ -276,7 +277,7 @@ nat64_in2out_tcp_udp (vlib_main_t * vm, vlib_buffer_t * p, u16 l4_offset, csum = ip_csum_add_even (csum, ip4->src_address.as_u32); csum = ip_csum_sub_even (csum, sport); csum = ip_csum_add_even (csum, udp->src_port); - mss_clamping (nm->sm, tcp, &csum); + mss_clamping (nm->sm->mss_clamping, tcp, &csum); tcp->checksum = ip_csum_fold (csum); nat64_tcp_session_set_state (ste, tcp, 1); |