]> git.proxmox.com Git - mirror_kronosnet.git/log
mirror_kronosnet.git
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 agoMerge pull request #171 from ppiao/fix-stats-collect-in-tx
Fabio M. Di Nitto [Fri, 16 Nov 2018 05:03:38 +0000 (06:03 +0100)]
Merge pull request #171 from ppiao/fix-stats-collect-in-tx

[tx] fix tx_uncompressed_packets stats collect in _parse_recv_from_sock

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 agoMerge pull request #168 from ppiao/fix-packet-length-in-rx
Fabio M. Di Nitto [Tue, 13 Nov 2018 06:28:52 +0000 (07:28 +0100)]
Merge pull request #168 from ppiao/fix-packet-length-in-rx

[rx] fix incorrect packet length in _parse_recv_from_links

5 years agoMerge branch 'master' into fix-packet-length-in-rx
Fabio M. Di Nitto [Tue, 13 Nov 2018 04:52:59 +0000 (05:52 +0100)]
Merge branch 'master' into fix-packet-length-in-rx

5 years agoMerge pull request #167 from ppiao/minor-changes
Fabio M. Di Nitto [Tue, 13 Nov 2018 04:03:28 +0000 (05:03 +0100)]
Merge pull request #167 from ppiao/minor-changes

Minor changes: add static qualifier and remove goto statement

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>
5 years ago[tx] remove goto statement to improve readability
Chen Jingpiao [Fri, 9 Nov 2018 09:47:17 +0000 (17:47 +0800)]
[tx] remove goto statement to improve readability

Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years agoAdd static qualifier to {compress, crypto, transport}_modules_cmds
Chen Jingpiao [Mon, 12 Nov 2018 02:50:54 +0000 (10:50 +0800)]
Add static qualifier to {compress, crypto, transport}_modules_cmds

Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years agoMerge pull request #166 from ppiao/fix-transports
Fabio M. Di Nitto [Mon, 12 Nov 2018 06:25:51 +0000 (07:25 +0100)]
Merge pull request #166 from ppiao/fix-transports

[transports] fix transport_modules_cmd array out of range

5 years ago[transports] fix transport_modules_cmd array out of range
Chen Jingpiao [Mon, 12 Nov 2018 02:30:18 +0000 (10:30 +0800)]
[transports] fix transport_modules_cmd array out of range

Fixes: 18ab4888
Signed-off-by: Chen Jingpiao <jchen@suse.com>
5 years agoMerge pull request #165 from kronosnet/fix-compiler-options
Fabio M. Di Nitto [Wed, 7 Nov 2018 14:19:55 +0000 (15:19 +0100)]
Merge pull request #165 from kronosnet/fix-compiler-options

[build] fix supported compiler warning detection

5 years ago[build] fix supported compiler warning detection
Fabio M. Di Nitto [Wed, 7 Nov 2018 13:27:16 +0000 (14:27 +0100)]
[build] fix supported compiler warning detection

move from AC_PREPROC_IFELSE (strongly discouraged) to AC_COMPILE_IFELSE

our detection system was very weak and recent versions of clang did
show that PREPROC_IFELFE (cpp) would enable warning options that
the compiler does not support (clang).

use a full compilation test to detect what works and what doesn't.

Also expand the warning list to include new / renamed clang options
of equivalents already enabled for older versions of clang and gcc.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
5 years agoMerge pull request #163 from ppiao/master
Fabio M. Di Nitto [Tue, 6 Nov 2018 20:17:39 +0000 (21:17 +0100)]
Merge pull request #163 from ppiao/master

man: update XML directory in doxyxml.c

5 years agoMerge branch 'master' into master
Fabio M. Di Nitto [Tue, 6 Nov 2018 15:38:10 +0000 (16:38 +0100)]
Merge branch 'master' into master

5 years agoMerge pull request #164 from ppiao/fix-typo
Fabio M. Di Nitto [Tue, 6 Nov 2018 15:37:52 +0000 (16:37 +0100)]
Merge pull request #164 from ppiao/fix-typo

