]> git.proxmox.com Git - mirror_kronosnet.git/log
mirror_kronosnet.git
5 years ago[transports] fix usage after free of transport info memory
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>
5 years ago[tests] test rpm should match currently installed version of libknet
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>
5 years agomanpages: Document enums (#206)
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>
5 years ago[tests] allow shipping of the test suite
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>
5 years ago[host] increase log level for currently used links
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>
5 years ago[transport] don´t specify destination address for connection oriented protocols
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>
5 years ago[man] fix man page build dependency for BSD Make
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>
5 years ago[tests] add ability to create ipv6 sockets
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>
5 years ago[man] fix libnozzle man page generation target
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>
5 years ago[tests] fix knet_bench help text
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>
5 years agodoxyxml: Don't crash if there's no doxygen stanza for a function
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

5 years ago[man] add test to make sure all generated man pages are being shipped / installed
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>
5 years agoMerge pull request #183 from kronosnet/stable1-proposed v1.7
kronosnet CI bot [Wed, 30 Jan 2019 04:49:37 +0000 (05:49 +0100)]
Merge pull request #183 from kronosnet/stable1-proposed

Stable1 proposed

5 years ago[common] fix not reporting a true dlinfo error cause
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>
5 years ago[libknet] allow better handling of internal threads
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>
5 years ago[build] enable all compilers warnings at once
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>
5 years ago[libknet] expose API version in libknet.h to make it easier for applications to add...
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>
5 years agoSkip SCTP event initialization if the protocol is not supported
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.

5 years agoFix nozzle man dates to SOURCE_EPOCH, just like we fix the libknet ones
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

5 years ago[rpm] ship libnozzle man pages
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>
5 years agoFix typos
Ferenc Wágner [Wed, 19 Dec 2018 10:52:37 +0000 (11:52 +0100)]
Fix typos

5 years agoInstall the nozzle man pages
Ferenc Wágner [Wed, 19 Dec 2018 10:16:57 +0000 (11:16 +0100)]
Install the nozzle man pages

5 years agoMerge pull request #162 from kronosnet/stable1-proposed v1.6
kronosnet CI bot [Wed, 19 Dec 2018 07:14:09 +0000 (08:14 +0100)]
Merge pull request #162 from kronosnet/stable1-proposed

stable1 proposed

5 years ago[knet] fix build with older openssl versions
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>
5 years ago[global] update notes to package maintainers
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>
5 years agoTabify
Ferenc Wágner [Mon, 17 Dec 2018 17:24:06 +0000 (18:24 +0100)]
Tabify

5 years agoUse the kernel struct size for SCTP event subscription
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>
5 years ago[libnozzle] fix variable assignment order
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>
5 years ago[global] fix copyright across
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>
5 years ago[libnozzle] add nozzle_get_ips tests and kill nozzle_test
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>
5 years ago[libnozzle] add nozzle_del_ip tests
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>
5 years ago[libnozzle] fix del_ip removal of Ipv6 addresses when MTU < 1280
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>
5 years ago[libnozzle] add nozzle_add_ip tests
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>
5 years ago[libnozzle] add api_nozzle_run_updown tests
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>
5 years ago[libnozzle] add internal execute_bin_sh_command test
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>
5 years ago[libnozzle] cleanup tests Makefile.am
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>
5 years ago[libnozzle] add nozzle_get_fd test
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>
5 years ago[libnozzle] add nozzle_get_name_by_handle test
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>
5 years ago[libnozzle] add nozzle_get_handle_by_name tests
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>
5 years ago[libnozzle] add nozzle_get_mac / nozzle_set_mac / nozzle_reset_mac tests
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>
5 years ago[libnozzle] add nozzle_get_mtu / nozzle_set_mtu / nozzle_reset_mtu tests
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>
5 years ago[libnozzle] move multi nozzle device test to api_nozzle_open
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>
5 years ago[libnozzle] clean up code in set_up test
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>
5 years ago[libnozzle] improve set_down test
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>
5 years ago[libnozzle] add api_nozzle_set_(up|down) tests
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>
5 years ago[libnozzle] drop unnecessary indirection to call set_down
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>
5 years ago[libnozzle] drop redundant check
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>
5 years ago[libnozzle] add api_nozzle_close_test
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>
5 years ago[libnozzle] fix test suite build on BSD
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>
5 years ago[libnozzle] add api_nozzle_open test
Fabio M. Di Nitto [Wed, 5 Dec 2018 09:17:51 +0000 (10:17 +0100)]
[libnozzle] add api_nozzle_open test

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] prepare Makefile.am to explode with API tests
Fabio M. Di Nitto [Tue, 4 Dec 2018 09:52:31 +0000 (10:52 +0100)]
[libnozzle] prepare Makefile.am to explode with API tests

