tools/mesh-cfgclient: Add address checks for pub/sub commands 47/228947/1
authorInga Stotland <inga.stotland@intel.com>
Mon, 2 Mar 2020 20:40:29 +0000 (12:40 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Thu, 26 Mar 2020 10:35:29 +0000 (16:05 +0530)
commitb3026916ee4ed9057cabec10e7a877ccf078ff3b
treefb4e7658718c1b0ca5e69069c810bd9d924f0fa2
parent5278646f0cf2d6b5f9a2e026320cff2f5f2d08fd
tools/mesh-cfgclient: Add address checks for pub/sub commands

This addrs verification of subscriptpion address value entered on
the command line: unassigned address, unicast address, and
all-nodes address are not allowed. Publication address check verifies
that the entered value falls into mesh address space.

Also, change the type of parameter count in comaand processing routines
from int to uint32_t to match the retrun type of the parameter parsing
routine.

Change-Id: Ib5747a132e59e4af5f21dbad5319167234230548
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
tools/mesh/cfgcli.c