Merge pull request #22244 from tiagogaspar8/strongswan_replay

strongswan: swanctl: add support for replay window
This commit is contained in:
Florian Eckert 2023-11-17 11:16:23 +01:00 committed by GitHub
commit a49da174a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=strongswan
PKG_VERSION:=5.9.11
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/

View File

@ -244,6 +244,7 @@ config_child() {
local lifebytes
local rekeypackets
local lifepackets
local replay_window
config_get startaction "$conf" startaction "route"
config_get local_nat "$conf" local_nat ""
@ -262,6 +263,7 @@ config_child() {
config_get lifebytes "$conf" lifebytes ""
config_get rekeypackets "$conf" rekeypackets ""
config_get lifepackets "$conf" lifepackets ""
config_get replay_window "$conf" replay_window ""
config_list_foreach "$conf" local_subnet append_var local_subnet ","
config_list_foreach "$conf" remote_subnet append_var remote_subnet ","
@ -370,6 +372,7 @@ config_child() {
[ -n "$updown" ] && swanctl_xappend4 "updown = $updown"
[ -n "$dpdaction" ] && swanctl_xappend4 "dpd_action = $dpdaction"
[ -n "$replay_window" ] && swanctl_xappend4 "replay_window = $replay_window"
swanctl_xappend3 "}"
}