Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | kernel-pfkey: Report packet counts of IPsec SAs | Tobias Brunner | 2014-09-09 | 1 | -2/+2 | |
| | | | | | | Seems that packet counts can be retrieved after all. At least the Linux and FreeBSD kernels treat the number of allocations as number of packets. We actually installed packet limits in that field already. | |||||
* | kernel-pfroute: Fix kernel response handling | Tobias Brunner | 2014-08-19 | 1 | -2/+3 | |
| | | | | | | | | | | | | | The condvar is signaled for every handled message received from the kernel not only for replies (this changed with 2a2d7a4dc8). This may cause segfaults because this->reply is not set when the waiting thread is woken due to an IP address change. Since this->reply is only set when it is actually the expected reply (and only one request is sent at a time, thanks to c9a323c1d9) we only have to make sure the reply is there (and clear it once we handled it). Using separate condvars could also be an option in the future. | |||||
* | kernel-netlink: Rename algorithm identifier from cast128 to cast5 | Martin Willi | 2014-07-04 | 1 | -1/+1 | |
| | | | | | | | | | | | Even if the XFRM identifier was named cast128 in the kernel before 2.6.31, it actually never worked, because there is no such crypto algorithm. The identifier has been changed to cast5 in https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=245acb87 to make it work, so we should use that. Fixes #633. | |||||
* | kernel-pfkey: Use address in TS to determine interface for shunt routes | Tobias Brunner | 2014-06-26 | 1 | -6/+9 | |
| | ||||||
* | kernel-pfkey: Use subnet and prefix when determining nexthop for shunt ↵ | Tobias Brunner | 2014-06-26 | 1 | -2/+12 | |
| | | | | | | policy routes This is basically the same as 88f125f5605e54b38cf8913df79e32ec6bddff10. | |||||
* | kernel-pfkey: Install routes for shunt policies | Tobias Brunner | 2014-06-26 | 1 | -4/+4 | |
| | ||||||
* | kernel-netlink: Cast IPv6 address blobs to the proper type | Tobias Brunner | 2014-06-24 | 1 | -3/+3 | |
| | | | | On Android these macros are defined as functions. | |||||
* | kernel-netlink: Install virtual IPv6 addresses as deprecated | Tobias Brunner | 2014-06-20 | 1 | -0/+11 | |
| | | | | | | | | This should prevent the kernel's IPv6 source address selection algorithm from using this address unless it is forced to by our source route. This is helpful if split tunneling is used. Fixes #598. | |||||
* | kernel-netlink: Pass prefix when looking up next hop for shunt policies | Tobias Brunner | 2014-06-19 | 1 | -1/+12 | |
| | ||||||
* | kernel-netlink: Add support for destination prefix when determining next hop | Tobias Brunner | 2014-06-19 | 1 | -20/+35 | |
| | ||||||
* | kernel-interface: Add destination prefix to get_nexthop() | Tobias Brunner | 2014-06-19 | 7 | -9/+14 | |
| | | | | | This allows to determine the next hop to reach a subnet, for instance, when installing routes for shunt policies. | |||||
* | kernel-pfkey: Add support for new policy priority class | Tobias Brunner | 2014-06-19 | 1 | -2/+5 | |
| | ||||||
* | kernel-netlink: Add support for new policy priority class | Tobias Brunner | 2014-06-19 | 1 | -2/+5 | |
| | ||||||
* | Remove kernel-klips plugin | Tobias Brunner | 2014-06-19 | 7 | -3164/+0 | |
| | ||||||
* | kernel-netlink: Follow RFC 6724 when selecting IPv6 source addresses | Tobias Brunner | 2014-06-19 | 1 | -26/+170 | |
| | | | | | | | | Instead of using the first address we find on an interface we should consider properties like an address' scope or whether it is temporary or public. Fixes #543. | |||||
* | kernel-netlink: Never use XFRMA_REPLAY_ESN_VAL to configure zero replay windows | Martin Willi | 2014-06-18 | 1 | -1/+1 | |
| | | | | | | Trying to disable replay windows using the ESN attribute fails with EINVAL. Use non-ESN legacy format to disable replay windows, even if ESN has been negotiated over IKE. | |||||
* | kernel-pfkey: Support connection specific replay window sizes up to 32 packets | Martin Willi | 2014-06-17 | 1 | -1/+1 | |
| | ||||||
* | kernel-netlink: Support connection specific replay window sizes | Martin Willi | 2014-06-17 | 1 | -39/+16 | |
| | ||||||
* | kernel-interface: Add a replay_window parameter to add_sa() | Martin Willi | 2014-06-17 | 6 | -13/+22 | |
| | ||||||
* | kernel-interface: Add a flag to indicate no policy updates required | Martin Willi | 2014-06-04 | 1 | -0/+2 | |
| | ||||||
* | plugins: Don't link with -rdynamic on Windows | Martin Willi | 2014-06-04 | 7 | -7/+7 | |
| | ||||||
* | windows: Link libhydra against Winsock2 | Martin Willi | 2014-06-04 | 1 | -0/+4 | |
| | ||||||
* | pfkey: Always include stdint.h | Tobias Brunner | 2014-05-19 | 1 | -1/+1 | |
| | | | | | | On some systems (e.g. on Debian/kFreeBSD) that header is required when including ipsec.h, on Linux we require it too when including pfkeyv2.h, so to simplify things we just always include it. | |||||
* | enum: Don't directly include enum.h | Martin Willi | 2014-05-16 | 1 | -1/+1 | |
| | | | | | To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well. | |||||
* | kernel-klips: Pass a pointer to a properly sized integer for algorithm lookup | Martin Willi | 2014-05-16 | 1 | -1/+1 | |
| | ||||||
* | kernel-pfkey: Added IPComp support | Francois ten Krooden | 2014-04-24 | 1 | -19/+138 | |
| | | | | | | - get_cpi function was implemented to retrieve a CPI from the kernel. - add_sa/update_sa/del_sa were updated to accommodate for IPComp SA. - Updated add_policy_internal to update the SPD to support IPComp. | |||||
* | attr: Don't shift the 32-bit netmask by 32 | Tobias Brunner | 2014-04-09 | 1 | -3/+6 | |
| | | | | | | | | | | This is undefined behavior as per the C99 standard (sentence 1185): "If the value of the right operand is negative or is greater or equal to the width of the promoted left operand, the behavior is undefined." Apparently shifts may be done modulo the width on some platforms so a shift by 32 would not shift at all. | |||||
* | kernel-pfroute: Let get_nexthop() default to destination address | Tobias Brunner | 2014-03-31 | 1 | -3/+7 | |
| | ||||||
* | attr: Silently skip over load option | Tobias Brunner | 2014-02-12 | 1 | -0/+4 | |
| | ||||||
* | libhydra: Remove unused hydra->daemon | Tobias Brunner | 2014-02-12 | 2 | -13/+3 | |
| | ||||||
* | libhydra: Use lib->ns instead of hydra->daemon | Tobias Brunner | 2014-02-12 | 9 | -29/+29 | |
| | ||||||
* | attr-sql: Use namespace for attr-sql config, with fallback | Tobias Brunner | 2014-02-12 | 2 | -2/+4 | |
| | ||||||
* | kernel-pfroute: Don't cache route entries if installation fails | Tobias Brunner | 2014-02-12 | 1 | -2/+5 | |
| | ||||||
* | kernel-netlink: Don't cache route entries if installation fails | Tobias Brunner | 2014-02-12 | 1 | -2/+5 | |
| | | | | Fixes #500. | |||||
* | kernel-netlink: Set selector on transport mode IPComp SAs | Tobias Brunner | 2014-01-23 | 1 | -1/+1 | |
| | ||||||
* | kernel-netlink: Selectively add selector on SAs that use IPComp | Tobias Brunner | 2014-01-23 | 1 | -1/+7 | |
| | | | | | | Don't add a selector to tunnel mode SAs, these might serve multiple traffic selectors but with only one selector on the SA only the traffic matching the first one would actually get tunneled. | |||||
* | kernel-netlink: Enable TFC padding only for tunnel mode ESP SAs | Tobias Brunner | 2013-11-19 | 1 | -2/+2 | |
| | | | | | | | The kernel does not allow them for transport mode SAs or IPComp SAs (and of course not for AH SAs). Fixes #446. | |||||
* | android: Remove dependency on libvstr | Tobias Brunner | 2013-11-13 | 1 | -1/+0 | |
| | ||||||
* | kernel-netlink: Check existence of linux/fib_rules.h, don't include it in ↵ | Tobias Brunner | 2013-10-18 | 1 | -1/+8 | |
| | | | | | | distribution This reverts commit b0761f1f0a5abd225edc291c8285f99a538e6a66. | |||||
* | kernel-pfkey: Install ICMP[v6] type/code as expected by the Linux kernel | Tobias Brunner | 2013-10-17 | 1 | -19/+52 | |
| | ||||||
* | kernel-netlink: Convert ports in acquires to ICMP[v6] type and code | Tobias Brunner | 2013-10-17 | 1 | -3/+8 | |
| | ||||||
* | kernel-netlink: Properly install policies with ICMP[v6] types and codes | Tobias Brunner | 2013-10-17 | 1 | -1/+12 | |
| | ||||||
* | kernel-netlink: Allow setting firewall marks on routing rule | Tobias Brunner | 2013-10-11 | 1 | -0/+20 | |
| | ||||||
* | attr-sql: Use a serializable transaction when inserting identities | Tobias Brunner | 2013-10-11 | 1 | -12/+5 | |
| | ||||||
* | pool: Move the pool utility to its own directory in src | Tobias Brunner | 2013-10-11 | 7 | -2232/+1 | |
| | ||||||
* | attr-sql: Handle concurrent insertion of identities | Tobias Brunner | 2013-10-11 | 1 | -2/+12 | |
| | | | | | | | | | If the same identity is added concurrently by two threads (or by the pool utility) INSERT might fail even though the SELECT was unsuccessful before. We are currently not able to lock the identities table in a portable way (something like SELECT ... FOR UPDATE on MySQL). | |||||
* | attr-sql: Don't use database transactions in create_attribute_enumerator | Tobias Brunner | 2013-10-11 | 1 | -5/+0 | |
| | | | | | | | | | There could, of course, be race conditions when enumerating the attributes, but those probably don't matter (e.g. missing an attribute that was concurrently added). Transactions are more intended to revert multiple changes if anything fails in the process. | |||||
* | kernel: Use a time_t to report use time in query_policy() | Martin Willi | 2013-10-11 | 6 | -7/+7 | |
| | ||||||
* | kernel: Use a time_t to report use time in query_sa() | Martin Willi | 2013-10-11 | 6 | -8/+8 | |
| | ||||||
* | kernel-netlink: Allow to override xfrm_acq_expires value | Ansis Atteka | 2013-09-23 | 1 | -6/+10 | |
| | | | | | | | | | | | | | | | | When using auto=route, current xfrm_acq_expires default value implies that tunnel can be down for up to 165 seconds, if other peer rejected first IKE request with an AUTH_FAILED or NO_PROPOSAL_CHOSEN error message. These error messages are completely normal in setups where another application pushes configuration to both strongSwans without waiting for acknowledgment that they have updated their configurations. This patch allows strongswan to override xfrm_acq_expires default value by setting charon.plugins.kernel-netlink.xfrm_acq_expires in strongswan.conf. Signed-off-by: Ansis Atteka <aatteka@nicira.com> |