also fix nozzle_test for using global compiler flags

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] fix API check paths
Fabio M. Di Nitto [Tue, 4 Dec 2018 09:51:30 +0000 (10:51 +0100)]
[libnozzle] fix API check paths

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] add per-API call test coverage check
Fabio M. Di Nitto [Tue, 4 Dec 2018 05:57:39 +0000 (06:57 +0100)]
[libnozzle] add per-API call test coverage check

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] re-instate error checking in nozzle_get_ips
Fabio M. Di Nitto [Tue, 4 Dec 2018 05:53:34 +0000 (06:53 +0100)]
[libnozzle] re-instate error checking in nozzle_get_ips

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] add comment about BSD ip_add status
Fabio M. Di Nitto [Tue, 4 Dec 2018 05:52:21 +0000 (06:52 +0100)]
[libnozzle] add comment about BSD ip_add status

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] cleanup nozzle_get_ips public API
Fabio M. Di Nitto [Tue, 4 Dec 2018 05:42:11 +0000 (06:42 +0100)]
[libnozzle] cleanup nozzle_get_ips public API

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] fix whitespaces
Fabio M. Di Nitto [Tue, 4 Dec 2018 03:30:42 +0000 (04:30 +0100)]
[libnozzle] fix whitespaces

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[global] Update copyright across
Fabio M. Di Nitto [Tue, 4 Dec 2018 03:28:24 +0000 (04:28 +0100)]
[global] Update copyright across

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] Update copyright
Fabio M. Di Nitto [Tue, 4 Dec 2018 03:22:18 +0000 (04:22 +0100)]
[libnozzle] Update copyright

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] fix build on BSD
Fabio M. Di Nitto [Tue, 4 Dec 2018 03:15:50 +0000 (04:15 +0100)]
[libnozzle] fix build on BSD

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] remove error_string requirement from many API calls and mark them as...
Fabio M. Di Nitto [Tue, 4 Dec 2018 03:04:56 +0000 (04:04 +0100)]
[libnozzle] remove error_string requirement from many API calls and mark them as final

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] move nozzle_run_updown to completed section
Fabio M. Di Nitto [Tue, 4 Dec 2018 02:37:41 +0000 (03:37 +0100)]
[libtap] move nozzle_run_updown to completed section

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[tests] properly check symbols on PPC64
Fabio M. Di Nitto [Tue, 28 Aug 2018 03:32:07 +0000 (05:32 +0200)]
[tests] properly check symbols on PPC64

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[tests] remove debugging sleep()
Fabio M. Di Nitto [Tue, 28 Aug 2018 03:31:18 +0000 (05:31 +0200)]
[tests] remove debugging sleep()

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] enable libnl3 < 3.3 build workaround
Fabio M. Di Nitto [Wed, 8 Aug 2018 05:48:37 +0000 (07:48 +0200)]
[libnozzle] enable libnl3 < 3.3 build workaround

fixes build on opensuse-42

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] Use libnl3.0 for ip address management on Linux
Fabio M. Di Nitto [Tue, 7 Aug 2018 09:02:45 +0000 (11:02 +0200)]
[libnozzle] Use libnl3.0 for ip address management on Linux

BSD will follow next using internal ioctls and drop usage of forking a shell

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] whitespace cleanup
Fabio M. Di Nitto [Mon, 6 Aug 2018 08:37:27 +0000 (10:37 +0200)]
[libnozzle] whitespace cleanup

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] expand buffers to deal with strncpy and -Werror=stringop-truncatio
Fabio M. Di Nitto [Fri, 2 Mar 2018 04:44:30 +0000 (05:44 +0100)]
[nozzle] expand buffers to deal with strncpy and -Werror=stringop-truncatio

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] drop duplicated code
Fabio M. Di Nitto [Thu, 22 Feb 2018 05:11:11 +0000 (06:11 +0100)]
[nozzle] drop duplicated code

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] enable libnozzle build by default
Fabio M. Di Nitto [Thu, 22 Feb 2018 05:06:29 +0000 (06:06 +0100)]
[nozzle] enable libnozzle build by default

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] move man pages to top level dir
Fabio M. Di Nitto [Mon, 19 Feb 2018 13:34:04 +0000 (14:34 +0100)]
[nozzle] move man pages to top level dir

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] fix man page generation
Fabio M. Di Nitto [Tue, 30 Jan 2018 06:37:56 +0000 (07:37 +0100)]
[nozzle] fix man page generation

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] propagate errors all the way
Fabio M. Di Nitto [Fri, 26 Jan 2018 05:08:26 +0000 (06:08 +0100)]
[nozzle] propagate errors all the way

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] fix build on BSD
Fabio M. Di Nitto [Fri, 22 Dec 2017 06:29:40 +0000 (07:29 +0100)]
[nozzle] fix build on BSD

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] nozzle_open and nozzle_close should be stable now
Fabio M. Di Nitto [Fri, 22 Dec 2017 06:13:16 +0000 (07:13 +0100)]
[nozzle] nozzle_open and nozzle_close should be stable now

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] move set up and down to the stable API section
Fabio M. Di Nitto [Fri, 22 Dec 2017 06:01:11 +0000 (07:01 +0100)]
[nozzle] move set up and down to the stable API section

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status...
Fabio M. Di Nitto [Fri, 22 Dec 2017 05:51:10 +0000 (06:51 +0100)]
[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status (part 4)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status...
Fabio M. Di Nitto [Fri, 22 Dec 2017 04:32:05 +0000 (05:32 +0100)]
[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status (part 3)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status...
Fabio M. Di Nitto [Fri, 22 Dec 2017 04:25:57 +0000 (05:25 +0100)]
[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status (part 2)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status...
Fabio M. Di Nitto [Fri, 22 Dec 2017 04:07:33 +0000 (05:07 +0100)]
[nozzle] decouple running pre-up.d/up.d/down.d/post-down.d from interface status (part 1)

provide the facility to do it via nozzle_run_updown but delegate the task to
the application.

This has the benefit of much better fine grained control over errors during those
code paths.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] move find_ip to internals
Fabio M. Di Nitto [Wed, 20 Dec 2017 13:09:17 +0000 (14:09 +0100)]
[nozzle] move find_ip to internals

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] move ipv4 broadcast to internals
Fabio M. Di Nitto [Wed, 20 Dec 2017 12:28:33 +0000 (13:28 +0100)]
[nozzle] move ipv4 broadcast to internals

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup mac address functions
Fabio M. Di Nitto [Wed, 20 Dec 2017 07:53:22 +0000 (08:53 +0100)]
[nozzle] cleanup mac address functions

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] move code around to reflect public API and internal functions
Fabio M. Di Nitto [Wed, 20 Dec 2017 05:15:30 +0000 (06:15 +0100)]
[nozzle] move code around to reflect public API and internal functions

