diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-03 23:24:18 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-03 23:26:45 +0200 |
commit | 3e071a78f2a5c7424340b4c8b446d51e82413c13 (patch) | |
tree | 2a411f35daeae48be99a8d325f88dcbd63bb0f2a /xutils.h | |
parent | dc5f7a04f2b446b5224be356c2fc79e88a5d3e8f (diff) |
netsniff-ng: v3: fix packet accounting on --num
We need to carry frame_count through multiple calls of walk function
to account correctly for --num <pkts>. Also, move socket stats printing
into rx ring, since it belongs there.
Todo: the kernel socket seems to have a different count that what we
see. This needs to be fixed one way or the other. Not yet sure what's
causing this.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'xutils.h')
-rw-r--r-- | xutils.h | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -36,7 +36,6 @@ extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf); extern int ethtool_link(const char *ifname); extern int device_mtu(const char *ifname); extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss); -extern void sock_print_net_stats(int sock); extern int device_ifindex(const char *ifname); extern short device_get_flags(const char *ifname); extern void device_set_flags(const char *ifname, const short flags); |