android: Use 0.0.0.0/0 as local traffic selector
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Oct 2012 09:02:18 +0000 (11:02 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 Oct 2012 12:16:17 +0000 (14:16 +0200)
This is helpful if the responder also wants to tunnel e.g. multicast
packages.

src/frontends/android/jni/libandroidbridge/backend/android_service.c

index 1e9d246..fbf5d98 100644 (file)
@@ -539,7 +539,8 @@ static job_requeue_t initiate(private_android_service_t *this)
         * libipsec, no PFS for now */
        child_cfg->add_proposal(child_cfg, proposal_create_from_string(PROTO_ESP,
                                                        "aes128-aes192-aes256-sha1-sha256-sha384-sha512"));
-       ts = traffic_selector_create_dynamic(0, 0, 65535);
+       ts = traffic_selector_create_from_string(0, TS_IPV4_ADDR_RANGE, "0.0.0.0",
+                                                                                        0, "255.255.255.255", 65535);
        child_cfg->add_traffic_selector(child_cfg, TRUE, ts);
        ts = traffic_selector_create_from_string(0, TS_IPV4_ADDR_RANGE, "0.0.0.0",
                                                                                         0, "255.255.255.255", 65535);