diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2018-06-24 11:32:10 +0200 |
---|---|---|
committer | Bas van Dijk <v.dijk.bas@gmail.com> | 2018-06-24 11:32:10 +0200 |
commit | 401370287a9b74fc18539fe9c0bdc7ac9df9cf22 (patch) | |
tree | 43ab88cef382c8e101f91cee491e9de72cba03e7 /nixos | |
parent | 7bf378ce7fecf1c467bf2b49c47376306e795260 (diff) | |
download | nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.tar nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.tar.gz nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.tar.bz2 nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.tar.lz nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.tar.xz nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.tar.zst nixpkgs-401370287a9b74fc18539fe9c0bdc7ac9df9cf22.zip |
strongswan-swanctl: adapt options to strongswan-5.6.3
This time there was only one change between 5.6.2..5.6.3: https://github.com/strongswan/strongswan/commit/2c7a4b07045786ee493021020e2ad5bd6bb4d045
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix index ad211f41eef..e6561633264 100644 --- a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix +++ b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix @@ -938,9 +938,12 @@ in { protection. ''; - hw_offload = mkYesNoParam no '' + hw_offload = mkEnumParam ["yes" "no" "auto"] "no" '' Enable hardware offload for this CHILD_SA, if supported by the IPsec - implementation. + implementation. The value <literal>yes</literal> enforces offloading + and the installation will fail if it's not supported by either kernel or + device. The value <literal>auto<literal> enables offloading, if it's + supported, but the installation does not fail otherwise. ''; start_action = mkEnumParam ["none" "trap" "start"] "none" '' |