kernel-libipsec: Support query_sa() to report usage statistics
authorMartin Willi <martin@revosec.ch>
Mon, 23 Sep 2013 10:46:43 +0000 (12:46 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 11 Oct 2013 08:23:17 +0000 (10:23 +0200)
src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c

index 8e7cabc..0e92638 100644 (file)
@@ -270,7 +270,8 @@ METHOD(kernel_ipsec_t, query_sa, status_t,
        u_int32_t spi, u_int8_t protocol, mark_t mark, u_int64_t *bytes,
        u_int64_t *packets, time_t *time)
 {
-       return NOT_SUPPORTED;
+       return ipsec->sas->query_sa(ipsec->sas, src, dst, spi, protocol, mark,
+                                                               bytes, packets, time);
 }
 
 METHOD(kernel_ipsec_t, del_sa, status_t,