Fix typo

5 years agotests: fix output message
Chen Jingpiao [Wed, 31 Oct 2018 08:09:44 +0000 (16:09 +0800)]
tests: fix output message

Fixes: 04537c57 ("[transports] cleanup API calls")
Signed-off-by: Chen Jingpiao <chenjingpiao@gmail.com>
5 years agofix typo
Chen Jingpiao [Mon, 5 Nov 2018 02:22:45 +0000 (10:22 +0800)]
fix typo

Signed-off-by: Chen Jingpiao <chenjingpiao@gmail.com>
5 years agoman: update XML directory in doxyxml.c
Chen Jingpiao [Mon, 5 Nov 2018 02:10:44 +0000 (10:10 +0800)]
man: update XML directory in doxyxml.c

Fixes: 31945b18 ("[man] move libknet man pages and man pages build tools to top level dir")
Signed-off-by: Chen Jingpiao <chenjingpiao@gmail.com>
5 years agoMerge pull request #161 from kronosnet/pthread-keep-covscan-quiet
Fabio M. Di Nitto [Tue, 23 Oct 2018 05:07:49 +0000 (07:07 +0200)]
Merge pull request #161 from kronosnet/pthread-keep-covscan-quiet

misc: keep covscan happy

5 years agomisc: keep covscan happy
Christine Caulfield [Mon, 22 Oct 2018 15:10:08 +0000 (16:10 +0100)]
misc: keep covscan happy

covscan complains about is ignoring returns from pthread_mutex_lock()
but in those 2 circumstances we don't have much choice.

This patch just keeps coverity quiet so we don't miss any real bugs it
might find.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
5 years agoMerge pull request #160 from kronosnet/dont-close-loopback
Fabio M. Di Nitto [Sun, 21 Oct 2018 05:10:29 +0000 (07:10 +0200)]
Merge pull request #160 from kronosnet/dont-close-loopback

links: Don't close loopback link

5 years agolinks: Don't close loopback link
Christine Caulfield [Fri, 19 Oct 2018 12:13:47 +0000 (13:13 +0100)]
links: Don't close loopback link

knet_link_clear_config would incorrectly clear the local
loopback link if the last 'real' link to an external node
was closed. We didn't check the nodeid in the code, just
the link number when clearing the loopback flag.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
5 years agoMerge pull request #159 from jfriesse/nss-misalligned-private-key
Fabio M. Di Nitto [Mon, 8 Oct 2018 08:05:56 +0000 (10:05 +0200)]
Merge pull request #159 from jfriesse/nss-misalligned-private-key

Import key with length not dividable by wrap key block size

5 years agoImport key with length not dividable by wrap key block size
Jan Friesse [Mon, 1 Oct 2018 09:39:09 +0000 (11:39 +0200)]
Import key with length not dividable by wrap key block size

Wrapping of the key is standard crypto operation which needs data
aligned to cipher block size, otherwise it fails.

Possible solution is to use a zero filled buffer with size aligned to
required wrap key block size. Private key is copied to the beginning of
the buffer and unwrap operation keeps using only required private key
size.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoMerge pull request #158 from kronosnet/fix-select
Fabio M. Di Nitto [Tue, 11 Sep 2018 15:30:30 +0000 (17:30 +0200)]
Merge pull request #158 from kronosnet/fix-select

Fix select

6 years ago[tests] clear errno to avoid incorrect propagation from void fn call
Fabio M. Di Nitto [Tue, 11 Sep 2018 14:09:09 +0000 (16:09 +0200)]
[tests] clear errno to avoid incorrect propagation from void fn call

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[tests] fix select(2) handling (mostly affects slow machines)
Fabio M. Di Nitto [Tue, 11 Sep 2018 14:07:41 +0000 (16:07 +0200)]
[tests] fix select(2) handling (mostly affects slow machines)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #157 from kronosnet/threads
Fabio M. Di Nitto [Thu, 6 Sep 2018 13:51:21 +0000 (15:51 +0200)]
Merge pull request #157 from kronosnet/threads

