Fix punctuation fails in 2x plugins
[vpp.git] / src / plugins / ct6 / ct6.c
index dc2b735..3dfa09f 100644 (file)
@@ -196,6 +196,8 @@ static void vl_api_ct6_enable_disable_t_handler
   ct6_main_t *cmp = &ct6_main;
   int rv;
 
+  VALIDATE_SW_IF_INDEX (mp);
+
   if (mp->is_inside)
     rv = ct6_in2out_enable_disable (cmp, ntohl (mp->sw_if_index),
                                    (int) (mp->enable_disable));
@@ -203,6 +205,7 @@ static void vl_api_ct6_enable_disable_t_handler
     rv = ct6_out2in_enable_disable (cmp, ntohl (mp->sw_if_index),
                                    (int) (mp->enable_disable));
 
+  BAD_SW_IF_INDEX_LABEL;
   REPLY_MACRO (VL_API_CT6_ENABLE_DISABLE_REPLY);
 }
 
@@ -232,7 +235,7 @@ ct6_plugin_api_hookup (vlib_main_t * vm)
 static void
 setup_message_id_table (ct6_main_t * cmp, api_main_t * am)
 {
-#define _(id,n,crc)   vl_msg_api_add_msg_name_crc (am, #n  #crc, id + cmp->msg_id_base);
+#define _(id,n,crc)   vl_msg_api_add_msg_name_crc (am, #n "_"  #crc, id + cmp->msg_id_base);
   foreach_vl_msg_name_crc_ct6;
 #undef _
 }
@@ -301,7 +304,7 @@ VNET_FEATURE_INIT (ct6in2out, static) =
 VLIB_PLUGIN_REGISTER () =
 {
   .version = VPP_BUILD_VER,
-  .description = "ipv6 connection tracker",
+  .description = "IPv6 Connection Tracker",
 };
 /* *INDENT-ON* */