Re: snmpd[7495]: couldn\'t map value 248 for ipAddressAddrType
bheemesh v <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, >From no responses it seems like a similar issue was discussed previously in this mailing list. Can anyone please give me the link of this mail-chain discussion? Best Regards, Bheemesh On Tue, Aug 18, 2009 at 12:41 PM, bheemesh v <[email protected]> wrote: > Hello Again, > > As per below code block in "ipAddressTable.c" , there is no guarantee that > this option will work for IP-MIB? > Can anyone please tell me how does this work (design or logic) > The flow shows that a new entry into the ipAddress Table is causing > problems due to which container remove is being called, and even this seems > to be failing. > I am using net-snmp 5.3.1, and is there a correction for this in any new > version of net-snmp? > > ------------------------------------------------------------- > *int > ipAddressTable_indexes_set_tbl_idx(ipAddressTable_mib_index * tbl_idx, > u_long ipAddressAddrType_val, > char *ipAddressAddr_val_ptr, > size_t ipAddressAddr_val_ptr_len) > { > > DEBUGMSGTL(("verbose:ipAddressTable:ipAddressTable_indexes_set_tbl_idx", > "called\n")); > > /* > * > ipAddressAddrType(1)/InetAddressType/ASN_INTEGER/long(u_long)//l/a/w/E/r/d/h > > */ > /** WARNING: this code might not work for netsnmp_ipaddress_entry */ > ipAddressAddrType_map(&tbl_idx->ipAddressAddrType, > ipAddressAddrType_val); > > /* > * ipAddressAddr(2)/InetAddress/ASN_OCTET_STR/char(char)//L/a/w/e/R/d/h > > */ > tbl_idx->ipAddressAddr_len = sizeof(tbl_idx->ipAddressAddr) / > sizeof(tbl_idx->ipAddressAddr[0]); /* max length */ > /** WARNING: this code might not work for netsnmp_ipaddress_entry */ > /* > * make sure there is enough space for ipAddressAddr data > */ > if (tbl_idx->ipAddressAddr_len < ipAddressAddr_val_ptr_len) { > snmp_log(LOG_ERR, "not enough space for value\n"); > return MFD_ERROR; > }* > > ------------------------------------------------------------- > > Thanks in advance. > BR, Bheemesh > > > > > > > > On Mon, Aug 17, 2009 at 6:45 PM, bheemesh v <[email protected]> wrote: > >> HI, >> >> Also to add it is evident that from the ipAddressTable_constants.h it is >> expected to get only 2 possibil options for: >> INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV4 >> or >> INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6 >> >> And i have a mismatched value for "raw_ipAddressAddrType_val". >> >> But when will this gets invoked when we think of a start-up of the system, >> and where does NetSnmp-Agent is going to get in to this execution step? >> >> Thanks again & regards, >> Bheemesh >> >> >> >> >> >> On Mon, Aug 17, 2009 at 6:39 PM, bheemesh v <[email protected]> wrote: >> >>> Hello, >>> >>> I am a new bee into net-snmp. >>> I am currently using Net-Snmp 5.3.1, where in during the startup i am >>> getting this error from the ip-mib: >>> >>> snmpd[7495]: couldn\'t map value 248 for ipAddressAddrType >>> snmpd[7495]: not enough space for value >>> snmpd[7495]: error setting index while loading ipAddressTable cache >>> >>> What could be wrong with respect to the IpAddressTable part? >>> >>> Please help me with your valuable suggessions. >>> Thanks in advance. >>> >>> Best Regards, >>> Bheemesh >>> >> >> > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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