As per asn1.h
 struct counter64 
{                                                                               
                                   
 
          u_long          
high;                                                                           
                                
 
          u_long          
low;                                                                            
                                
 
 };          

System defined unsgined long  can be 32 bit as well as 64 bit depending on OS.  
I did not find any definition of u_long inside net-snmp code.
I do not know I net-snmp is taking care of this .

I have an unsigned long long data , which need to be assigned to counter64. I 
can assign that using high part and low part.

The problem is size, as well as endian ness. While conversion do I have to 
check 
ENDIAN(BIG ENDIAN)  ness also ?  


is there any thing worng here ?

In addition what will happen over the net, If the master agent is on Big ENDIAN 
box and sub-agent is in Little Endian?

Thanks


      
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to