]>
git.proxmox.com Git - mirror_kronosnet.git/log
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>
Fabio M. Di Nitto [Wed, 19 Dec 2012 09:14:21 +0000 (10:14 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 14:59:31 +0000 (15:59 +0100)]
libknet: document knet_handle_enable_filter and dst_host_filter_fn
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 14:43:23 +0000 (15:43 +0100)]
One more cosmetic
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 14:42:58 +0000 (15:42 +0100)]
libknet: cosmetic fixes to knet_handle_new
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 14:41:08 +0000 (15:41 +0100)]
libknet: knet_handle_new API cleanup and documentation
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 13:35:24 +0000 (14:35 +0100)]
libknet: document limits
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 13:26:54 +0000 (14:26 +0100)]
move comment where it belongs
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 13:24:37 +0000 (14:24 +0100)]
libknet: make dst_filter a runtime config option
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 10:35:09 +0000 (11:35 +0100)]
libknet doesn't need a default port
it's a UI issue to deal with
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 10:20:14 +0000 (11:20 +0100)]
Reduce logging buffer size to allow more messages
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 10:17:52 +0000 (11:17 +0100)]
Add comments to knet_link and re-arrange
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Tue, 18 Dec 2012 09:57:36 +0000 (10:57 +0100)]
move knet_link into internals.h
hack fest still in place, we need to sort out ABI and locking
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 17 Dec 2012 16:16:15 +0000 (17:16 +0100)]
libknet api cleanup: move knet_host out of public API
the knet_host_* calls are pretty much set for now.
the new knet_link_* calls are temporary to interface with the old API.
knet_link will die next.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 17 Dec 2012 13:54:23 +0000 (14:54 +0100)]
Move --version to library only bits
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Mon, 17 Dec 2012 13:45:44 +0000 (14:45 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 10:37:44 +0000 (11:37 +0100)]
reorganize libknet.h in sections
just makes it easier to read as we move stuff around
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 10:29:09 +0000 (11:29 +0100)]
Drop tests/ subfolder
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 10:25:30 +0000 (11:25 +0100)]
Move all tests in the respective folders
this makes it easier to isolate what needs changing where and when
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 10:19:12 +0000 (11:19 +0100)]
Move hellgrind and valgrind checks to a common make snippet
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 10:10:30 +0000 (11:10 +0100)]
Cleanup tests for kronosnetd
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 09:56:30 +0000 (10:56 +0100)]
remove obsoleted test tool
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 09:37:47 +0000 (10:37 +0100)]
Drop one more unrequired config bit
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 09:34:50 +0000 (10:34 +0100)]
move all logging definitions in the same section
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 09:29:45 +0000 (10:29 +0100)]
drop redundant dst_filter config check
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 09:24:00 +0000 (10:24 +0100)]
fix segfault in ping_test src_port handling
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 09:16:21 +0000 (10:16 +0100)]
move listener only define
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 08:59:28 +0000 (09:59 +0100)]
cleanup crypto headers
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 08:44:20 +0000 (09:44 +0100)]
move ping size to onwire and make name more clear
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 08:29:40 +0000 (09:29 +0100)]
drop unrequired header
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 08:27:44 +0000 (09:27 +0100)]
libknet: create onwire.h to contain/define all packet(s) data/info
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 08:24:07 +0000 (09:24 +0100)]
Make rename clean
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 14 Dec 2012 08:22:24 +0000 (09:22 +0100)]
rename libknet-private.h to internals.h
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Thu, 13 Dec 2012 10:09:51 +0000 (11:09 +0100)]
Move etherfilter where it belongs
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 7 Dec 2012 15:42:44 +0000 (16:42 +0100)]
libknet: fix host info propagation on kronosnetd restart
this avoids lots of incorrect chit/chat and make sure
to send data when required
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Fabio M. Di Nitto [Fri, 7 Dec 2012 05:00:35 +0000 (06:00 +0100)]
Update TODO list
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>