[PATCH 0/6] iptraf-ng: hostmon.c fixes/cleanups
by Vitezslav Samel
Hi!
Here's another round of patches, this time to hostmon.c. Next time I will
try to make the same changes to the itrafmon.c.
Cheers,
Vita
Vitezslav Samel (6):
all: unify/simplify screen refresh after sorting
hostmon(): remove idx variable
hostmon(): simplify scrolling
hostmon(): allow scrolling with Home, End keys
hostmon.c: refactor rates printing
hostmon(): move keypress and packet handling into separate functions
src/hostmon.c | 436 ++++++++++++++++++++++++++++++---------------------------
src/itrafmon.c | 19 +--
src/serv.c | 17 +--
3 files changed, 239 insertions(+), 233 deletions(-)
--
1.9.1
9 years, 4 months
[PATCH 0/8] iptraf-ng: serv.c cleanups
by Vitezslav Samel
Hi!
There's another round of cleanups, this time in serv.c. Count this
as another prerequisite for packet mmap() patches. The same cleanups
should be done also in other main functions. Will work on this.
Cheers,
Vita
Vitezslav Samel (8):
servmon(): remove idx variable
servmon(): remove baridx variable
print_serv_rates(): move NULL-check
servmon(): simplify scrolling
servmon(): allow scrolling with Home, End keys
serv.c: move statwin into struct portlist
serv.c: move print_serv_rates() into move_bar()
servmon(): move keypress and packet handling into separate functions
src/serv.c | 443 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 220 insertions(+), 223 deletions(-)
--
1.9.1
9 years, 4 months
iptraf-ng
by 韶升皓
iptraf-ng
上海北京深圳,销-售-主-管即将开课,火爆报名中!
Shanghai Beijing Shenzhen, main sale - pin - tube will begin, hot application!
韶升皓竞争颇似打网球,与球艺胜过你的对手比赛,可以提高你的水平。(戏从对手来。)祝您知者不惑,仁者不忧,勇者不惧。
9 years, 4 months
[PATCH 1/3] ipfrag: remove dead code
by Nikola Pajkovsky
Signed-off-by: Nikola Pajkovsky <n.pajkovsky(a)gmail.com>
---
src/ipfrag.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/ipfrag.h b/src/ipfrag.h
index 67d5d3e7de5c..a04c4e7c1a23 100644
--- a/src/ipfrag.h
+++ b/src/ipfrag.h
@@ -30,11 +30,6 @@ struct fragent {
struct fragent *next_entry;
};
-struct fragfreelistent {
- struct fragent *top;
- struct fragfreelist *next_entry;
-};
-
static inline unsigned int ipv4_frag_offset(struct iphdr *ip)
{
return (ntohs(ip->frag_off) & 0x1fff) * 8;
--
2.0.0.rc2
9 years, 4 months
[PATCH 00/10] iptraf-ng: various cleanups and one bugfix
by Vitezslav Samel
Vitezslav Samel (10):
updateentry(): reduce number of args
ipmon(): pick up better names for variables
othptab.c: refactor ICMP dest unreachable processing
centralize IPv4 fragment handling
ipmon(): move fragment handling down to add_othp_entry()
ipmon(): move fragment handling down to updateentry()
ipmon(): change if()s into switch
ifstats(): move keypress and packet handling into separate functions
struct iflist: remove unused variable
BUGFIX: detstats(): properly account non-IP packets
src/detstats.c | 2 +-
src/ifstats.c | 161 ++++++++++++++++++++++++++++++---------------------------
src/ipfrag.c | 6 +--
src/ipfrag.h | 20 +++++++
src/itrafmon.c | 80 +++++++++-------------------
src/othptab.c | 82 ++++++++++++++++++-----------
src/othptab.h | 5 +-
src/packet.c | 15 +++++-
src/packet.h | 1 +
src/tcptable.c | 23 ++++-----
src/tcptable.h | 8 +--
11 files changed, 218 insertions(+), 185 deletions(-)
--
1.9.1
9 years, 4 months
Configuring daemon capture mode settings
by Darren Spruell
Greetings,
Is it possible to set configuration options for a daemonized iptraf-ng
instance? I'd like to run background report+logging of the tcp/udp
ports statistics and typically add a high port to the configuration
when run interactively.
Also curious to know if there is a way to specify an alternate logging
directory but preserve the default file names that iptraf-ng uses. In
other words, keep log names unchanged but write to a different
directory than /var/log/iptraf-ng.
Great project!
--
Darren Spruell
phatbuckett(a)gmail.com
9 years, 4 months
[PATCH v3 0/3] iptraf-ng: show dropped packet counts
by Vitezslav Samel
v3:
rebase to make it apply cleanly
v2:
change dropped counter position in hostmon()
v1:
initial revision
Vitezslav Samel (3):
othptab.c: fix window size calculation
ipmon(): show packet captured count only when needed
all: show dropped packet count
src/deskman.c | 6 ++++++
src/deskman.h | 1 +
src/detstats.c | 5 +++++
src/hostmon.c | 7 ++++---
src/ifstats.c | 7 ++++---
src/itrafmon.c | 7 ++++++-
src/othptab.c | 2 +-
src/packet.c | 13 +++++++++++++
src/packet.h | 1 +
src/pktsize.c | 4 ++++
src/serv.c | 4 ++++
11 files changed, 49 insertions(+), 8 deletions(-)
--
1.9.1
9 years, 4 months
[PATCH v2 0/7] iptraf-ng: packet_get optimizations
by Vitezslav Samel
Main idea for this work is to minimize the work needed to be done
in packet_get(), which is the hottest path in the program.
Cheers,
Vita
v2:
no need to check for NULL on xmallocz()ed pointer
v1:
initial revision
Vitezslav Samel (7):
refactor struct pkt_hdr initialization
refactor pkt_cleanup()
packet_get(): optimize - move struct iovec
packet_get(): optimize - move struct sockaddr_ll
packet_get(): optimize - move struct msghdr
packet_get(): optimize - remove cache variables
pkt_hdr: make pkt_buf allocated from heap
src/capture-pkt.c | 12 ++++++----
src/detstats.c | 10 +++++----
src/hostmon.c | 18 +++++++++------
src/ifstats.c | 8 ++++---
src/itrafmon.c | 12 +++++-----
src/othptab.c | 6 ++---
src/packet.c | 67 +++++++++++++++++++++++++++++++++++++------------------
src/packet.h | 30 +++++++------------------
src/pktsize.c | 6 ++++-
src/serv.c | 6 +++--
10 files changed, 102 insertions(+), 73 deletions(-)
--
1.9.1
9 years, 4 months
[PATCH 0/7] iptraf-ng: packet_get optimizations
by Vitezslav Samel
Main idea for this work is to minimize the work needed to be done
in packet_get(), which is the hottest path in the program.
Cheers,
Vita
Vitezslav Samel (7):
refactor struct pkt_hdr initialization
refactor pkt_cleanup()
packet_get(): optimize - move struct iovec
packet_get(): optimize - move struct sockaddr_ll
packet_get(): optimize - move struct msghdr
packet_get(): optimize - remove cache variables
pkt_hdr: make pkt_buf allocated from heap
src/capture-pkt.c | 12 ++++++----
src/detstats.c | 10 ++++----
src/hostmon.c | 18 ++++++++------
src/ifstats.c | 8 ++++---
src/itrafmon.c | 12 ++++++----
src/othptab.c | 6 ++---
src/packet.c | 70 ++++++++++++++++++++++++++++++++++++++-----------------
src/packet.h | 30 +++++++-----------------
src/pktsize.c | 6 ++++-
src/serv.c | 6 +++--
10 files changed, 105 insertions(+), 73 deletions(-)
--
1.9.1
9 years, 4 months
[PATCH v2 0/3] iptraf-ng: show dropped packet counts
by Vitezslav Samel
v2:
change dropped counter position in hostmon()
v1:
initial revision
Vitezslav Samel (3):
othptab.c: fix window size calculation
ipmon(): show packet captured count only when needed
all: show dropped packet count
src/deskman.c | 6 ++++++
src/deskman.h | 1 +
src/detstats.c | 5 +++++
src/hostmon.c | 7 ++++---
src/ifstats.c | 7 ++++---
src/itrafmon.c | 7 ++++++-
src/othptab.c | 2 +-
src/packet.c | 13 +++++++++++++
src/packet.h | 1 +
src/pktsize.c | 4 ++++
src/serv.c | 4 ++++
11 files changed, 49 insertions(+), 8 deletions(-)
--
1.9.1
9 years, 4 months