Tobias Brunner
3d92cff726
lookip: Use line buffering for stdout
...
Otherwise, the output is buffered when e.g. piping the output to another
command (or file). And it avoids having to call fflush() in the
interactive mode.
Fixes #3404 .
2020-05-07 15:05:55 +02:00
Tobias Brunner
2db6d5b8b3
Fixed some typos, courtesy of codespell
2018-02-13 12:19:54 +01:00
Tobias Brunner
28649f6d91
libhydra: Remove empty unused library
2016-03-03 17:36:11 +01:00
Martin Willi
4163421f91
plugins: Don't link with -rdynamic on Windows
2014-06-04 15:53:02 +02:00
Tobias Brunner
7867ae42ab
lookip: Properly return from disconnect callback job
...
References #518 .
2014-02-18 11:21:51 +01:00
Martin Willi
961409b668
lookip: Disconnect asynchronously to avoid dead-locking watcher unregistration
...
While it really would be desirable to allow stream destruction during on_read()
callbacks, this does not work anymore since e49b2998
. Until we have a proper
solution for this issue, use asynchronous disconnects for the only user doing
so.
Fixes #518 .
2014-02-17 09:48:55 +01:00
Tobias Brunner
d223fe807a
libcharon: Use lib->ns instead of charon->name
2014-02-12 14:34:32 +01:00
Martin Willi
b4b3959b22
stream-service: move CAP_CHOWN check from plugins to service constructor
...
A plugin service can be a TCP socket now, so it does not make much sense
to strictly check for CAP_CHOWN.
2013-07-18 16:00:31 +02:00
Martin Willi
f7cff7fac4
lookip: double size of id field in message
2013-07-18 16:00:30 +02:00
Martin Willi
d3278c1f73
lookip: fix error handling when creating the socket fails
2013-07-18 16:00:30 +02:00
Martin Willi
091d0afa21
lookip: use stream service with async I/O dispatching
...
Now uses SOCK_STREAM, as SOCK_SEQPACKET is not available over TCP. To have
network transparency, the message now uses network byte order.
2013-07-18 16:00:29 +02:00
Tobias Brunner
dfc9902013
capabilities: Some plugins don't actually require capabilities at runtime
2013-07-18 15:25:35 +02:00
Martin Willi
19cb07b890
automake: replace INCLUDES by AM_CPPFLAGS
...
INCLUDES are now deprecated and throw warnings when using automake 1.13.
We now also differentiate AM_CPPFLAGS and AM_CFLAGS, where includes and
defines are passed to AM_CPPFLAGS only.
2013-07-18 14:59:19 +02:00
Tobias Brunner
1091edede8
capabilities: CAP_CHOWN might be required by many plugins opening UNIX sockets
...
But as the sockets will be created with the user/group of the running
process this might not be required as no change may be needed.
2013-06-25 17:16:33 +02:00
Tobias Brunner
a2eb581781
capabilities: Move global capabilities_t instance to libstrongswan
2013-06-25 17:16:32 +02:00
Tobias Brunner
d94c0913b1
lookip: Use plugin features to register listener
2013-06-11 11:18:18 +02:00
Tobias Brunner
bacbf91c5c
Removed unused command name when printing usage info for lookip
2013-01-24 23:35:41 +01:00
Tobias Brunner
ef33a4ab82
Fixed some typos, courtesy of codespell
2012-12-20 09:35:26 +01:00
Martin Willi
251b740712
Migrate cache and fire lookip events for unique_id change during IKE_SA rekey
2012-12-10 17:04:26 +01:00
Martin Willi
db9c8b6fba
Fix passing of IKE_SA unique_id over lookip socket
2012-11-30 13:44:12 +01:00
Martin Willi
2685020ace
Lookip plugin additionally reports the IKE_SA unique identifier
2012-11-29 10:00:45 +01:00
Tobias Brunner
12642a6831
Moved data structures to new collections subfolder
2012-10-24 16:00:49 +02:00
Martin Willi
a7f5eb1035
Add an interactive mode in lookip tool, demonstrate lasting connections
2012-10-24 11:43:34 +02:00
Martin Willi
9d422bb1b0
Send a lookip NOT_FOUND reply if a lookup yields no results
2012-10-24 11:43:34 +02:00
Martin Willi
f6fb2b98e9
lookup function of lookip listener returns the number of matches
2012-10-24 11:43:34 +02:00
Martin Willi
31576ceddf
Handle multiple lookip connections using a single FDSET
2012-10-24 11:43:34 +02:00
Martin Willi
28683ef137
Renamed list to store listening lookip clients
2012-10-24 11:43:34 +02:00
Martin Willi
bae50c7393
Handle client subscriptions in lookip plugin
2012-10-24 11:43:34 +02:00
Martin Willi
7650dd9a4f
Add a lookip server side UNIX socket processing LOOKUP and DUMP requests
2012-10-24 11:43:34 +02:00
Martin Willi
d59e6db614
Add a simple command line utility to query the lookip plugin
2012-10-24 11:43:34 +02:00
Martin Willi
7877c463ea
Defined on-the-wire format used on lookip socket
2012-10-24 11:43:34 +02:00
Martin Willi
1edaa79c06
Add a lookip function to register virtual IP notification listeners
2012-10-24 11:43:34 +02:00
Martin Willi
9c54b445e2
Add a lookup method to lookip plugin, using a callback to invoke
2012-10-24 11:43:34 +02:00
Martin Willi
2caa27d42e
Add a lookip listener that collects the information we are interested in
2012-10-24 11:43:34 +02:00
Martin Willi
e0d7c1eda7
Add a lookip plugin stub to lookup connections by virtual IP
2012-10-24 11:43:33 +02:00