This diff introduces a Processor interface in the processor sub-directory and moves nfdump.php into that directory implementing the Processor interface. This supports custom Processor implementations by specifying a processor class in settings (similarly to the way custom databases are supported). NfDump becomes the default processor if no processor is specified.
I use this to allow nfsen-ng to run in a php chroot without direct access to the nfcapd files. The original nfsen supports this. My custom nfdump model (not included here), which is similar to the original nfsen, is to run a separate nfsend daemon and have nfsen-ng communicate via a fifo. This could also work using a socket which would allow nfsen-ng to run on a different host from that where the nfcapd files reside.
This diff introduces a Processor interface in the processor sub-directory and moves nfdump.php into that directory implementing the Processor interface. This supports custom Processor implementations by specifying a processor class in settings (similarly to the way custom databases are supported). NfDump becomes the default processor if no processor is specified.
I use this to allow nfsen-ng to run in a php chroot without direct access to the nfcapd files. The original nfsen supports this. My custom nfdump model (not included here), which is similar to the original nfsen, is to run a separate nfsend daemon and have nfsen-ng communicate via a fifo. This could also work using a socket which would allow nfsen-ng to run on a different host from that where the nfcapd files reside.