[threads] make it easier to debug thread startup / stop operations wi…

6 years ago[threads] make it easier to debug thread startup / stop operations with pretty names
Fabio M. Di Nitto [Thu, 6 Sep 2018 11:32:06 +0000 (13:32 +0200)]
[threads] make it easier to debug thread startup / stop operations with pretty names

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #156 from jfriesse/gitarchivever
Fabio M. Di Nitto [Wed, 5 Sep 2018 12:33:00 +0000 (14:33 +0200)]
Merge pull request #156 from jfriesse/gitarchivever

Use git archive stored version tag

6 years agoUse gitarchive-version for spec file
Jan Friesse [Tue, 4 Sep 2018 16:02:19 +0000 (18:02 +0200)]
Use gitarchive-version for spec file

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agogit-version-gen fail on UNKNOWN version
Jan Friesse [Mon, 3 Sep 2018 15:43:03 +0000 (17:43 +0200)]
git-version-gen fail on UNKNOWN version

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoDo not match lightweight tags in git-version-gen
Jan Friesse [Tue, 4 Sep 2018 15:52:11 +0000 (17:52 +0200)]
Do not match lightweight tags in git-version-gen

Fix leftover from 175b517fd71d999150aa701ec847510490a18a6e which added
matching of lightweight git tags.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoSupport for git archive stored tags
Jan Friesse [Tue, 4 Sep 2018 15:51:21 +0000 (17:51 +0200)]
Support for git archive stored tags

Attempt to solve problem with git archive generated tarballs
(used for example by github when release is downloaded) which are no
longer git tree and (in contrast to officially released tarballs) also
doesn't contain .tarball-version file so git-version-gen script simply
cannot obtain valid version info.

Solution is based on using gitattributes which is instructs git to
replace string in the .gitarchivever file by known ref names.
git-version-gen is enhanced to support this file and tries to parse
any string which looks like "tag: v[0-9][^,)]*". If such string
is found it's used as a version. This file is used as a last attempt and
other methods (.tarball-version, git abbrev) have precedence.

Based on idea stated by Jan Pokorný <jpokorny@redhat.com>.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
6 years agoMerge pull request #154 from kronosnet/nss-fixes
Fabio M. Di Nitto [Thu, 16 Aug 2018 08:43:34 +0000 (10:43 +0200)]
Merge pull request #154 from kronosnet/nss-fixes

small ci / tests fixes

6 years ago[tests] drop arm exceptions as they have been fixed in glibc
Fabio M. Di Nitto [Thu, 16 Aug 2018 06:01:53 +0000 (08:01 +0200)]
[tests] drop arm exceptions as they have been fixed in glibc

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[tests] cleanup nss memcheck supports
Fabio M. Di Nitto [Thu, 16 Aug 2018 05:01:29 +0000 (07:01 +0200)]
[tests] cleanup nss memcheck supports

add one more exception for newer nss (spotted on fedora rawhide)
drop FreeBSD excetions as we don't support running under valgrind on BSD

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #153 from kronosnet/locking-cleanup
Fabio M. Di Nitto [Fri, 3 Aug 2018 11:43:42 +0000 (13:43 +0200)]
Merge pull request #153 from kronosnet/locking-cleanup

Locking cleanup

