git ssb


0+

cel / netcount



Branch:

cel committed Add readmeLatest: 832bb38 on 2/20/2017, 4:57:34 PM
📄Makefile
📄README.md
📄getip.c
📄getip.h
📄netcount.c

netcount

Monitor incoming and outgoing bandwidth usage

Build & Install

sudo apt-get install libpcap-dev # or something
make
sudo setcap cap_net_raw+ep netcap # optional
sudo cp netcount /usr/local/bin/

Usage

netcount [<filter>]

The filter argument may be a filter suitable for pcap or tcpdump, e.g. "port 53 and host 8.8.8.8". See pcap-filter(7) for more details.

Output is one line per packet, of the running totals of the network activity.

Format:

total_incoming TAB total_outgoing TAB total_all NEWLINE

References

License

Copyright (c) 2017 @cel

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.


Built with git-ssb-web