Hello, I'm having troubles in request and save the value of the
ipNetToMediaPhysAddress OID.
My routine get the MAC Adress, but only a half of the value.
What I'm doing wrong? Can you help me?

if (vars->type == ASN_OCTET_STR) {
            u_long *sp = malloc(1+id_len);
            memcpy(sp, vars->val.string, id_len);
            const char *teste = htonl(*sp);
            printf("value #%d is a string: %x \n", count++, teste);
            free(sp);
}

Thank you,
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to