Hi Luca, I am running ntop-3.3 on CentOS 5 with libpcap-0.9.4 and ran into the following problem: The "Configured Value" for the "Capture Interfaces (-i)" preference stays blank and does not show any interfaces and associated checkmarks.
When looking at the code I found that the pcap_findalldevs call in admin.c did not return any interfaces. Obviously this is because I'm running the ntop web interface as non-root (--user ntop): pcap_findalldevs() constructs a list of network devices that can be opened with pcap_open_live(). (Note that there may be network devices that cannot be opened with pcap_open_live() by the process calling pcap_findalldevs(), because, for example, that process might not have sufficient privileges to open them for capturing; if so, those devices will not appear on the list.) Find attached a patch that will fix this problem by caching the result obtained by root in the initial pcap_findalldevs call (initialize.c) and saving the list of available interfaces in myGlobals for reuse in the web interface (admin.c) and potentially elsewhere. Cheers Stefan
ntop-alldevs.patch
Description: ntop-alldevs.patch
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
