Typos. A bunch of typos I've been collecting.
[vpp.git] / src / vnet / devices / af_packet / cli.c
index 29c0e06..e5466c9 100644 (file)
@@ -93,7 +93,7 @@ af_packet_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
 
   if (r == VNET_API_ERROR_SUBIF_ALREADY_EXISTS)
     {
-      error = clib_error_return (0, "Interface elready exists");
+      error = clib_error_return (0, "Interface already exists");
       goto done;
     }
 
@@ -225,7 +225,8 @@ af_packet_set_l4_cksum_offload_command_fn (vlib_main_t * vm,
        }
     }
 
-  af_packet_set_l4_cksum_offload (vm, sw_if_index, set);
+  if (af_packet_set_l4_cksum_offload (vm, sw_if_index, set) < 0)
+    error = clib_error_return (0, "not an af_packet interface");
 
 done:
   unformat_free (line_input);