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:[EMAIL PROTECTED] 
Sent: Monday, March 19, 2007 10:57 AM
To: Adam Bell
Cc: [email protected]
Subject: Re: RE: Table problem with ASN_IPADDRESS index

---- Wiadomość Oryginalna ----
Od: Adam Bell <[EMAIL PROTECTED]>
Do: maciej_golas <[EMAIL PROTECTED]>, [email protected]
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 
privileged and confidential, and therefore, protected from disclosure. If you 
have received this communication in error, please notify us immediately by 
replying to this message and deleting it from your computer without copying or 
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?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

Reply via email to