From 0ac147d632ed6a150bf0216964888a21b1c8d43c Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Tue, 24 Jan 2023 01:46:29 +0100 Subject: feat: libhicnctrl: new API to allow sending MAP-Me command on specific face MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iac39a1d145a5c1b4f19e1fa35d713ca720393760 Ticket: HICN-832 Signed-off-by: Jordan Augé (cherry picked from commit 49776ceac54eecadabca6c0e2fdc0b9ee2e8e663) --- ctrl/libhicnctrl/src/hicnctrl.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ctrl/libhicnctrl/src/hicnctrl.c') diff --git a/ctrl/libhicnctrl/src/hicnctrl.c b/ctrl/libhicnctrl/src/hicnctrl.c index fd028f64a..478997ec1 100644 --- a/ctrl/libhicnctrl/src/hicnctrl.c +++ b/ctrl/libhicnctrl/src/hicnctrl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Cisco and/or its affiliates. + * Copyright (c) 2021-2023 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: @@ -14,7 +14,7 @@ */ /** - * \file cli.c + * \file hicnctrl.c * \brief Command line interface */ #include // isalpha isalnum @@ -122,7 +122,7 @@ void usage_forwarding_strategy(const char *prog, bool header, bool verbose) { void usage_listener_create(const char *prog, bool header, bool verbose) { if (header) usage_header(); - fprintf(stderr, "%s -l NAME TYPE LOCAL_ADDRESS LOCAL_PORT [INTERFACE_NAME]\n", + fprintf(stderr, "%s -l TYPE NAME LOCAL_ADDRESS LOCAL_PORT [INTERFACE_NAME]\n", prog); if (verbose) fprintf(stderr, " Create a listener on specified address and port.\n"); @@ -323,7 +323,8 @@ USAGE: int main(int argc, char *argv[]) { int rc = 1; - hc_command_t command = {0}; + hc_command_t command; + memset(&command, 0, sizeof(command)); char buf[MAXSZ_HC_OBJECT]; log_conf.log_level = LOG_INFO; -- cgit 1.2.3-korg