Branch: refs/heads/safe-handles
Home: https://github.com/kronosnet/kronosnet
Commit: 18ca388be96bc26805071027d808a5d548dfdd1b
https://github.com/kronosnet/kronosnet/commit/18ca388be96bc26805071027d808a…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2021-04-11 (Sun, 11 Apr 2021)
Changed paths:
M libknet/Makefile.am
M libknet/compress.c
M libknet/crypto.c
M libknet/handle.c
M libknet/handle_api.c
M libknet/host.c
M libknet/internals.h
A libknet/lib_config.c
M libknet/links.c
M libknet/logging.c
M libknet/onwire.c
M libknet/tests/Makefile.am
M libknet/tests/api_knet_handle_free.c
M libknet/threads_common.c
M libknet/threads_pmtud.c
M libknet/threads_rx.c
M libknet/threads_tx.c
M libknet/transports.c
Log Message:
-----------
[handle] validate handle in public API
- add _is_valid_handle() function to verify if a handle
is known, via qb_list*
- change all (and only) public API to use _is_valid_handle().
- move library config bits to lib_config.c and keep
header bit in internal.h.
this is more of a commodity need to simplify
accessability of above function to the test suite
at link time.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>