Re: ioctl returned -1 ??
Thomas Anders <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Paul Reilly wrote:
> Nov 18 19:47:38 box8 snmpd[9057]: NET-SNMP version 5.2.3
> Nov 18 19:47:47 box8 snmpd[9057]: Connection from UDP: [127.0.0.1]:32772
> Nov 18 19:47:47 box8 snmpd[9057]: Connection from UDP: [127.0.0.1]:32772
> Nov 18 19:48:38 box8 snmpd[9057]: ioctl 35123 returned -1
> Nov 18 19:48:38 box8 snmpd[9057]: ioctl 35123 returned -1
>From /usr/include/bits/ioctls.h:
#define SIOCGIFINDEX 0x8933 /* name -> if_index mapping */
>From agent/mibgroup/if-mib/data_access/interface_ioctl.c:_ioctl_get():
rc = ioctl(fd, which, ifrq);
if (rc < 0) {
snmp_log(LOG_ERR,"ioctl %d returned %d\n", which, rc);
rc = -3;
}
So ioctl(,SIOCGIFINDEX,) is failing for one of your interfaces.
Can you post your interface configuration ("ifconfig -a"), please?
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users