6 years ago[threads] use internal array to track status of threads (running/stopped) vs a random...
Fabio M. Di Nitto [Wed, 1 Aug 2018 12:21:38 +0000 (14:21 +0200)]
[threads] use internal array to track status of threads (running/stopped) vs a random sleep()

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[tests] don't redefine symbols from the main library
Fabio M. Di Nitto [Wed, 1 Aug 2018 05:56:21 +0000 (07:56 +0200)]
[tests] don't redefine symbols from the main library

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[tests] adds more overrides for fedora28/arm/glibc
Fabio M. Di Nitto [Mon, 30 Jul 2018 16:15:24 +0000 (18:15 +0200)]
[tests] adds more overrides for fedora28/arm/glibc

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[handle] reduce usage of handle_config_mutex to wrap only global lib init
Fabio M. Di Nitto [Mon, 30 Jul 2018 14:12:18 +0000 (16:12 +0200)]
[handle] reduce usage of handle_config_mutex to wrap only global lib init

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[logging] report error in case logging buffer is bigger than PIPE_BUF
Fabio M. Di Nitto [Mon, 30 Jul 2018 04:19:56 +0000 (06:19 +0200)]
[logging] report error in case logging buffer is bigger than PIPE_BUF

See https://github.com/kronosnet/kronosnet/pull/148

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[handle] drop init_lock_done as it was used only by locked version of log_msg
Fabio M. Di Nitto [Sun, 29 Jul 2018 04:31:45 +0000 (06:31 +0200)]
[handle] drop init_lock_done as it was used only by locked version of log_msg

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[logging] drop locking inside log_msg (part 1)
Fabio M. Di Nitto [Sun, 29 Jul 2018 04:28:11 +0000 (06:28 +0200)]
[logging] drop locking inside log_msg (part 1)

looking at the code, there are only few calls to log_msg happening outside
of locking context (error reports when failing to grab the lock).
Everything else appears to be safe.

drop the attempt to lock inside log_msg for now, part 2 will address those
few calls that can happen outside of locking context.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[handle] drop call to log_msg that would have no effect
Fabio M. Di Nitto [Sun, 29 Jul 2018 03:59:20 +0000 (05:59 +0200)]
[handle] drop call to log_msg that would have no effect

logging is not setup yet at this stage and we can't log just yet.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #152 from kronosnet/ci-fixes
Fabio M. Di Nitto [Tue, 17 Jul 2018 15:16:46 +0000 (17:16 +0200)]
Merge pull request #152 from kronosnet/ci-fixes

Ci fixes

6 years ago[tests] ignore nss internal memory leak (3.38+) non recurring
Fabio M. Di Nitto [Tue, 17 Jul 2018 11:02:08 +0000 (13:02 +0200)]
[tests] ignore nss internal memory leak (3.38+) non recurring

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[tests] reference correct library in memcheck comments
Fabio M. Di Nitto [Tue, 17 Jul 2018 04:42:00 +0000 (06:42 +0200)]
[tests] reference correct library in memcheck comments

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #151 from kronosnet/deb-exp
Fabio M. Di Nitto [Fri, 8 Jun 2018 10:36:52 +0000 (12:36 +0200)]
Merge pull request #151 from kronosnet/deb-exp

[tests] add another lzma exception

6 years ago[tests] add another lzma exception
Fabio M. Di Nitto [Fri, 8 Jun 2018 04:59:54 +0000 (06:59 +0200)]
[tests] add another lzma exception

spotted on Debian Experimental, the latest toolchain appears to add
full path to objects and valgrind would generate an error.

add a generic catch-all path exception.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #149 from kronosnet/log-cleanup
Fabio M. Di Nitto [Thu, 26 Apr 2018 04:00:10 +0000 (06:00 +0200)]
Merge pull request #149 from kronosnet/log-cleanup

Log cleanup

