]>
git.proxmox.com Git - mirror_kronosnet.git/log
Fabio M. Di Nitto [Fri, 29 Aug 2014 11:08:56 +0000 (13:08 +0200)]
[nss] fix calculation for crypto header to include SALT_SIZE
and propagate block size up in the layers to allow PMTUd thread
to round buffers and do crypted PMTUd packets.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 28 Aug 2014 15:14:47 +0000 (17:14 +0200)]
[link] add rudimentary PMTUD support.
1) It won't work with crypto enable yet
2) values are not really used yet for anything
3) no API calls implemented yet
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 11 Aug 2014 17:39:56 +0000 (19:39 +0200)]
[listener] check setsockopts return codes
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 23 Jul 2014 12:05:21 +0000 (14:05 +0200)]
[nss] make sure that any crypto config requires a proper hashing value
this is mandatory to avoid some collision checks when random junk
is received over the network socket
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 21 Jul 2014 14:46:35 +0000 (16:46 +0200)]
[libtap] check for error buffers only when necessary
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 21 Jul 2014 09:39:17 +0000 (11:39 +0200)]
[build] fix pkg-config files to link correctly
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 21 Jul 2014 09:38:57 +0000 (11:38 +0200)]
[build] libtap requires sys/types.h for size_t definition
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 20 Jul 2014 10:40:43 +0000 (12:40 +0200)]
[build] cleanup after test-driver
update .gitignore and make maintainer-clean target
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Michele Baldessari [Sat, 16 Nov 2013 13:26:57 +0000 (14:26 +0100)]
This fixes build on F20 with gcc 4.8.2
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 31 Aug 2013 04:16:02 +0000 (06:16 +0200)]
Update slides
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sat, 15 Jun 2013 04:25:43 +0000 (06:25 +0200)]
libknet: add extra error checking
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 10 Jun 2013 07:02:49 +0000 (09:02 +0200)]
kronosnetd: add support for pong_count
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 10 Jun 2013 06:29:56 +0000 (08:29 +0200)]
link: add pong count handling to avoid excessive flapping of traffic
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 9 Jun 2013 13:41:34 +0000 (15:41 +0200)]
cleanup TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 9 Jun 2013 13:40:22 +0000 (15:40 +0200)]
crypto: track size of crypto overhead data
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 9 Jun 2013 09:02:02 +0000 (11:02 +0200)]
libknet: comment out un-used onwire data for now
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 11 Mar 2013 11:51:46 +0000 (12:51 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 10 Mar 2013 05:45:35 +0000 (06:45 +0100)]
build: fix install target
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 10 Mar 2013 05:26:58 +0000 (06:26 +0100)]
listener: fix more unistd.h breakage
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 1 Feb 2013 10:31:01 +0000 (11:31 +0100)]
Every set should have a get...
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 1 Feb 2013 10:24:03 +0000 (11:24 +0100)]
cleanup a few bits around logging and interal API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 30 Jan 2013 04:53:16 +0000 (05:53 +0100)]
libknet: keep host list cached in knet handle
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 30 Jan 2013 04:38:36 +0000 (05:38 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 14:17:10 +0000 (15:17 +0100)]
libknet: add link api call to get list of configured links
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 12:28:09 +0000 (13:28 +0100)]
Finish to cleanup current logging API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 11:49:05 +0000 (12:49 +0100)]
logging: start documenting API and other bits
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 11:24:51 +0000 (12:24 +0100)]
logging: fix formatting
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 10:25:49 +0000 (11:25 +0100)]
fix README pam section
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 10:18:08 +0000 (11:18 +0100)]
Fix ping_test to deal with EINVAL return codes
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 10:02:14 +0000 (11:02 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 10:00:42 +0000 (11:00 +0100)]
libknet: fix knet_link_get_status and document it
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 09:59:55 +0000 (10:59 +0100)]
kronosnetd: deal with proper error codes from knet_link_get calls
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 08:29:57 +0000 (09:29 +0100)]
libknet: fix set/get_priority and document them
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 08:07:39 +0000 (09:07 +0100)]
libknet: fix set/get_timeout and document them
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 07:45:54 +0000 (08:45 +0100)]
Add knet_link_get_enable call
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 07:37:47 +0000 (08:37 +0100)]
ping_test: some more fixes
how the hell did this thing ever worked? needs a rewrite
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 29 Jan 2013 07:37:05 +0000 (08:37 +0100)]
link: fix return code when exit path is clean
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 28 Jan 2013 12:59:28 +0000 (13:59 +0100)]
fix \n logging
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 28 Jan 2013 10:45:55 +0000 (11:45 +0100)]
listener: rename link to lnk to avoid conflict with unistd.h
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 28 Jan 2013 06:03:04 +0000 (07:03 +0100)]
ping_test: fix argc corruption and make output configurable
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 28 Jan 2013 05:59:39 +0000 (06:59 +0100)]
threads: make one error more specific
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 28 Jan 2013 04:52:24 +0000 (05:52 +0100)]
libknet: rework knet_link_enable into knet_link_set_enable
make it thread safe and fix all return codes (ret vs errno)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 27 Jan 2013 15:39:47 +0000 (16:39 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 20 Jan 2013 05:16:23 +0000 (06:16 +0100)]
link: protect set/get config from doing damages
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 20 Jan 2013 05:05:57 +0000 (06:05 +0100)]
link: rename configured to enabled
we need configured internally for other stuff
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 11 Jan 2013 14:03:16 +0000 (15:03 +0100)]
libknet: cleanup knet_link_set/get_config
this also allows to kill the madness around dynamic ip management
and saves enother bytes in the ping header
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 11 Jan 2013 04:45:43 +0000 (05:45 +0100)]
Fix make dist/clean
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 10 Jan 2013 14:35:01 +0000 (15:35 +0100)]
Fix typo
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 10 Jan 2013 13:43:28 +0000 (14:43 +0100)]
debian: fix a few bits around and resync with rpm packaging
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 10 Jan 2013 13:02:48 +0000 (14:02 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 10 Jan 2013 09:04:33 +0000 (10:04 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 8 Jan 2013 14:21:23 +0000 (15:21 +0100)]
systemd: allow kronosnetd to set real time scheduler
see also https://bugzilla.redhat.com/show_bug.cgi?id=893015
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 8 Jan 2013 13:06:07 +0000 (14:06 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 8 Jan 2013 08:08:14 +0000 (09:08 +0100)]
logging: move string to the beginning of msg
this allow (to some extents) to print log messages directly to
stdout and/or stderr without extra parsing.
NOTE:
- messages are sent from differnet threads and there for they are less readable
when they arrive all together
- there is no printing of message level and subsystem
for simple coding/debugging purposes this is useful, but otherwise
look at how ping_test.c or kronosnetd create a logpipe and read
sequencial messages from there.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 8 Jan 2013 06:50:25 +0000 (07:50 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 8 Jan 2013 06:06:30 +0000 (07:06 +0100)]
rewrite TODO list to be more useful
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 7 Jan 2013 09:17:18 +0000 (10:17 +0100)]
libknet: fix HMAC key init
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 6 Jan 2013 08:39:13 +0000 (09:39 +0100)]
start cleaning TODO list and make it more useful
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Sun, 6 Jan 2013 08:31:32 +0000 (09:31 +0100)]
Sort TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 2 Jan 2013 13:26:40 +0000 (14:26 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 1 Jan 2013 14:16:21 +0000 (15:16 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 31 Dec 2012 16:10:20 +0000 (17:10 +0100)]
pam: use password-auth on systems like fedora that ship it
or passwd as a fallback (debian and others)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 31 Dec 2012 16:00:09 +0000 (17:00 +0100)]
rpm: fix integration with systemd (missing sysconfig file) and pam/groupadd
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 31 Dec 2012 08:31:38 +0000 (09:31 +0100)]
rpm: fix systemd integration with spec file
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 25 Dec 2012 11:00:32 +0000 (12:00 +0100)]
kronosnetd: fix integration with fedora pam
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 24 Dec 2012 16:26:04 +0000 (17:26 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 24 Dec 2012 15:54:07 +0000 (16:54 +0100)]
Downgrade error from set scheduler to warning
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 24 Dec 2012 15:32:53 +0000 (16:32 +0100)]
Fix build dependencies for parallel build
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 24 Dec 2012 15:29:09 +0000 (16:29 +0100)]
Add missing header to final tarball
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 21 Dec 2012 14:17:46 +0000 (15:17 +0100)]
Start documenting knet_link_* api
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 19:32:17 +0000 (20:32 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 19:16:59 +0000 (20:16 +0100)]
fix crash when multiple links are sharing the same listener
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 16:05:40 +0000 (17:05 +0100)]
Fix shutdown race conditions between locks/threads/signals
that in turns make knet_handle_free thread safe
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 14:42:16 +0000 (15:42 +0100)]
Fix log subsystem on _dst_cache_update
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 14:40:06 +0000 (15:40 +0100)]
make knet_host_(get|set)_policy behave as documented
also fix _dst_cache_update to return errno and use host_id
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 14:04:13 +0000 (15:04 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 14:03:10 +0000 (15:03 +0100)]
make knet_host_get_host_list work as documented in the API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 13:18:32 +0000 (14:18 +0100)]
make knet_host_get_id_by_host_name work as documented in the API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 10:30:33 +0000 (11:30 +0100)]
make knet_host_get_name_by_host_id work as documented in the API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 09:48:01 +0000 (10:48 +0100)]
Fix pthread error to errno relation
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 09:32:20 +0000 (10:32 +0100)]
make knet_host_set_name comply with documented API
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 08:46:13 +0000 (09:46 +0100)]
make knet_host_remove comply with documented API
also fix a bunch of other bits
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 08:04:13 +0000 (09:04 +0100)]
make knet_host_add comply with documented API
also continue renaming node_id to host_id as we go
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 20 Dec 2012 07:53:16 +0000 (08:53 +0100)]
handle: fix errno return value
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 19:45:25 +0000 (20:45 +0100)]
Make knet_handle_* call compliant to documented API
allow knet_handle_crypto to be invoked at runtime
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 17:20:01 +0000 (18:20 +0100)]
libknet: make knet_handle_new / knet_handle_free do what the API says they should
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 14:16:05 +0000 (15:16 +0100)]
move timespec_diff to threads.h (only user)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 14:14:52 +0000 (15:14 +0100)]
Make define name clear
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:58:28 +0000 (14:58 +0100)]
Cleanup internal headers
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:37:49 +0000 (14:37 +0100)]
Move _dst_cache_update to host function set
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:28:38 +0000 (14:28 +0100)]
and maybe add the threads.* files to git might help.. just a tiny little bit
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:25:17 +0000 (14:25 +0100)]
Move all threads code into threads.{c,h}
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:18:17 +0000 (14:18 +0100)]
Move all link related code to link.{c,h}
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:09:20 +0000 (14:09 +0100)]
Move listener function definitions in listener.h
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 13:05:46 +0000 (14:05 +0100)]
move logging code/definitions to logging.{c,h}
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 12:57:44 +0000 (13:57 +0100)]
move host.c function definitions into host.h
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 12:48:23 +0000 (13:48 +0100)]
move some definitions out of internals.h into common.h
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 12:43:20 +0000 (13:43 +0100)]
Start renaming node_id to host_id
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 10:16:05 +0000 (11:16 +0100)]
Document knet_handle_crypto
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Wed, 19 Dec 2012 09:38:40 +0000 (10:38 +0100)]
document a couple of more knet_handle_* calls
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>