]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
ike: Track NAT-keepalives as outbound packets
authorTobias Brunner <tobias@strongswan.org>
Thu, 19 Mar 2020 10:25:37 +0000 (11:25 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 2 Jun 2020 11:57:37 +0000 (13:57 +0200)
src/libcharon/sa/ike_sa.c

index 0573bcf6793f7bea691cf20e181b8c0e0805796f..b44c157d94934df2d3c0ef5f224b254d37792510 100644 (file)
@@ -669,6 +669,7 @@ METHOD(ike_sa_t, send_keepalive, void,
                packet->set_data(packet, data);
                DBG1(DBG_IKE, "sending keep alive to %#H", this->other_host);
                charon->sender->send_no_marker(charon->sender, packet);
+               this->stats[STAT_OUTBOUND] = now;
                diff = 0;
        }
        if (!this->keepalive_job)