aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-05-11 19:34:33 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-05-11 19:34:33 +0000
commit04c656d3e5cc4d6f492e9f4efb34fd2973373520 (patch)
treebba5cfaa3e150c4e4d45ea3dfdaeb4222afefd59 /testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d
parent95c297b5804ad11aab2bf72805ea4ee6c2c834ed (diff)
downloadstrongswan-04c656d3e5cc4d6f492e9f4efb34fd2973373520.tar.bz2
strongswan-04c656d3e5cc4d6f492e9f4efb34fd2973373520.tar.xz
included pools and leases tables to ipsec.sql database
Diffstat (limited to 'testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d')
-rw-r--r--testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d/ipsec.sql40
1 files changed, 39 insertions, 1 deletions
diff --git a/testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d/ipsec.sql b/testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d/ipsec.sql
index aaa32e845..c4551b73c 100644
--- a/testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d/ipsec.sql
+++ b/testing/tests/sql/rw-psk-ipv6/hosts/moon/etc/ipsec.d/ipsec.sql
@@ -17,7 +17,8 @@ CREATE TABLE child_configs (
hostaccess INTEGER NOT NULL DEFAULT '0',
mode INTEGER NOT NULL DEFAULT '1',
dpd_action INTEGER NOT NULL DEFAULT '0',
- close_action INTEGER NOT NULL DEFAULT '0'
+ close_action INTEGER NOT NULL DEFAULT '0',
+ ipcomp INTEGER NOT NULL DEFAULT '0'
);
DROP INDEX IF EXISTS child_configs_name;
CREATE INDEX child_configs_name ON child_configs (
@@ -136,6 +137,43 @@ CREATE TABLE shared_secret_identity (
PRIMARY KEY (shared_secret, identity)
);
+DROP TABLE IF EXISTS pools;
+CREATE TABLE pools (
+ id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ name TEXT NOT NULL,
+ start BLOB NOT NULL,
+ end BLOB NOT NULL,
+ next BLOB NOT NULL,
+ timeout INTEGER DEFAULT NULL,
+ UNIQUE (name)
+);
+DROP INDEX IF EXISTS pools_name;
+CREATE INDEX pools_name ON pools (
+ name
+);
+
+DROP TABLE IF EXISTS leases;
+CREATE TABLE leases (
+ id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ pool INTEGER NOT NULL,
+ address BLOB NOT NULL,
+ identity INTEGER NOT NULL,
+ acquired INTEGER NOT NULL,
+ released INTEGER DEFAULT NULL
+);
+DROP INDEX IF EXISTS leases_pool;
+CREATE INDEX leases_pool ON leases (
+ pool
+);
+DROP INDEX IF EXISTS leases_identity;
+CREATE INDEX leases_identity ON leases (
+ identity
+);
+DROP INDEX IF EXISTS leases_released;
+CREATE INDEX leases_released ON leases (
+ released
+);
+
DROP TABLE IF EXISTS ike_sas;
CREATE TABLE ike_sas (
local_spi BLOB NOT NULL PRIMARY KEY,