Hi,

I am building an snmp application within a uclinux distribution V2.6.x.
The snmp is V5.2.1.

I have been having problems getting snmpv3 authentication of the
passphrase to work.

I have found that my problem was due to my snmp libraries being built
for my Linux Motorola system with compilation set for little-endian
instead of big-endian.

This affects the authentication key calculations in net-snmp's MD5.c
which uses #ifdef WORDS_BIGENDIAN to alter the byte reading of key data.

How should  I set this define in the build? Do I need to add
-DWORDS_BIGENDIAN to the CFLAGS?

I can see:
ifdef CONFIG_CPU_BIG_ENDIAN
NET_SNMP_CFG += --with-endianness=big
else
NET_SNMP_CFG += --with-endianness=little
Endif

In the top net-snmp makefile.

I can't see where CONFIG_CPU_BIG_ENDIAN is defined or whether it has any
affect on the define for WORDS_BIGENDIAN.

Regards,

Steve McCarthy


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to