unix-command: add drop counter to iface-stat message

pull/214/head
Eric Leblond 12 years ago
parent 8d0260b27e
commit ef64648cf8

@ -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);
}

Loading…
Cancel
Save