]> git.proxmox.com Git - mirror_kronosnet.git/log
mirror_kronosnet.git
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>
5 years ago[nozzle] cleanup and document nozzle_get_name_by_handle
Fabio M. Di Nitto [Mon, 20 Nov 2017 05:40:04 +0000 (06:40 +0100)]
[nozzle] cleanup and document nozzle_get_name_by_handle

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

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

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

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years agoTidy some English
Christine Caulfield [Fri, 17 Nov 2017 14:41:07 +0000 (14:41 +0000)]
Tidy some English

5 years ago[nozzle] cleanup and document nozzle_set_mtu and nozzle_reset_mtu
Fabio M. Di Nitto [Thu, 16 Nov 2017 17:02:08 +0000 (18:02 +0100)]
[nozzle] cleanup and document nozzle_set_mtu and nozzle_reset_mtu

couldn't split those 2 because they are stricly related

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_get_mtu
Fabio M. Di Nitto [Thu, 16 Nov 2017 16:40:20 +0000 (17:40 +0100)]
[nozzle] cleanup and document nozzle_get_mtu

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] fix test on BSD
Fabio M. Di Nitto [Thu, 16 Nov 2017 16:25:16 +0000 (17:25 +0100)]
[nozzle] fix test on BSD

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_get_ips (part 1)
Fabio M. Di Nitto [Thu, 16 Nov 2017 16:18:04 +0000 (17:18 +0100)]
[nozzle] cleanup and document nozzle_get_ips (part 1)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_del_ip
Fabio M. Di Nitto [Thu, 16 Nov 2017 16:04:36 +0000 (17:04 +0100)]
[nozzle] cleanup and document nozzle_del_ip

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_add_ip
Fabio M. Di Nitto [Thu, 16 Nov 2017 15:52:35 +0000 (16:52 +0100)]
[nozzle] cleanup and document nozzle_add_ip

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] re-order functions in order of importance
Fabio M. Di Nitto [Thu, 16 Nov 2017 15:28:52 +0000 (16:28 +0100)]
[nozzle] re-order functions in order of importance

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_set_down
Fabio M. Di Nitto [Thu, 16 Nov 2017 15:23:09 +0000 (16:23 +0100)]
[nozzle] cleanup and document nozzle_set_down

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup and document nozzle_set_up
Fabio M. Di Nitto [Thu, 16 Nov 2017 15:18:08 +0000 (16:18 +0100)]
[nozzle] cleanup and document nozzle_set_up

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] start to cleanup nozzle_close to be more informative and effective
Fabio M. Di Nitto [Thu, 16 Nov 2017 14:51:18 +0000 (15:51 +0100)]
[nozzle] start to cleanup nozzle_close to be more informative and effective

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] cleanup nozzle_open coding style and return codes
Fabio M. Di Nitto [Thu, 16 Nov 2017 14:21:07 +0000 (15:21 +0100)]
[nozzle] cleanup nozzle_open coding style and return codes

also update the header file for Doxygen man pages

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename last tap bits to nozzle
Fabio M. Di Nitto [Thu, 16 Nov 2017 13:03:56 +0000 (14:03 +0100)]
[nozzle] rename last tap bits to nozzle

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename API from tap_ to nozzle_
Fabio M. Di Nitto [Thu, 16 Nov 2017 12:52:08 +0000 (13:52 +0100)]
[nozzle] rename API from tap_ to nozzle_

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] fix pkg-config to point to nozzle
Fabio M. Di Nitto [Thu, 16 Nov 2017 12:51:43 +0000 (13:51 +0100)]
[nozzle] fix pkg-config to point to nozzle

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename struct _iface to nozzle_iface (looks better on public headers)
Fabio M. Di Nitto [Thu, 16 Nov 2017 12:48:38 +0000 (13:48 +0100)]
[nozzle] rename struct _iface to nozzle_iface (looks better on public headers)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] rename tap_t to nozzle_t
Fabio M. Di Nitto [Thu, 16 Nov 2017 12:46:19 +0000 (13:46 +0100)]
[nozzle] rename tap_t to nozzle_t

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] include net/if.h to define IFNAMSIZ instead of redefine
Fabio M. Di Nitto [Thu, 16 Nov 2017 12:44:19 +0000 (13:44 +0100)]
[nozzle] include net/if.h to define IFNAMSIZ instead of redefine

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[nozzle] add Doxygen header
Fabio M. Di Nitto [Thu, 16 Nov 2017 12:43:53 +0000 (13:43 +0100)]
[nozzle] add Doxygen header

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libnozzle] rename libtap to libnozzle (part 1)
Fabio M. Di Nitto [Thu, 16 Nov 2017 05:41:25 +0000 (06:41 +0100)]
[libnozzle] rename libtap to libnozzle (part 1)