6 years agocoding style: add parentheses after the sizeof operator
Ferenc Wágner [Tue, 24 Apr 2018 18:10:49 +0000 (20:10 +0200)]
coding style: add parentheses after the sizeof operator

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agolog_msg: no point in putting NL after the final NUL
Ferenc Wágner [Mon, 23 Apr 2018 16:56:34 +0000 (18:56 +0200)]
log_msg: no point in putting NL after the final NUL

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoknet_log_msg: fix documentation: the closing newline is added by flush_logs
Ferenc Wágner [Mon, 23 Apr 2018 16:18:20 +0000 (18:18 +0200)]
knet_log_msg: fix documentation: the closing newline is added by flush_logs

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years ago_logthread: while loop instead of goto
Ferenc Wágner [Mon, 23 Apr 2018 16:11:25 +0000 (18:11 +0200)]
_logthread: while loop instead of goto

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years ago_logthread: select() returns the number of set bits, as an int
Ferenc Wágner [Mon, 23 Apr 2018 16:03:21 +0000 (18:03 +0200)]
_logthread: select() returns the number of set bits, as an int

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoflush_logs: don't ever print past the message buffer
Ferenc Wágner [Mon, 23 Apr 2018 14:17:59 +0000 (16:17 +0200)]
flush_logs: don't ever print past the message buffer

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoflush_logs: while loop instead of goto
Ferenc Wágner [Mon, 23 Apr 2018 14:14:14 +0000 (16:14 +0200)]
flush_logs: while loop instead of goto

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoflush_logs: a for loop is more straightforward here
Ferenc Wágner [Mon, 23 Apr 2018 14:02:58 +0000 (16:02 +0200)]
flush_logs: a for loop is more straightforward here

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoflush_logs: don't repeat the type of msg
Ferenc Wágner [Mon, 23 Apr 2018 13:59:22 +0000 (15:59 +0200)]
flush_logs: don't repeat the type of msg

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoflush_logs: the reads will overwrite the entire msg structure
Ferenc Wágner [Mon, 23 Apr 2018 13:56:34 +0000 (15:56 +0200)]
flush_logs: the reads will overwrite the entire msg structure

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoflush_logs: remove redundant condition
Ferenc Wágner [Mon, 23 Apr 2018 13:53:33 +0000 (15:53 +0200)]
flush_logs: remove redundant condition

The read loop is always entered, resetting len and returning from the
function if it isn't greater than 0.

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoMerge pull request #146 from kronosnet/extra-checks
Fabio M. Di Nitto [Fri, 20 Apr 2018 16:48:53 +0000 (18:48 +0200)]
Merge pull request #146 from kronosnet/extra-checks

[crypto] NSS_NoDB_Init: the parameter is reserved, must be NULL

6 years ago[crypto] NSS_NoDB_Init: the parameter is reserved, must be NULL
Fabio M. Di Nitto [Fri, 20 Apr 2018 12:36:12 +0000 (14:36 +0200)]
[crypto] NSS_NoDB_Init: the parameter is reserved, must be NULL

Thanks to Feri for spotting it in corosync

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #144 from kronosnet/extra-checks
Fabio M. Di Nitto [Fri, 20 Apr 2018 12:28:41 +0000 (14:28 +0200)]
Merge pull request #144 from kronosnet/extra-checks

[crypto] improve checks around RX packet size

6 years ago[crypto] improve checks around RX packet size
Fabio M. Di Nitto [Fri, 20 Apr 2018 04:19:13 +0000 (06:19 +0200)]
[crypto] improve checks around RX packet size

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #143 from kronosnet/source_epoch
wferi [Mon, 26 Mar 2018 20:20:06 +0000 (22:20 +0200)]
Merge pull request #143 from kronosnet/source_epoch

Source epoch and version check

