Commit Graph

15 Commits

Author SHA1 Message Date
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
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
joerg 975a152cfc If a library needs a symbol from another library, pull that library in
explicitly, even if the DT_NEEDED closure would normally already ensure
the presence.
2013-09-11 23:04:09 +00:00
christos d46bb1b7ef remove debugging 2013-03-13 13:16:38 +00:00
christos a892d1d365 link against /lib 2013-03-13 02:32:05 +00:00
christos f271f70e13 include bsd.own.mk first, otherwise compat build overwrites our install
dirs.
2013-03-12 20:02:40 +00:00
christos 364fc868d0 fix error message and type of if_idx 2013-03-11 00:29:09 +00:00
christos 70db60e43f fix error message 2013-03-11 00:18:11 +00:00
christos a497a64d11 auto-create the log interface and bring it up. 2013-03-11 00:03:18 +00:00
christos 2c148c8265 forgot to add the c file 2013-03-10 21:49:26 +00:00
rmind 4425b99c58 tabify 2013-03-10 21:45:46 +00:00
christos 885f7abecf - rename ext_normalise to ext_normalize
- move modules to from /usr/lib to /lib
- centralize make rules
2013-03-10 21:41:05 +00:00
rmind 333cdb0c5a Add NPF "rndblock" extension to randomly drop packets (using a random function
with a percentage or modulo operation).  This is a demo module, although it can
be used for packet loss simulation.  Example of a procedure in npf.conf:

procedure "somedrop" {
	# Drop 1.9% of the traffic
	rndblock: percentage 1.9
}
2012-12-10 00:32:23 +00:00
spz 0d6a8650f8 Make the compat libs of npf extension shared libraries go to the
compat directories instead of overwriting the arch native libs.
Also, make sure the compat directories get created. Tested on amd64.
2012-12-09 22:06:21 +00:00
rmind 8c6e21bf5e Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module.  Move normalisation and logging functionality into their own
extensions.  More improvements to come.
2012-09-16 13:47:41 +00:00