]>
git.proxmox.com Git - mirror_kronosnet.git/log
Chrissie Caulfield [Tue, 12 Mar 2019 13:55:25 +0000 (13:55 +0000)]
manpages: Document enums (#206)
And also fix a bug in structure printing that caused it to print the wrong name for a struct.
Fabio M. Di Nitto [Thu, 7 Mar 2019 17:42:20 +0000 (18:42 +0100)]
[tests] remove stray comment
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 9 Mar 2019 06:03:25 +0000 (07:03 +0100)]
[logging] fix log target of recently added API calls
spotted during sctp testing
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 7 Mar 2019 14:31:28 +0000 (15:31 +0100)]
[access lists] add more extensive test for links_acl_ip
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Christine Caulfield [Thu, 7 Mar 2019 10:04:41 +0000 (10:04 +0000)]
acl: Fix English in commments
Fabio M. Di Nitto [Wed, 6 Mar 2019 12:08:34 +0000 (13:08 +0100)]
[access lists] add public API tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 6 Mar 2019 08:43:10 +0000 (09:43 +0100)]
[access lists] improve checks on various data types
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 5 Mar 2019 04:16:29 +0000 (05:16 +0100)]
[access lists] test implicit access lists management for UDP, SCTP and LOOPBACK
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 4 Mar 2019 12:07:04 +0000 (13:07 +0100)]
[access lists] add external API calls to manage access lists
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 2 Mar 2019 06:49:19 +0000 (07:49 +0100)]
[access lists] add documentation for enable_access_list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 28 Feb 2019 13:55:27 +0000 (14:55 +0100)]
[transports / access list] add internal API to gather which fd to use for access lists given a certain link struct
this is required for the external API that has to be transport indepedent
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 28 Feb 2019 07:22:43 +0000 (08:22 +0100)]
[access lists] rename ip1/2 to ss1/2 to keep it more generic
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 26 Feb 2019 12:34:11 +0000 (13:34 +0100)]
[access lists] use arrays to access per-protocol functions
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 26 Feb 2019 11:12:09 +0000 (12:12 +0100)]
[access lists] use better name for fd_tracker structure
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 26 Feb 2019 10:37:49 +0000 (11:37 +0100)]
[access lists] confine access lists data structs within the protocol itself
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 26 Feb 2019 09:43:04 +0000 (10:43 +0100)]
[access lists] add errno around and start using them
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 06:08:29 +0000 (07:08 +0100)]
[access lists] fix build on BSD and add some include files around
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 05:53:48 +0000 (06:53 +0100)]
[access lists] make internal API consistent
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 9 May 2019 13:44:41 +0000 (15:44 +0200)]
[links] rename tranport_type to transport to avoid confusion (part 2)
complements
be9d053efafc822cabd696914d53b5dfe25fb4fd due to early
cherry-pick of
7033ddab505a0cf3655115fe5037579b7c882a8c
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 04:31:42 +0000 (05:31 +0100)]
[links] rename transport_type to transport to avoid confusion
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 04:29:07 +0000 (05:29 +0100)]
[access lists] remove 2 unnecessary wrappers
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 04:21:29 +0000 (05:21 +0100)]
[access lists] cleanup API a bit
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 04:17:57 +0000 (05:17 +0100)]
[access lists] more use of generic wrappers and remove duplicate code
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 04:04:20 +0000 (05:04 +0100)]
[access lists] move access lists structs and data types to links_acl.*
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 22 Feb 2019 03:53:23 +0000 (04:53 +0100)]
[access lists] move all acl wrappers to links_acl* and split links_acl_ip to their own files
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 17 Feb 2019 08:49:06 +0000 (09:49 +0100)]
[access lists] fix build on freebsd
don't use malloc.h, obsoleted by stdlib.h
define s6_addr32 that's only available in kernel space
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 17 Feb 2019 06:49:13 +0000 (07:49 +0100)]
[access lists] add access lists support to sctp
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 17 Feb 2019 06:32:59 +0000 (07:32 +0100)]
[access lists] enable generic access lists only for protocols that use them
protocols such as SCTP that use their own access list tracking will
need to setup access lists in transport_link_set/clear_config
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 15 Feb 2019 09:57:45 +0000 (10:57 +0100)]
[access lists] enable access lists for GENERIC_ACL protocols (udp for example)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 14 Feb 2019 06:23:09 +0000 (07:23 +0100)]
[access lists] allow knet_bench to enable/disable access lists
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 14 Feb 2019 05:47:41 +0000 (06:47 +0100)]
[access lists] add tests for default access lists
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 14 Feb 2019 05:32:42 +0000 (06:32 +0100)]
[access lists] automatically add and remove point to point access lists
those are not used just yet.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 13 Feb 2019 08:14:45 +0000 (09:14 +0100)]
[handle] properly initialize fd tracker buffers
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 12 Feb 2019 06:21:20 +0000 (07:21 +0100)]
[access lists] make code more generic to accept more than IP protocol and start to bind it to each fd
access lists are unique per file descriptor, each fd can have its own protocol and list.
remane around ipcheck* with check* to be more generic.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 10 Feb 2019 07:52:22 +0000 (08:52 +0100)]
[transports] add information about the nature of the transport and supported access lists
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 8 Feb 2019 13:29:50 +0000 (14:29 +0100)]
[acl] add knet_handle_enable_access_lists api call
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 5 Jan 2019 08:04:38 +0000 (09:04 +0100)]
[acl] move poc-code into libknet dir and rename to links_acl.*
code is not integrated yet and test suite can´t run standalone
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
kronosnet CI bot [Thu, 9 May 2019 09:18:23 +0000 (11:18 +0200)]
Merge pull request #211 from kronosnet/stable1-proposed
stable1-proposed
Fabio M. Di Nitto [Wed, 1 May 2019 04:51:19 +0000 (06:51 +0200)]
[udp] improve error message decoding from ICMP errors
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 1 May 2019 04:39:53 +0000 (06:39 +0200)]
[udp] use defines vs hardcoded numbers
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 30 Apr 2019 03:42:48 +0000 (05:42 +0200)]
[man] fix libknet.h for errors detected by newly added test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 30 Apr 2019 03:42:16 +0000 (05:42 +0200)]
[tests] add man page check to verify doxy header order and definitions
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 30 Apr 2019 03:06:47 +0000 (05:06 +0200)]
[man] fix knet_host_set_policy parameters order
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Christine Caulfield [Mon, 29 Apr 2019 14:16:27 +0000 (15:16 +0100)]
man: Tidy more man pages
Followup to previous 'tidy'
Chrissie Caulfield [Tue, 16 Apr 2019 13:46:01 +0000 (14:46 +0100)]
man: Tidy manpages (#215)
* man: Tidy manpages for libnozzle
doxygen works in mysterious ways, adding a blank line before
@brief makes the lines following that much tidier.
So now instead of
nozzle_close nozzle - pointer to the nozzle struct to destroy
we get:
nozzle_close
nozzle - pointer to the nozzle struct to destroy
* doxyxml: Cope with pointers-to-pointers passed as params
Double pointers showed as ' * *name' when they should be ' **name'.
Also tidy STRUCTURES display so that they are not indented too much,
* man: Similar @brief fixes for libknet.h
* doxyxml: Tidy descriptions of functions as parameters
If a complex function pointer was passed as a parameter then doxyxml
tryied to line up all the other parameters with it - making a mess
by having lots of blank space between the type and the name.
Now we enforce a maximum type length (a line-ish) so that shorter
tyopes will line up OK and the really long ones will be left to their
own devices.
Fabio M. Di Nitto [Thu, 11 Apr 2019 11:36:56 +0000 (13:36 +0200)]
[crypto] remove libnss 3des support
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabian Grünbichler [Wed, 3 Apr 2019 12:28:50 +0000 (14:28 +0200)]
reduce minimum crypto key size to 1024bit
Since the key is used for AES/3DES and HMAC operations only, this is
safe. AES/3DES use keys in the 128- to 256-bit range, HMAC with
MD5/SHA1/SHA2 should use keys with a minimum of 128- to 512-bit (in both
cases, depending on the actual algorithm used).
This reduction also keeps knet compatible with existing Corosync 2.x
keyfiles, which are 1024-bit.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabio M. Di Nitto [Tue, 29 Jan 2019 04:33:51 +0000 (05:33 +0100)]
[build] add another exception to valgrind nss combo
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 27 Mar 2019 03:52:17 +0000 (04:52 +0100)]
Merge pull request #199 from kronosnet/stable1-proposed
stable1-proposed
Fabio M. Di Nitto [Tue, 26 Mar 2019 14:08:14 +0000 (15:08 +0100)]
[global] update copyright across the board
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Christine Caulfield [Tue, 26 Mar 2019 12:44:25 +0000 (13:44 +0100)]
link: Check address families on a link always match
We can't create a link with a source address of a different
address family than the destination as all sends will fail.
Fabio M. Di Nitto [Sun, 24 Mar 2019 06:29:57 +0000 (07:29 +0100)]
[transports] fix usage after free of transport info memory
spotted while implementing functional testing for rekey.
when configuring multiple hosts (3+) with 1 link sharing
the same listener, but NOT enabling the link, if the user
attempts to shutdown knet_h, the first call to knet_link_clear_config
will not recognize that the listener is still in use by another
link and will release all resources.
At the time of invoking clear_config on the second link, transport_clear_config
will access already freed memory, or alternatively, a call to
link_enable would cause a crash because the listener does no
longer exist.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 15 Mar 2019 06:00:47 +0000 (07:00 +0100)]
[tests] test rpm should match currently installed version of libknet
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Chrissie Caulfield [Tue, 12 Mar 2019 13:55:25 +0000 (13:55 +0000)]
manpages: Document enums (#206)
And also fix a bug in structure printing that caused it to print the wrong name for a struct.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 7 Mar 2019 18:28:19 +0000 (19:28 +0100)]
[tests] allow shipping of the test suite
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 11 Mar 2019 05:30:17 +0000 (06:30 +0100)]
[host] increase log level for currently used links
bug reported on IRC by yuanren
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 11 Mar 2019 04:30:33 +0000 (05:30 +0100)]
[transport] don´t specify destination address for connection oriented protocols
some implementations of sendto/sendmsg expects dst_addr / msg_name to be
empty for connection oriented protocols such as SCTP (spotted on FreeBSD).
Make sure to clear or not pass those information on connection oriented protocol.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 6 Mar 2019 12:29:01 +0000 (13:29 +0100)]
[man] fix man page build dependency for BSD Make
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 5 Mar 2019 06:04:57 +0000 (07:04 +0100)]
[tests] add ability to create ipv6 sockets
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 5 Mar 2019 03:27:21 +0000 (04:27 +0100)]
[man] fix libnozzle man page generation target
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 13 Feb 2019 07:20:19 +0000 (08:20 +0100)]
[tests] fix knet_bench help text
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Christine Caulfield [Thu, 28 Feb 2019 13:47:36 +0000 (13:47 +0000)]
doxyxml: Don't crash if there's no doxygen stanza for a function
Fabio M. Di Nitto [Thu, 28 Feb 2019 09:39:20 +0000 (10:39 +0100)]
[man] add test to make sure all generated man pages are being shipped / installed
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
kronosnet CI bot [Wed, 30 Jan 2019 04:49:37 +0000 (05:49 +0100)]
Merge pull request #183 from kronosnet/stable1-proposed
Stable1 proposed
Jan Pokorný [Thu, 24 Jan 2019 13:54:24 +0000 (14:54 +0100)]
[common] fix not reporting a true dlinfo error cause
This was automatically caught with GCC 9
("'%s' directive argument is null").
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Fabio M. Di Nitto [Mon, 7 Jan 2019 08:54:31 +0000 (09:54 +0100)]
[libknet] allow better handling of internal threads
while playing around adding some dynamic internal threads, i did
hit a limitation with allocating a dynamic THREAD_MAX value based
on OS availability of certain features.
this patch changes from dynamic to static allocation of threads, that
can always be increased if necessary without breaking anything.
simplify thread numbering and conditionals on OS features
improve debugging of thread status by adding a 2 phase thread registration
process:
- register a thread before starting it with THREAD_REGISTERED before pthread_create
- set a thread status as started with THREAD_STARTED
any failure in between can now be detected in debugging logs.
Note for developers: all threads *MUST* be registered/started before
wait_all_threads_status check in handle.c.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 3 Jan 2019 15:06:31 +0000 (16:06 +0100)]
[build] enable all compilers warnings at once
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 3 Jan 2019 08:59:16 +0000 (09:59 +0100)]
[libknet] expose API version in libknet.h to make it easier for applications to add conditional builds
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Ferenc Wágner [Sun, 23 Dec 2018 22:09:55 +0000 (23:09 +0100)]
Skip SCTP event initialization if the protocol is not supported
We may not want to actually use SCTP after all, and if we do, we won't
get to use the uninitialized subscribe struct anyway. Thus aborting
handle initialization is premature here.
Ferenc Wágner [Wed, 26 Dec 2018 09:59:44 +0000 (10:59 +0100)]
Fix nozzle man dates to SOURCE_EPOCH, just like we fix the libknet ones
Fabio M. Di Nitto [Wed, 19 Dec 2018 14:34:32 +0000 (15:34 +0100)]
[rpm] ship libnozzle man pages
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Ferenc Wágner [Wed, 19 Dec 2018 10:52:37 +0000 (11:52 +0100)]
Fix typos
Ferenc Wágner [Wed, 19 Dec 2018 10:16:57 +0000 (11:16 +0100)]
Install the nozzle man pages
kronosnet CI bot [Wed, 19 Dec 2018 07:14:09 +0000 (08:14 +0100)]
Merge pull request #162 from kronosnet/stable1-proposed
stable1 proposed
Fabio M. Di Nitto [Tue, 18 Dec 2018 12:20:08 +0000 (13:20 +0100)]
[knet] fix build with older openssl versions
spotted on freebsd-devel
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2018 11:34:51 +0000 (12:34 +0100)]
[global] update notes to package maintainers
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Ferenc Wágner [Mon, 17 Dec 2018 17:24:06 +0000 (18:24 +0100)]
Tabify
Ferenc Wágner [Mon, 17 Dec 2018 11:21:47 +0000 (12:21 +0100)]
Use the kernel struct size for SCTP event subscription
Signed-off-by: Ferenc Wágner <wferi@debian.org>
Fabio M. Di Nitto [Sat, 15 Dec 2018 11:20:57 +0000 (12:20 +0100)]
[libnozzle] fix variable assignment order
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 15 Dec 2018 04:06:46 +0000 (05:06 +0100)]
[global] fix copyright across
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 15 Dec 2018 04:05:59 +0000 (05:05 +0100)]
[libnozzle] add nozzle_get_ips tests and kill nozzle_test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2018 16:55:59 +0000 (17:55 +0100)]
[libnozzle] add nozzle_del_ip tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2018 16:55:20 +0000 (17:55 +0100)]
[libnozzle] fix del_ip removal of Ipv6 addresses when MTU < 1280
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2018 16:35:50 +0000 (17:35 +0100)]
[libnozzle] add nozzle_add_ip tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2018 10:59:11 +0000 (11:59 +0100)]
[libnozzle] add api_nozzle_run_updown tests
and cleanup lots of craft around related to the old testing method
for the same API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 10 Dec 2018 04:59:53 +0000 (05:59 +0100)]
[libnozzle] add internal execute_bin_sh_command test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 10 Dec 2018 04:46:51 +0000 (05:46 +0100)]
[libnozzle] cleanup tests Makefile.am
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 10 Dec 2018 04:39:36 +0000 (05:39 +0100)]
[libnozzle] add nozzle_get_fd test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 8 Dec 2018 06:19:22 +0000 (07:19 +0100)]
[libnozzle] add nozzle_get_name_by_handle test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 8 Dec 2018 06:08:28 +0000 (07:08 +0100)]
[libnozzle] add nozzle_get_handle_by_name tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 7 Dec 2018 08:41:14 +0000 (09:41 +0100)]
[libnozzle] add nozzle_get_mac / nozzle_set_mac / nozzle_reset_mac tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 6 Dec 2018 13:22:53 +0000 (14:22 +0100)]
[libnozzle] add nozzle_get_mtu / nozzle_set_mtu / nozzle_reset_mtu tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 6 Dec 2018 04:48:14 +0000 (05:48 +0100)]
[libnozzle] move multi nozzle device test to api_nozzle_open
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 11:51:12 +0000 (12:51 +0100)]
[libnozzle] clean up code in set_up test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 11:51:01 +0000 (12:51 +0100)]
[libnozzle] improve set_down test
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 10:27:32 +0000 (11:27 +0100)]
[libnozzle] add api_nozzle_set_(up|down) tests
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 10:26:14 +0000 (11:26 +0100)]
[libnozzle] drop unnecessary indirection to call set_down
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 10:04:39 +0000 (11:04 +0100)]
[libnozzle] drop redundant check
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 09:56:23 +0000 (10:56 +0100)]
[libnozzle] add api_nozzle_close_test
also, share more code in test-common, fix another BSD build issue
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 5 Dec 2018 09:22:49 +0000 (10:22 +0100)]
[libnozzle] fix test suite build on BSD
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>