]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unix-command: add drop counter to iface-stat message
authorEric Leblond <eric@regit.org>
Thu, 15 Nov 2012 08:58:01 +0000 (09:58 +0100)
committerEric Leblond <eric@regit.org>
Mon, 19 Nov 2012 22:54:27 +0000 (23:54 +0100)
src/util-device.c

index 0c1068fdd24923103239d3e3472979018c202f9b..f5c3bd4b2f933ec4d553b20ccc0af2e7de2ad11d 100644 (file)
@@ -183,6 +183,8 @@ TmEcode LiveDeviceIfaceStat(json_t *cmd, json_t *answer, void *data)
                                 json_integer(SC_ATOMIC_GET(pd->pkts)));
             json_object_set_new(jdata, "invalid-checksums",
                                 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(answer, "message", jdata);
             SCReturn(TM_ECODE_OK);
         }