From: Eric Leblond Date: Thu, 15 Nov 2012 08:58:01 +0000 (+0100) Subject: unix-command: add drop counter to iface-stat message X-Git-Tag: suricata-1.4rc1~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef64648cf8e7e6f34b8e7c994e6ca2c1a4dca927;p=thirdparty%2Fsuricata.git unix-command: add drop counter to iface-stat message --- diff --git a/src/util-device.c b/src/util-device.c index 0c1068fdd2..f5c3bd4b2f 100644 --- a/src/util-device.c +++ b/src/util-device.c @@ -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); }