Ver código fonte

ipsec-tools: add option for dead peer detection support

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 13 anos atrás
pai
commit
f37b7823e5
2 arquivos alterados com 11 adições e 0 exclusões
  1. 5 0
      package/ipsec-tools/Config.in
  2. 6 0
      package/ipsec-tools/ipsec-tools.mk

+ 5 - 0
package/ipsec-tools/Config.in

@@ -33,6 +33,11 @@ config BR2_PACKAGE_IPSEC_TOOLS_FRAG
 	  Enable IKE fragmentation, which is a workaround for
 	  broken routers that drop fragmented packets
 
+config BR2_PACKAGE_IPSEC_TOOLS_DPD
+	bool "Enable DPD (Dead Peer Detection)"
+	help
+	  Enable dead peer detection support
+
 config BR2_PACKAGE_IPSEC_TOOLS_STATS
 	default y
 	bool "Enable statistics logging function."

+ 6 - 0
package/ipsec-tools/ipsec-tools.mk

@@ -38,6 +38,12 @@ else
 IPSEC_TOOLS_CONF_OPT+= --disable-frag
 endif
 
+ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_DPD), y)
+IPSEC_TOOLS_CONF_OPT+= --enable-dpd
+else
+IPSEC_TOOLS_CONF_OPT+= --disable-dpd
+endif
+
 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_STATS), y)
 IPSEC_TOOLS_CONF_OPT+= --enable-stats
 else