* Implementation of "chunked framing" according to RFC6242 for Netconf 1.1.

* First hello is 1.0 EOM framing, then successing rpc is chunked framing
  * See
    * [Netconf framing](https://github.com/clicon/clixon/issues/50), and
    * [Clixon does not switch to chunked framing after NETCONF 1.1 is negotiated](https://github.com/clicon/clixon/issues/314)
* C:
  * Moved netconf framing code from netconf application to clixon lib
* Test:
  * New expecteof_netconf and adjusted other expect scripts to handle NETCONF 1.1 framing
This commit is contained in:
Olof hagsand 2022-03-27 17:39:24 +02:00
parent bf983d7ca4
commit c038c9a27f
95 changed files with 1758 additions and 1208 deletions

View file

@ -2,6 +2,9 @@
# Advanced Client api test
# Compile and run a client
# INSTALLFLSAGS=""
# Why test only over external NETCONF? ie CLIXON_CLIENT_NETCONF
# there is also CLIXON_CLIENT_IPC, /* Internal IPC API, only experimental use */
# CLIXON_CLIENT_SSH /* NYI External Netconf over SSH */
# Magic line must be first in script (see README.md)
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
@ -119,6 +122,7 @@ if [ "$LINKAGE" = static ]; then
else
COMPILE="$CC ${CFLAGS} -I/usr/local/include $cfile -o $app -L /usr/local/lib -lclixon"
fi
echo "COMPILE:$COMPILE"
expectpart "$($COMPILE)" 0 ""