summaryrefslogtreecommitdiffstats
path: root/src/plugins/mss_clamp/mss_clamp_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/mss_clamp/mss_clamp_api.c')
-rw-r--r--src/plugins/mss_clamp/mss_clamp_api.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/mss_clamp/mss_clamp_api.c b/src/plugins/mss_clamp/mss_clamp_api.c
index 27804d6fb1a..c6557ea6db7 100644
--- a/src/plugins/mss_clamp/mss_clamp_api.c
+++ b/src/plugins/mss_clamp/mss_clamp_api.c
@@ -35,12 +35,15 @@ vl_api_mss_clamp_enable_disable_t_handler (
mssc_main_t *cm = &mssc_main;
vl_api_mss_clamp_enable_disable_reply_t *rmp;
int rv;
+ u32 sw_if_index;
+
+ sw_if_index = ntohl (mp->sw_if_index);
VALIDATE_SW_IF_INDEX (mp);
- rv = mssc_enable_disable (ntohl (mp->sw_if_index), mp->ipv4_direction,
- mp->ipv6_direction, ntohs (mp->ipv4_mss),
- ntohs (mp->ipv6_mss));
+ rv =
+ mssc_enable_disable (sw_if_index, mp->ipv4_direction, mp->ipv6_direction,
+ ntohs (mp->ipv4_mss), ntohs (mp->ipv6_mss));
BAD_SW_IF_INDEX_LABEL;
REPLY_MACRO (VL_API_MSS_CLAMP_ENABLE_DISABLE_REPLY);