Fixed: [clixon_netconf does not respond to hello #136](https://github.com/clicon/clixon/issues/136)
* The error showed only when CLICON_MODULE_LIBRARY_RFC7895 was disabled.
This commit is contained in:
parent
1ef3c0db7a
commit
5b5dce7e39
5 changed files with 29 additions and 13 deletions
|
|
@ -595,9 +595,14 @@ main(int argc,
|
|||
goto done;
|
||||
clicon_session_id_set(h, id);
|
||||
|
||||
/* Send hello to northbound client */
|
||||
if (!quiet)
|
||||
send_hello(h, 1, id);
|
||||
/* Send hello to northbound client
|
||||
* Note that this is a violation of RDFC 6241 Sec 8.1:
|
||||
* When the NETCONF session is opened, each peer(both client and server) MUST send a <hello..
|
||||
*/
|
||||
if (!quiet){
|
||||
if (send_hello(h, 1, id) < 0)
|
||||
goto done;
|
||||
}
|
||||
if (clixon_event_reg_fd(0, netconf_input_cb, h, "netconf socket") < 0)
|
||||
goto done;
|
||||
if (dbg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue