ipsec: Increased log level for message in case no outbound policy is found
authorTobias Brunner <tobias@strongswan.org>
Thu, 7 Mar 2013 15:21:11 +0000 (16:21 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 20 Mar 2013 14:24:26 +0000 (15:24 +0100)
This might happen on Android if sockets are bound to the physical IP
address but packets are still routed via TUN device.  Since it seems to
happen quite often (or for stuff that requires regular traffic) this
hides these messages from the default log.

src/libipsec/ipsec_processor.c

index 66f43a4..e142157 100644 (file)
@@ -196,7 +196,7 @@ static job_requeue_t process_outbound(private_ipsec_processor_t *this)
        policy = ipsec->policies->find_by_packet(ipsec->policies, packet, FALSE);
        if (!policy)
        {
-               DBG1(DBG_ESP, "no matching outbound IPsec policy for %H == %H",
+               DBG2(DBG_ESP, "no matching outbound IPsec policy for %H == %H",
                         packet->get_source(packet), packet->get_destination(packet));
                packet->destroy(packet);
                return JOB_REQUEUE_DIRECT;