nat: use correct data types for memory sizes
[vpp.git] / src / plugins / srv6-am / am.c
index 877b1b3..1408ebc 100644 (file)
@@ -29,6 +29,7 @@ unsigned char keyword_str[] = "End.AM";
 unsigned char def_str[] = "Endpoint to SR-unaware appliance via masquerading";
 unsigned char params_str[] = "nh <next-hop> oif <iface-out> iif <iface-in>";
 
+srv6_am_main_t srv6_am_main;
 
 /*****************************************/
 /* SRv6 LocalSID instantiation and removal functions */
@@ -141,7 +142,7 @@ unformat_srv6_am_localsid (unformat_input_t * input, va_list * args)
       ls_mem = clib_mem_alloc_aligned_at_offset (sizeof *ls_mem, 0, 0, 1);
 
       /* Set to zero the memory */
-      memset (ls_mem, 0, sizeof *ls_mem);
+      clib_memset (ls_mem, 0, sizeof *ls_mem);
 
       /* Our brand-new car is ready */
       clib_memcpy (&ls_mem->nh_addr.ip6, &nh_addr.ip6,
@@ -211,6 +212,7 @@ srv6_am_init (vlib_main_t * vm)
                                      keyword_str,
                                      def_str,
                                      params_str,
+                                     128,
                                      &sm->srv6_am_dpo_type,
                                      format_srv6_am_localsid,
                                      unformat_srv6_am_localsid,
@@ -236,7 +238,7 @@ VLIB_INIT_FUNCTION (srv6_am_init);
 
 VLIB_PLUGIN_REGISTER () = {
   .version = VPP_BUILD_VER,
-  .description = "Masquerading SRv6 proxy",
+  .description = "Masquerading Segment Routing for IPv6 (SRv6) Proxy",
 };
 /* *INDENT-ON* */