pkgsrc/sysutils/pftop/patches/patch-ae
peter 3507adc02f Update pftop to version 0.7. Tested on NetBSD 3.1, 4.0 and yamt-pf42.
Changes in version 0.7:
This version adds state filtering, which is funded by backcountry.com,
many thanks. It is now possible to select which states are displayed
using a tcpdump(8) like filtering language. The filter can be specified
on the command line, using the '-f' switch. It is also possible to
change the filter interactively using the 'f' command key.
Some sample, not necessarily practical, filters are given below:

- Do not show pfsync or carp traffic:

  not (pfsync or carp)
  not pfsync and not carp

- DNS traffic not going to or coming from the DNS servers:

  port 53 and not host (10.0.0.10 or 10.0.0.11)

- States with input bytes greater than 1M:

  inb > 1000000

- Traffic with very small average packet size:

  ((inb / inp) + (outb / outp))/2 < 100
  inb / inp + outb / outp < 200


Changes in version 0.6:
No functional changes. It now compiles and runs on OpenBSD 4.1-current
after pf interface changes. This version also contains separated pf
and display code. This should make adding new views easier.


Changes in version 0.5:
This version displays all active pf rules by traversing the ruleset tree.
In addition HFSC queues are now displayed correctly thanks to
Jared Spiegel. This version also incorporates other patches and comments
I have received since the previous release. Many thanks to all who have
contributed.

- New command-line switch 'S' to start the display at a given state.
- Display HFCS statistics in the queue page.
- Fixed state and rule byte and packet counters
- Fixed state sorting by packets and bytes
- Fixed some minor display problems
- The rule view now traverses all rulesets, and displays all active rules,
  together with anchor (ruleset) names.
- Anchor and Label fields dynamically resize themselves
2008-06-15 14:09:03 +00:00

28 lines
755 B
Text

$NetBSD: patch-ae,v 1.1 2008/06/15 14:09:04 peter Exp $
--- engine.h.old 2008-06-14 17:39:04.000000000 +0200
+++ engine.h 2008-06-15 12:38:21.000000000 +0200
@@ -100,8 +100,8 @@
void tb_end(void);
-int tbprintf(char *format, ...) GCC_PRINTFLIKE(1,2);
-int msgprintf(char *format, ...) GCC_PRINTFLIKE(1,2);
+int tbprintf(char *format, ...);
+int msgprintf(char *format, ...);
void end_line(void);
void end_page(void);
@@ -150,12 +150,8 @@
extern int rawwidth;
extern int columns, lines;
-extern int need_update;
-extern int need_sort;
-
extern volatile sig_atomic_t gotsig_close;
extern volatile sig_atomic_t gotsig_resize;
-extern volatile sig_atomic_t gotsig_alarm;
extern field_view *curr_view;
extern struct view_manager *curr_mgr;