strongswan: swanctl: add support for replay window 22244/head
authorTiago Gaspar <tiagogaspar8@gmail.com>
Fri, 17 Nov 2023 09:25:36 +0000 (09:25 +0000)
committerTiago Gaspar <tiagogaspar8@gmail.com>
Fri, 17 Nov 2023 09:25:36 +0000 (09:25 +0000)
Add support for replay window configuration in UCI.

Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
net/strongswan/Makefile
net/strongswan/files/swanctl.init

index d175b4c4b8edae5a17417b26c8e4d58b2cefb0eb..877e5c3ccf51c2451111425e75e7ba5b311d5b53 100644 (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/
index dcc065d2ea1b07fc957f24e8684e424315714984..289e7ff567aa17c986212fb297306426cd691f16 100644 (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 "}"
 }