"net 192.168.1.0/24;;net 192.168.2.0/24" would it be nicer to explicitly specify the interface?
"eth0(net 192.168.1.0/24),eth2:2(net 192.168.2.0/24)" That's still ugly - both syntactically and because of the potential huge length of the command line blowing up buffers. I don't know what Luca will do at this stage of the release process... but thanks for the work!! One thing Luca and I have discussed is adding configuration web page's) which would give the user another option for setting parms. The processing flow would be like this: 1. Read prefs, set all flags 2. Process command line, update prefs (so the command line overrides the prefs). Then you would have a web page to change the various settings - most changes wouldn't take effect until the next run, but you have a lot more flexability than an endless sequence of command line parameters. Plus, we could offer more complex options - since we construct the page on the fly, we know the interfaces and could easily build separate filters. i.e. keep -B "" applied to all and then have this: Filter Expression (takes effect immediately) All: <entry box> or eth0: <entry box> eth1: <entry box> etc. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of B. Loic Sent: Thursday, August 14, 2003 12:19 PM To: [EMAIL PROTECTED] Subject: [Ntop-dev] [patches] Multiple filters Hello, At the moment ntop supports multiple interfaces but allows only one filter (which is set on each interface). As I wrote a few weeks ago, I need to set a different filter on each interface. Since I didn't get an answer about how to do that with "current" ntop, I supposed it was impossible. I've just finished writing a (quick & dirty ?) piece of code that handle multiple filters. The diffs for the code and the manpage are attached. This code works for me, but I am not sure it will work on other distro / OS. It may also not be very well optimized and/or fit the "ntop coding style". Any feedback is welcome. Have a nice day, Lo�c (BTW, I removed the -R flag in the options list in the man page. After I asked the question some other day, Burton replied that this option had been removed : I cleared it from the man so that people don't get confused any more. If that isn't OK, keeping it won't disturb me either.) _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
