* Fixed: Initialized session-id to 1 instead of 0 following ietf-netconf.yang
* Clearer debug levels `clicon_debug()`: 1: Logical debug message 2: Input and output packets 3: Message dump in hex, xpath parse trees
This commit is contained in:
parent
3428f4d5ff
commit
923b998774
17 changed files with 40 additions and 35 deletions
|
|
@ -146,6 +146,11 @@ backend_client_add(clicon_handle h,
|
|||
memcpy(&ce->ce_addr, addr, sizeof(*addr));
|
||||
ce->ce_next = bh->bh_ce_list;
|
||||
ce->ce_handle = h;
|
||||
if (clicon_session_id_get(h, &ce->ce_id) < 0){
|
||||
clicon_err(OE_NETCONF, ENOENT, "session_id not set");
|
||||
return NULL;
|
||||
}
|
||||
clicon_session_id_set(h, ce->ce_id + 1);
|
||||
gettimeofday(&ce->ce_time, NULL);
|
||||
bh->bh_ce_list = ce;
|
||||
return ce;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue