Commit graph

9 commits

Author SHA1 Message Date
rumko
e2cb5fcef0 sysutils/pftop: fix build on fbsd >= 10
Ok@ wiz
2015-01-14 20:39:42 +00:00
obache
27edd2857b remove bpf_dump() definition from sf-gencode.h.
Its signature is changed at libpcap-1.0, not DragonFly specific,
and it should be defined by include of pcap.h, no need to define here.

fixes PR#45035.
2011-06-10 11:45:01 +00:00
rumko
8340aab37c sysutils/pftop: support newer PF and depend on osabi
* In order for pftop to be built successfully with newer PF
versions (> 4.1), additional patches are necessary which were taken
from OpenBSD's ports as seen in PR pkg/44339
* Pftop compiled for another PF version will not work (properly),
so to avoid any problems we must depend on the OS version

ok@ wiz
2011-02-09 22:51:38 +00:00
wiz
7afb21b620 DragonFly fixes from Rumko in PR 42345. 2010-09-18 20:48:23 +00:00
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
peter
b7760d3810 The previous commit to fix the include path didn't worked so well on
NetBSD 2 + pflkm, because the path was substituted by "__nonexistent__".
So to fix this properly, add a patch with CPP conditional which fixes
the path for __DragonFly__.
2006-03-06 23:02:07 +00:00
joerg
a6bc643599 Fix compilation on DragonFly: MIN is not defined, UID_MAX / GID_MAX
can be obtained from limits.h and RB_PROTOTYPE is needed before
RB_GENERATE.
2005-12-07 14:32:07 +00:00
peter
72dd342410 Update the patch to fix a build problem for pf in OpenBSD 3.8. 2005-12-02 12:25:24 +00:00
peter
6ad788ca7d Initial import of pftop-0.4 into the NetBSD Packages Collection.
Pftop is a small, curses-based utility for real-time display of
active states and rule statistics for PF, the packet filter from OpenBSD.
2004-11-05 15:08:33 +00:00