pluto: Install IN policy of a shunt eroute with protocol.
authorTobias Brunner <tobias@strongswan.org>
Tue, 10 Aug 2010 13:09:13 +0000 (15:09 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Sep 2010 17:04:23 +0000 (19:04 +0200)
src/pluto/kernel.c

index 8b22bc2..c7a9dd5 100644 (file)
@@ -1387,7 +1387,8 @@ static bool shunt_eroute(connection_t *c, struct spd_route *sr,
 
        ok = raw_eroute(&c->spd.that.host_addr, &c->spd.that.client,
                                        &c->spd.this.host_addr, &c->spd.this.client, htonl(spi),
-                                       SA_INT, SADB_X_SATYPE_INT, 0, &null_ipsec_sa, 0,
+                                       SA_INT, SADB_X_SATYPE_INT, sr->this.protocol,
+                                       &null_ipsec_sa, 0,
                                        op | (SADB_X_SAFLAGS_INFLOW << ERO_FLAG_SHIFT), opname);
 
        return eroute_connection(sr, htonl(spi), SA_INT, SADB_X_SATYPE_INT,