6 years agobuild: look for source_epoch in srcdir
Ferenc Wágner [Mon, 26 Mar 2018 08:56:36 +0000 (10:56 +0200)]
build: look for source_epoch in srcdir

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agobuild: check for SOURCE_DATE_EPOCH before turning to Git for an epoch
Ferenc Wágner [Sun, 25 Mar 2018 20:07:25 +0000 (22:07 +0200)]
build: check for SOURCE_DATE_EPOCH before turning to Git for an epoch

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years ago[build] fail and provide proper error if source tree version is unknown
Fabio M. Di Nitto [Tue, 13 Mar 2018 14:44:11 +0000 (15:44 +0100)]
[build] fail and provide proper error if source tree version is unknown

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agobuild: git -C is a relatively new option, avoid it
Ferenc Wágner [Fri, 23 Mar 2018 14:46:16 +0000 (15:46 +0100)]
build: git -C is a relatively new option, avoid it

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agobuild: accomodate to the actual date utility
Ferenc Wágner [Fri, 23 Mar 2018 14:33:53 +0000 (15:33 +0100)]
build: accomodate to the actual date utility

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agospec: use the source epoch here as well
Ferenc Wágner [Thu, 22 Mar 2018 13:26:20 +0000 (14:26 +0100)]
spec: use the source epoch here as well

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoman: use new doxyxml date options to build man pages
Ferenc Wágner [Thu, 22 Mar 2018 13:18:18 +0000 (14:18 +0100)]
man: use new doxyxml date options to build man pages

Based on Fabio's original patch.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoman: Add date & year options to doxyxml
Christine Caulfield [Thu, 15 Mar 2018 14:08:20 +0000 (14:08 +0000)]
man: Add date & year options to doxyxml

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
6 years agobuild: distribute the source_epoch file
Ferenc Wágner [Thu, 22 Mar 2018 11:12:33 +0000 (12:12 +0100)]
build: distribute the source_epoch file

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agobuild: determine SOURCE_EPOCH during configuration
Ferenc Wágner [Thu, 22 Mar 2018 09:29:07 +0000 (10:29 +0100)]
build: determine SOURCE_EPOCH during configuration

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoMerge pull request #139 from kronosnet/new-compress-level-checks v1.90
Fabio M. Di Nitto [Mon, 26 Feb 2018 13:46:34 +0000 (14:46 +0100)]
Merge pull request #139 from kronosnet/new-compress-level-checks

[compress] delegate compress_level validation to compress libraries

6 years ago[compress] extend check to compare end buffer data
Fabio M. Di Nitto [Mon, 26 Feb 2018 03:44:07 +0000 (04:44 +0100)]
[compress] extend check to compare end buffer data

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[compress] update valgrind exception file to match new lzma entry points
Fabio M. Di Nitto [Sun, 25 Feb 2018 08:24:49 +0000 (09:24 +0100)]
[compress] update valgrind exception file to match new lzma entry points

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[compress] delegate compress_level validation to compress libraries
Fabio M. Di Nitto [Sun, 25 Feb 2018 07:23:49 +0000 (08:23 +0100)]
[compress] delegate compress_level validation to compress libraries

- make val_level internal api call optional
- keep lzo2 val_level around due to the specific nature of compress_level values
- add internal compress_lib_test to do a round-robin (compress/decompress) check with provided values
- drop unnecessary val_level checks around
- update internal compress API include file
- adjust api_knet_handle_compress test to use a known bad value for zlib validation

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #138 from kronosnet/host-filter-fix
Fabio M. Di Nitto [Mon, 26 Feb 2018 11:26:48 +0000 (12:26 +0100)]
Merge pull request #138 from kronosnet/host-filter-fix

[tx/rx] improve error checking when running external code

6 years ago[tx/rx] improve error checking when running external code
Fabio M. Di Nitto [Sun, 25 Feb 2018 05:02:49 +0000 (06:02 +0100)]
[tx/rx] improve error checking when running external code

libknet cannot guarantee that the dst_host_filter is sane nor that it cannot
be exploited to return garbage to knet.

there is an infinitesimal possibility that, if the plugin returns total crap,
knet could crash by trying to access out-of-bound memory.

Prevent that by adding specific checks both in TX/RX.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #137 from kronosnet/fix-log-gen
Fabio M. Di Nitto [Fri, 23 Feb 2018 19:03:39 +0000 (20:03 +0100)]
Merge pull request #137 from kronosnet/fix-log-gen

[build] fix ChangeLog generation in release tarball

