Development:

Error compiling development version: v.3.3.11-dev when SNMP is defined...

- too many args to function: getIfName

./configure --enable-snmp --enable-mysql --disable-static;

make
.
.
.
netflowPlugin.c: In function 'updateInterfaceName':
netflowPlugin.c:344: warning: passing argument 2 of 'getIfName' makes
pointer from integer without a cast
../iface.h:451: note: expected 'char *' but argument is of type 'u_int16_t'
netflowPlugin.c:344: warning: passing argument 3 of 'getIfName' makes
integer from pointer without a cast
../iface.h:451: note: expected 'int' but argument is of type 'char *'
netflowPlugin.c:344: warning: passing argument 4 of 'getIfName' makes
pointer from integer without a cast
../iface.h:451: note: expected 'char *' but argument is of type 'u_short'
netflowPlugin.c:344: warning: passing argument 5 of 'getIfName' makes
integer from pointer without a cast
../iface.h:451: note: expected 'u_short' but argument is of type 'char *'
netflowPlugin.c:344: error: too many arguments to function 'getIfName'

----------------------------------------------------------------------------
---
In file "iface.h" getIfName defined as:

#ifdef HAVE_SNMP
extern char* getIfName(char *hostname, char *community, int ifIdx,
                       char *ifName_buf, u_short ifName_buflen);
#endif

----------------------------------------------------------------------------
---
In file " netflowPlugin.c" use as:

  getIfName(_intoa(addr, buf, sizeof(buf)),
            ifStats->netflow_device_port,
            "public", ifStats->interface_id,
            ifStats->interface_name,
            sizeof(ifStats->interface_name));

Seems like the port definition is not allowed to be specified in the
function or is missing
In the definition...



---Ron Henderson

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to