aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat_api.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-06-03 11:47:55 +0200
committerOle Troan <ot@cisco.com>2020-06-03 11:48:50 +0200
commitec62d0a436be00bcc084a56548c8c7fa55b2cb61 (patch)
treeb80ef1eb7340165c0cabf348198e0084c36990f4 /src/plugins/nat/nat_api.c
parentbe360ee4d7d34954bd93ed852c9d7bf9109ce6fb (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/nat_api.c')
-rw-r--r--src/plugins/nat/nat_api.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/nat/nat_api.c b/src/plugins/nat/nat_api.c
index 201c9d4730d..abd1d867c47 100644
--- a/src/plugins/nat/nat_api.c
+++ b/src/plugins/nat/nat_api.c
@@ -495,10 +495,7 @@ vl_api_nat_set_mss_clamping_t_handler (vl_api_nat_set_mss_clamping_t * mp)
int rv = 0;
if (mp->enable)
- {
- sm->mss_clamping = ntohs (mp->mss_value);
- sm->mss_value_net = mp->mss_value;
- }
+ sm->mss_clamping = ntohs (mp->mss_value);
else
sm->mss_clamping = 0;