Martin Willi
6c37daaa3b
Avoid extensive casting of sockaddr types in socket-default by using a union
...
Additionally fixes a strict-aliasing rule compiler warning with older gcc.
2013-02-06 15:20:32 +01:00
Tobias Brunner
9ccfeb8ca1
Use proper buffer sizes for parse_smartcard()
2013-01-24 23:35:42 +01:00
Tobias Brunner
bacbf91c5c
Removed unused command name when printing usage info for lookip
2013-01-24 23:35:41 +01:00
Martin Willi
325efdaca8
Filter TS list for Split-Includes before printing them to debug log
2013-01-21 12:15:51 +01:00
Martin Willi
c4a49008e8
Don't handle right=%any6 as "loose" identity, but as %any
2013-01-14 10:33:14 +01:00
Tobias Brunner
21235e1ec2
Merge branch 'ikev1-fragmentation'
...
This adds support for the proprietary IKEv1 fragmentation extension.
Conflicts:
NEWS
2013-01-12 11:58:26 +01:00
Tobias Brunner
365d9a6f67
Added an option that allows to force IKEv1 fragmentation
2013-01-12 11:54:32 +01:00
Volker Rümelin
10eee5fcba
Fixed some typos in comments
2013-01-11 10:21:51 +01:00
Tobias Brunner
97973f8609
Use a connection specific option to en-/disable IKEv1 fragmentation
2012-12-24 13:00:01 +01:00
Andreas Steffen
9787b9f2e0
Send empty CDATA batch if TNC client has no data to send
2012-12-23 22:16:30 +01:00
Tobias Brunner
ef33a4ab82
Fixed some typos, courtesy of codespell
2012-12-20 09:35:26 +01:00
Martin Willi
32c3ac95e4
Add missing error_notify_msg.h to distribution tarball
2012-12-19 10:40:33 +01:00
Martin Willi
3044085006
Add an error-notify sample application to listen to error notifications
2012-12-19 10:40:33 +01:00
Martin Willi
0aaf5ccfa6
Add an error-notify plugin to send catched alerts to listening applications
2012-12-19 10:40:33 +01:00
Martin Willi
c794455666
Raise alerts when enforcing IKE_SA unique policy
2012-12-19 10:40:32 +01:00
Tobias Brunner
0080daa787
Fix deadlock in IMC/IMV managers
...
Since reserve_id() might be called from e.g. notify_connection_change()
using a write lock will not work as this can't be acquired while holding
the read lock.
Also, with the previous code it was possible that two IMCs/IMVs added by
two threads at the same time would get the same ID assigned.
2012-12-18 15:59:29 +01:00
Tobias Brunner
6a8eeba540
Properly select IMC/IMV according to given primary ID in reserve_id()
2012-12-18 15:59:29 +01:00
Martin Willi
d9d0f12222
If load-tester requests a virtual IP, use a dynamic local traffic selector
2012-12-17 14:22:25 +01:00
Martin Willi
df75cc5c5f
Migrate RADIUS accounting state while IKE_SA unique id changes during rekey
2012-12-11 10:40:59 +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
Andreas Steffen
92e75e4535
optionally skip dlclose() of IMCs/IMVs in order to track memory leaks
2012-12-09 19:35:23 +01:00
Martin Willi
c543616315
Add locking to IMC/IMV managers to add/remove IMC/IMVs on the fly
2012-11-30 15:49:23 +01:00
Martin Willi
016d343a50
Add wrappers to IMC/IMV managers loading IMC/IMVs from function pointers
2012-11-30 15:48:20 +01:00
Martin Willi
be18ee8123
If adding an IMC/IMV fails, terminate() it only if it has been initialize()d
2012-11-30 15:48:13 +01:00
Martin Willi
fd885fd390
Add an IMV constructor taking a set of custom TNC_IMV functions
2012-11-30 15:48:02 +01:00
Martin Willi
f1f500c724
Add an IMC constructor taking a set of custom TNC_IMC functions
2012-11-30 15:47:59 +01:00
Martin Willi
cd74959465
Clean up memory management when loading IMC/IMVs from files
2012-11-30 15:47:34 +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
48828ff0db
Store load-tester address leases in a hashtable for fast removal
2012-11-29 10:22:52 +01:00
Martin Willi
d88597f0dd
Don't wait while removing external IPs used for load testing
2012-11-29 10:22:51 +01:00
Martin Willi
b185cdd16d
Install virtual IPs via interface name, and use an interface lookup where required
2012-11-29 10:22:51 +01:00
Martin Willi
0a54d3e1a1
load-tester can dynamically install a dedicated external IP for each IKE_SA
...
For consistency, the local/remote parameters have been replaced by the
initiator/responder options. As initiator, the initiator option can
be overriden by an addrs section taking key/value pairs with address
pools to use on a specific interface.
2012-11-29 10:22:51 +01:00
Martin Willi
fdd94fc846
Add a delay option to load-tester socket
2012-11-29 10:22:51 +01:00
Martin Willi
cf85f6b296
Indicate message retransmissions while initiating load-test batches
2012-11-29 10:22:51 +01:00
Martin Willi
93ceaa7e64
Initiate each load-testing connection with a fresh peer config
2012-11-29 10:22:51 +01:00
Martin Willi
b7acd90763
Initiate IKE_SAs trigger over load-tester socket in parallel
2012-11-29 10:22:51 +01:00
Martin Willi
965f7bd54f
Add a simple load-tester utility to initiate over control socket
2012-11-29 10:22:51 +01:00
Martin Willi
d65683eef4
Add a load-tester control socket to manually trigger initiation
2012-11-29 10:22:50 +01:00
Martin Willi
2685020ace
Lookip plugin additionally reports the IKE_SA unique identifier
2012-11-29 10:00:45 +01:00
Martin Willi
b5d27839ad
Do not send 0.0.0.0/0 traffic selectors as Split-Include Unity attributes
...
It seems that iOS devices don't like them.
2012-11-22 12:13:44 +01:00
Martin Willi
5b89e3b061
Pass PLUTO_XAUTH_ID to updown script
2012-11-16 09:56:05 +01:00
Andreas Steffen
3de9a31a49
centralized processing of assessment information
2012-11-12 10:45:38 +01:00
Tobias Brunner
ed05a1a3b7
'signal' is a keyword in MySQL 5.5
...
Fixes #251 .
2012-11-07 12:37:23 +01:00
Tobias Brunner
531f32d62a
Compiler warning fixed
2012-11-02 15:39:51 +01:00
Martin Willi
6e8f88dba3
Exclude dynamic TS from Unity Split-Include attributes
2012-10-30 09:14:44 +01:00
Tobias Brunner
f05b427265
Moved debug.[ch] to utils folder
2012-10-24 16:00:51 +02:00
Tobias Brunner
12642a6831
Moved data structures to new collections subfolder
2012-10-24 16:00:49 +02:00
Tobias Brunner
2e7cc07ecd
Moved host_t and host_resolver_t to a new networking subfolder
2012-10-24 15:06:18 +02:00
Martin Willi
c4894cc172
Send certificate requests in load-tester
2012-10-24 13:25:45 +02:00
Martin Willi
0f3c5f8502
Add load-tester traffic selector configuration options
2012-10-24 13:25:13 +02:00