6 years ago[build] fix ChangeLog generation in release tarball
Fabio M. Di Nitto [Fri, 23 Feb 2018 15:41:08 +0000 (16:41 +0100)]
[build] fix ChangeLog generation in release tarball

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #124 from kronosnet/test_handle
Fabio M. Di Nitto [Tue, 20 Feb 2018 07:49:58 +0000 (08:49 +0100)]
Merge pull request #124 from kronosnet/test_handle

Unprivileged handles

6 years agoIndicate new API call in libtool version info
Ferenc Wágner [Mon, 19 Feb 2018 08:41:45 +0000 (09:41 +0100)]
Indicate new API call in libtool version info

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agobuild: provide -version-info directly instead of -version-number
Ferenc Wágner [Mon, 19 Feb 2018 08:53:53 +0000 (09:53 +0100)]
build: provide -version-info directly instead of -version-number

The info components carry the real OS-independent library version
information, from which the version number is computed differently
on different systems. According to the libtool manual "new projects
should use the -version-info flag instead".

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoNew API function: knet_handle_new_ex() taking handle flags
Ferenc Wágner [Sun, 18 Feb 2018 17:19:39 +0000 (18:19 +0100)]
New API function: knet_handle_new_ex() taking handle flags

For now, the only supported flag is KNET_HANDLE_FLAG_PRIVILEGED,
which is also the default in knet_handle_new().

The tests are adapted to switch this flag off, which makes them pass
in default environments without privileges.

Signed-off-by: Ferenc Wágner <wferi@debian.org>
6 years agoMerge pull request #136 from chrissie-c/fix-udp-einval
Fabio M. Di Nitto [Tue, 20 Feb 2018 04:52:32 +0000 (05:52 +0100)]
Merge pull request #136 from chrissie-c/fix-udp-einval

UDP: Don't keep retrying send if we get EINVAL

6 years agoUDP: Don't keep retrying send if we get EINVAL
Christine Caulfield [Mon, 19 Feb 2018 14:13:41 +0000 (14:13 +0000)]
UDP: Don't keep retrying send if we get EINVAL

UDP can return EINVAL if the route is down or not configured, this can
cause knet to 'spin' (well, ish, there is a usleep in there).

With this patch in place knet doesn't hog the CPU anywhere near so much
(and it does recover if the link returns).

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
6 years agoMerge pull request #134 from kronosnet/move-man
Fabio M. Di Nitto [Mon, 19 Feb 2018 13:20:37 +0000 (14:20 +0100)]
Merge pull request #134 from kronosnet/move-man

Move man

6 years agodoxyxml: Use overridden XML_DIR for reading structures
Christine Caulfield [Mon, 19 Feb 2018 11:30:25 +0000 (11:30 +0000)]
doxyxml: Use overridden XML_DIR for reading structures

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
6 years ago[man] fix path to stamp file
Fabio M. Di Nitto [Mon, 19 Feb 2018 05:07:54 +0000 (06:07 +0100)]
[man] fix path to stamp file

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[man] move kronosnetd man pages
Fabio M. Di Nitto [Mon, 19 Feb 2018 05:05:16 +0000 (06:05 +0100)]
[man] move kronosnetd man pages

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years ago[man] move libknet man pages and man pages build tools to top level dir
Fabio M. Di Nitto [Mon, 19 Feb 2018 04:59:48 +0000 (05:59 +0100)]
[man] move libknet man pages and man pages build tools to top level dir

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
6 years agoMerge pull request #127 from kronosnet/configure-hardening2
Fabio M. Di Nitto [Sun, 18 Feb 2018 04:57:03 +0000 (05:57 +0100)]
Merge pull request #127 from kronosnet/configure-hardening2

Configure hardening

6 years ago[build] simplify Doxygen test based on Feri's input
Fabio M. Di Nitto [Sat, 17 Feb 2018 05:21:12 +0000 (06:21 +0100)]
[build] simplify Doxygen test based on Feri's input

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