- Fuzz for restconf and cli updated
This commit is contained in:
parent
965cce5e5d
commit
af88b974fd
11 changed files with 172 additions and 62 deletions
|
|
@ -95,12 +95,12 @@ static const map_str2int cli_genmodel_map[] = {
|
|||
/* Mapping between Clicon startup modes string <--> constants,
|
||||
see clixon-config.yang type startup_mode */
|
||||
static const map_str2int startup_mode_map[] = {
|
||||
{"none", SM_NONE},
|
||||
{"init", SM_INIT},
|
||||
{"running", SM_RUNNING},
|
||||
{"startup", SM_STARTUP},
|
||||
{"startup", SM_RUNNING_STARTUP},
|
||||
{NULL, -1}
|
||||
{"none", SM_NONE},
|
||||
{"init", SM_INIT},
|
||||
{"running", SM_RUNNING},
|
||||
{"startup", SM_STARTUP},
|
||||
{"running-startup", SM_RUNNING_STARTUP},
|
||||
{NULL, -1}
|
||||
};
|
||||
|
||||
/* Mapping between Clicon privileges modes string <--> constants,
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ clicon_msg_rcv(int s,
|
|||
int retval = -1;
|
||||
struct clicon_msg hdr;
|
||||
int hlen;
|
||||
uint32_t len2;
|
||||
ssize_t len2;
|
||||
sigfn_t oldhandler;
|
||||
uint32_t mlen;
|
||||
|
||||
|
|
@ -638,7 +638,7 @@ clicon_rpc(int sock,
|
|||
return retval;
|
||||
}
|
||||
|
||||
/*! Send a netconf message and recevive result.
|
||||
/*! Send a netconf message and recieve result.
|
||||
*
|
||||
* TBD: timeout, interrupt?
|
||||
* retval may be -1 and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue