Clixon 6.1

Reviewed documentation, changelog, etc
This commit is contained in:
Olof hagsand 2023-02-19 11:35:37 +01:00
parent 994632daac
commit 72a4494b69
13 changed files with 53 additions and 55 deletions

View file

@ -1 +1 @@
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="42" username="olof"><edit-config><target><candidate/></target><default-operation>none</default-operation><test-option>test-then-set</test-option><error-option>stop-on-error</error-option><config><interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"><interface><name>eth/0/0</name></interface></interfaces></config></edit-config></rpc>]]>]]>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="42" username="olof"><edit-config><target><candidate/></target><default-operation>merge</default-operation><test-option>test-then-set</test-option><error-option>stop-on-error</error-option><config><table xmlns="urn:example:clixon"><parameter><name>eth/0/0</name><value>x</value></parameter></table></config></edit-config></rpc>]]>]]>

View file

@ -44,10 +44,11 @@ cat <<EOF > $cfg
</clixon-config>
EOF
# Run script
# CC=/usr/bin/afl-clang
sudo LD_PRELOAD="/usr/local/lib/desock.so" afl-fuzz -i input -o output -d -m $MEGS -- /usr/local/sbin/clixon_backend -Fs init -f $cfg
# kill old
sudo /usr/local/sbin/clixon_backend -Fz -f $cfg
# Dryrun without afl:
#echo "sudo LD_PRELOAD=\"/usr/local/lib/desock.so\" /usr/local/sbin/clixon_backend -Fs init -f ./conf.xml < input/1.xml"
# Dryrun without afl (commit this for real run):
#sudo LD_PRELOAD="/usr/local/lib/desock.so" /usr/local/sbin/clixon_backend -Fs init -f ./conf.xml < input/1.xml
# Run script
sudo LD_PRELOAD="/usr/local/lib/desock.so" afl-fuzz -i input -o output -d -m $MEGS -- /usr/local/sbin/clixon_backend -Fs init -f $cfg

View file

@ -22,7 +22,10 @@ Build clixon cli statically with the afl-clang compiler:
```
CC=/usr/bin/afl-clang-fast LINKAGE=static INSTALLFLAGS="" ./configure # Dont care about restconf
make clean
cd apps/cli
cd lib
make
sudo make install
cd ../apps/cli
make clixon_cli
sudo make install
```

View file

@ -26,12 +26,11 @@ cat <<EOF > $cfg
<CLICON_CLI_LINESCROLLING>0</CLICON_CLI_LINESCROLLING>
<CLICON_CLI_TAB_MODE>0</CLICON_CLI_TAB_MODE>
<autocli>
<enable-autocli>true</enable-autocli>
<module-default>false</module-default>
<rule>
<name>include $APPNAME</name>
<operation>enable</operation>
<module-name>$APPNAME/module-name>
<module-name>$APPNAME</module-name>
</rule>
</autocli>
</clixon-config>

View file

@ -7,7 +7,6 @@ Install AFL, see [..](..)
Enable `RESTCONF_HTTP1_UNITTEST` in `include/clixon_custom.h`.
Build and install clixon libraries and restconf statically
```
./configure --disable-nghttp2 LINKAGE=static INSTALLFLAGS="" CC=/usr/bin/afl-clang-fast CFLAGS="-g"
@ -17,7 +16,6 @@ Build and install clixon libraries and restconf statically
./runfuzz.sh
```
To view crashes
```
sudo chmod o+x output/crashes

View file

@ -14,7 +14,10 @@ Build clixon netconf statically with the afl-clang compiler:
```
CC=/usr/bin/afl-clang-fast LINKAGE=static ./configure # Dont care about restconf
make clean
cd apps/netconf
cd lib
make
sudo make install
cd ../apps/netconf
make clixon_netconf
sudo make install
```
@ -27,4 +30,3 @@ Run the script `runfuzz.sh` to run one test with a cli spec and an input string,
```
After (or during) the test, investigate results in the output dir.