Hi Wes,
I downloaded 5.1.1 (as well 5.2) and did configure as follows
#./configure --with-cc=/home/ELDK3.0/usr/bin/ppc_82xx-gcc --with-ar=/home/ELDK3.0/usr/bin/ppc_82xx-ar --with-openssl=/home/ELDK3.0/ppc_82xx/usr --with-endianness=big --disable-applications --with-ldflags=-Bstatic --enable-internal-md5 --disable-mib-loading
#make
#make install
in net-snmp-config.h WORDS_BIGENDIAN is defined as
#define WORDS_BIGENDIAN 1
Generated snmpd is
snmpd: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
I ran this snmpd on MPC-8248 (Motorola). Now when I issue a getrequest (v3 get) from a Intel processor, authentication failure happens. And if I issue same v3 getrequest for a motorola pc(another MPC-8248) it works fine. I'm totally clueless what's wrong.
Guru
On Wed, 22 Dec 2004 Wes Hardaker wrote :
> >>>>> On 13 Dec 2004 13:08:31 -0000, "Gurusidhesh Hiremath" <[EMAIL PROTECTED]> said:
>
>Gurusidhesh> usm: Verification failed.
>Gurusidhesh> Authentication failed for newv3user
>
>Gurusidhesh> To be more specific: I am running snmpd on a Motorola
>Gurusidhesh> hardware. If I send a get request from Intel processor
>Gurusidhesh> pc, the authentication fails. And if I send a request
>Gurusidhesh> from other Motorola processor pc, the request succeeds.
>Gurusidhesh> Is it problem with the network byte ordering?. I tried
>Gurusidhesh> calling MDreverse() after every time MDupdate is
>Gurusidhesh> called. But still I'm not able to contact the
>Gurusidhesh> snmpd. Where & when should I call MDreverse? One more
>Gurusidhesh> observation is that it only happens whenever MD5
>Gurusidhesh> authentication is used. With SHA it works fine.
>
>Well, it does seem like a byte order problem. However, all of our
>code should be properly testing for byte order at compilation time and
>should deal with it in the code. You haven't been modifying the code
>have ya ;-)
>
>Check the WORDS_BIGENDIAN setting in your net-snmp-config.h file to
>ensure it is set right.
>
>--
>Wes Hardaker
>Sparta