Our fearless Debian maintainer wferi made us aware that TAP is an overloaded
term already and it would be very confusing to add yet another one.

nozzle is a good pick from http://www.thesaurus.com/browse/tap

I am sure lib*cock* would have cause havoc :-)

This commit only rename files and allow builds. The API needs to be renamed too,
but that will come over time with major code cleanup as documented here:
https://trello.com/c/pyEKd4UH/396-libnozzle-make-it-production-ga-ready

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] BSD: switch to ioctl to destroy tap devices
Fabio M. Di Nitto [Thu, 16 Nov 2017 05:18:57 +0000 (06:18 +0100)]
[libtap] BSD: switch to ioctl to destroy tap devices

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] define IFNAMSIZ for applications that don't need/want to include net/if.h
Fabio M. Di Nitto [Fri, 10 Nov 2017 15:55:23 +0000 (16:55 +0100)]
[libtap] define IFNAMSIZ for applications that don't need/want to include net/if.h

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] update README for BSD
Fabio M. Di Nitto [Thu, 9 Nov 2017 13:24:56 +0000 (14:24 +0100)]
[libtap] update README for BSD

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] port to freebsd and fix a bunch of small bugs
Fabio M. Di Nitto [Thu, 9 Nov 2017 07:29:26 +0000 (08:29 +0100)]
[libtap] port to freebsd and fix a bunch of small bugs

- tap_open: do mutex lock only after malloc to avoid deadlock
- fix test suite to increase randomness when testing named tap devices
- remove hardcoded paths to /bin/true /bin/false and /bin/grep

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] tests: add better IPv6 private address space randomization
Fabio M. Di Nitto [Tue, 7 Nov 2017 10:08:32 +0000 (11:08 +0100)]
[libtap] tests: add better IPv6 private address space randomization

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[libtap] tests: allow random localhost IPs for testing
Fabio M. Di Nitto [Tue, 7 Nov 2017 08:33:07 +0000 (09:33 +0100)]
[libtap] tests: allow random localhost IPs for testing

- avoids clashing with machine routing
- allows parallel testing

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years agoUDP: Cope with EPERM returned from sendmsg/sendto
Christine Caulfield [Thu, 13 Dec 2018 09:59:30 +0000 (09:59 +0000)]
UDP: Cope with EPERM returned from sendmsg/sendto

IPtables can cause -EPERM to be returned from socket sends, so
we need to be able to handle it without going into a spin.

SCTP seems to be unaffected.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
5 years ago[misc] fix a few typos/stylistics
Jan Pokorný [Mon, 3 Dec 2018 10:36:55 +0000 (11:36 +0100)]
[misc] fix a few typos/stylistics

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
5 years ago[tests] update error message in api_knet_{addrtostr,strtoaddr}.c
Chen Jingpiao [Thu, 22 Nov 2018 05:23:42 +0000 (13:23 +0800)]
[tests] update error message in api_knet_{addrtostr,strtoaddr}.c

Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years ago[tests] fix check condition in api_knet_{addrtostr,strtoaddr}.c
Chen Jingpiao [Thu, 22 Nov 2018 05:20:07 +0000 (13:20 +0800)]
[tests] fix check condition in api_knet_{addrtostr,strtoaddr}.c

Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years agoclear the errno in each exported API when the call success
Chen Jingpiao [Tue, 27 Nov 2018 02:46:49 +0000 (10:46 +0800)]
clear the errno in each exported API when the call success

Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years ago[openssl] fix return type for pthread_self
Fabio M. Di Nitto [Tue, 20 Nov 2018 04:31:58 +0000 (05:31 +0100)]
[openssl] fix return type for pthread_self

spotted on freebsd-devel

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years ago[tx] fix tx_uncompressed_packets stats collect in _parse_recv_from_sock
Chen Jingpiao [Sun, 11 Nov 2018 06:49:09 +0000 (14:49 +0800)]
[tx] fix tx_uncompressed_packets stats collect in _parse_recv_from_sock

Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years ago[rx] fix incorrect packet length in _parse_recv_from_links
Chen Jingpiao [Tue, 13 Nov 2018 02:24:53 +0000 (10:24 +0800)]
[rx] fix incorrect packet length in _parse_recv_from_links

Signed-off-by: Chen Jingpiao <jchen@suse.com>