This is a discussion on RE: RE: Table problem with ASN_IPADDRESS index within the SNMP Users forums, part of the Networking and Network Related category; But is your host an Intel platform? Look into the index setting code - there might a htons() or not. I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
But is your host an Intel platform?
Look into the index setting code - there might a htons() or not. I had to add some octet swapping code in my MIB handler to get the bytes straight. Adam = -----Original Message----- From: maciej_golas [mailto:maciej_golas@o2.pl] = Sent: Monday, March 19, 2007 10:57 AM To: Adam Bell Cc: net-snmp-users@lists.sourceforge.net Subject: Re: RE: Table problem with ASN_IPADDRESS index ---- Wiadomo=B6=E6 Oryginalna ---- Od: Adam Bell <abell@safenet-inc.com> Do: maciej_golas <maciej_golas@o2.pl>, net-snmp-users@lists.sourceforge.net Data: 19 marca 2007 14:17 Temat: RE: Table problem with ASN_IPADDRESS index > Is the host or the agent running on a little endian machine? > You may have to byte swap at the appropriate location to get network order. > = > Adam > = My host runs on Lunux (x86 architecture). But how to do "byte swap" under my agent? The code generated by mib2c allows that? The information contained in this electronic mail transmission may be privi= leged and confidential, and therefore, protected from disclosure. If you ha= ve received this communication in error, please notify us immediately by re= plying to this message and deleting it from your computer without copying o= r disclosing it. ------------------------------------------------------------------------- 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?p...orge&CID=3DDE= VDEV _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
![]() |
| Thread Tools | |
| Display Modes | |
|
|