cleanup _get_mtu in the process

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] move code around to reflect completion and drop copy of code from internals.c
Fabio M. Di Nitto [Wed, 20 Dec 2017 05:01:06 +0000 (06:01 +0100)]
[nozzle] move code around to reflect completion and drop copy of code from internals.c

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename _check to is_valid_nozzle, make it more useful and fixup error code...
Fabio M. Di Nitto [Wed, 20 Dec 2017 04:47:19 +0000 (05:47 +0100)]
[nozzle] rename _check to is_valid_nozzle, make it more useful and fixup error code checking

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] be more explicit on function naming (part 2)
Fabio M. Di Nitto [Wed, 20 Dec 2017 04:22:26 +0000 (05:22 +0100)]
[nozzle] be more explicit on function naming (part 2)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] be more explicit on function naming
Fabio M. Di Nitto [Wed, 20 Dec 2017 04:21:34 +0000 (05:21 +0100)]
[nozzle] be more explicit on function naming

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] start cleaning internal function names
Fabio M. Di Nitto [Tue, 19 Dec 2017 05:04:32 +0000 (06:04 +0100)]
[nozzle] start cleaning internal function names

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] split code around to separate libnozzle and testsuite
Fabio M. Di Nitto [Mon, 18 Dec 2017 06:17:39 +0000 (07:17 +0100)]
[nozzle] split code around to separate libnozzle and testsuite

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[build] split tests, man pages and build dirs
Fabio M. Di Nitto [Mon, 18 Dec 2017 05:51:13 +0000 (06:51 +0100)]
[build] split tests, man pages and build dirs

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename lib_mutex to config_mutex
Fabio M. Di Nitto [Mon, 18 Dec 2017 05:35:10 +0000 (06:35 +0100)]
[nozzle] rename lib_mutex to config_mutex

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[build] fix build on BSD
Fabio M. Di Nitto [Thu, 7 Dec 2017 05:47:40 +0000 (06:47 +0100)]
[build] fix build on BSD

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[cleanup] document nozzle_iface struct, drop unnecessary ifr struct and cleanup names
Fabio M. Di Nitto [Thu, 7 Dec 2017 05:43:45 +0000 (06:43 +0100)]
[cleanup] document nozzle_iface struct, drop unnecessary ifr struct and cleanup names

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[cleanup] rename ip_addr to ipaddr
Fabio M. Di Nitto [Thu, 7 Dec 2017 05:17:51 +0000 (06:17 +0100)]
[cleanup] rename ip_addr to ipaddr

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[cleanup] rename sockfd to ioctlfd
Fabio M. Di Nitto [Thu, 7 Dec 2017 05:14:37 +0000 (06:14 +0100)]
[cleanup] rename sockfd to ioctlfd

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[cleanup] rename struct _ip to struct nozzle_ip and cleanup related defines
Fabio M. Di Nitto [Thu, 7 Dec 2017 05:12:15 +0000 (06:12 +0100)]
[cleanup] rename struct _ip to struct nozzle_ip and cleanup related defines

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename _config to nozzle_lib_config
Fabio M. Di Nitto [Thu, 7 Dec 2017 05:01:32 +0000 (06:01 +0100)]
[nozzle] rename _config to nozzle_lib_config

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[cleanup] start splitting the code across multiple files
Fabio M. Di Nitto [Thu, 7 Dec 2017 04:57:41 +0000 (05:57 +0100)]
[cleanup] start splitting the code across multiple files

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_get_fd
Fabio M. Di Nitto [Mon, 20 Nov 2017 05:43:28 +0000 (06:43 +0100)]
[nozzle] cleanup and document nozzle_get_fd

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>