RE: RE: Table problem with ASN_IPADDRESS index

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-19-2007
Adam Bell
 
Posts: n/a
Default RE: RE: Table problem with ASN_IPADDRESS index

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:05 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0