Commit Graph

23 Commits

Author SHA1 Message Date
abs
c30a39f078 Fix tcpdump example from "‐i npflog0.pcap" to "‐i npflog0" 2020-10-30 09:23:36 +00:00
rmind
0dd7abe473 libnpf fix: link the library itself to libnv; libnpf users should not be
expected to assume this dependency.
2019-08-24 13:20:52 +00:00
mrg
82974f2217 check for snprintf() truncation and fail sanely if so, rather than
attempting to use a file that won't exist or isn't secure.
2019-02-04 08:21:11 +00:00
rmind
39013e66c1 NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
  a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
  previous versions.  Also, different serialisation format means NPF
  connection/config saving and loading is not compatible with the
  previous versions either.

Thanks to christos@ for extra testing.
2018-09-29 14:41:35 +00:00
maxv
918cd75c72 remove commented reference to pflog 2018-08-31 10:38:17 +00:00
sevan
eb0a9b17da Simplify the description of npfd, default npflog interface & pcap file are
covered later.
Move advise regarding offline analysis to the CAVEATS section.
2018-08-07 22:55:47 +00:00
sevan
1d6667cee9 Escape ellipsis to stop it being interpreted as a macro.
Drop commented out manual which doesn't exist.
2018-08-07 22:02:08 +00:00
christos
5bf5a8b9c7 Treat EOF as a condition to re-open the pcap socket. Since we've been woken
up by poll(2), there must be data to read. If there is not, our socket might
not be ok anymore.
2017-10-16 11:18:43 +00:00
christos
531fc46210 Add a message when we are re-opening the pcap socket. 2017-10-16 11:17:45 +00:00
christos
c06842d6f7 try to re-open the pcap connection on error. 2017-10-15 15:26:10 +00:00
christos
624bfdf064 can't call pcap_datalink before activate. 2017-03-25 11:00:27 +00:00
christos
043ad880a5 fix signed compare 2017-01-24 20:25:08 +00:00
christos
ec23b4d29e output every 5 seconds instead of 60 or every 100 packets 2017-01-24 20:24:59 +00:00
wiz
33271d5eb0 Whitespace, fix xref, remove unnecessary macro, sort SEE ALSO. 2017-01-08 13:59:53 +00:00
christos
b083914cc2 add example. 2017-01-07 18:48:47 +00:00
christos
cec127882c add man page, lint cleanups. 2017-01-07 16:48:03 +00:00
christos
177e6c06dd restrict permissions on log file 2017-01-07 16:36:54 +00:00
christos
9ed7390988 Add log validation 2017-01-06 19:20:24 +00:00
christos
83809af30d set the timeout to 1 second so we can see packets flowing in real time. 2017-01-05 16:23:31 +00:00
christos
d8571daf5b flesh this out more. 2016-12-30 19:55:46 +00:00
christos
f069472cf9 starts running 2016-12-28 03:02:54 +00:00
christos
204834d4f3 Add some flesh. 2016-12-28 01:25:48 +00:00
rmind
61e84d3fc1 Add some very preliminary npfd(8) code. 2016-12-27 22:20:00 +00:00