]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
unix-socket: add bypassed counter to iface-stat
authorEric Leblond <eric@regit.org>
Wed, 17 Jan 2018 02:28:20 +0000 (03:28 +0100)
committerEric Leblond <eric@regit.org>
Tue, 6 Feb 2018 15:58:19 +0000 (16:58 +0100)
src/util-device.c

index 439d06abb9e32b859c058d932d7151e79b3d8b1f..e6ba99fe999829739e5c09dff5e7ba65036b9025 100644 (file)
@@ -373,6 +373,8 @@ TmEcode LiveDeviceIfaceStat(json_t *cmd, json_t *answer, void *data)
                                 json_integer(SC_ATOMIC_GET(pd->invalid_checksums)));
             json_object_set_new(jdata, "drop",
                                 json_integer(SC_ATOMIC_GET(pd->drop)));
+            json_object_set_new(jdata, "bypassed",
+                                json_integer(SC_ATOMIC_GET(pd->bypassed)));
             json_object_set_new(answer, "message", jdata);
             SCReturnInt(TM_ECODE_OK);
         }