plugins: clean up plugin descriptions
[vpp.git] / src / plugins / ct6 / ct6.c
index f0ad67a..478e9ac 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);
 }
 
@@ -293,7 +296,7 @@ VNET_FEATURE_INIT (ct6in2out, static) =
 {
   .arc_name = "interface-output",
   .node_name = "ct6-in2out",
-  .runs_before = VNET_FEATURES ("interface-output"),
+  .runs_before = VNET_FEATURES ("interface-tx"),
 };
 /* *INDENT-ON */
 
@@ -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* */
 
@@ -316,12 +319,12 @@ format_ct6_session (u8 * s, va_list * args)
 
   if (s0 == 0)
     {
-      s = format (s, "\n%6s%6s%20s%6s%20s%6s",
+      s = format (s, "\n%6s%6s%40s%6s%40s%6s",
                  "Sess", "Prot", "Src", "Sport", "Dst", "Dport");
       return s;
     }
 
-  s = format (s, "\n%6d%6d%20U%6u%20U%6u",
+  s = format (s, "\n%6d%6d%40U%6u%40U%6u",
              s0 - cmp->sessions[i], s0->key.proto,
              format_ip6_address, &s0->key.src,
              clib_net_to_host_u16 (s0->key.sport),