Hi,

Note that this is my first post on this list....

I tried to get 5.1.1 to compile and run on FreeBSD 5.1.1/64Amd on a dual
opteron.
And got this finally to work. In the process I also fixed the TCP/UDP table
problem.

However, some of the bugs stem from the fact that at a lot of places in the code
the
assumption is used that sizeof(char*) == sizeof(int). Which is not the case.
On Amd64 it is
    sizeof(char*) == sizeof(long) == 8 <> sizeof(int) == 4

So is there in the headers something like:
    typedef char* addr_t;

or is caddr_t available on all platforms???
In which case I'll fix my patch to use that.

So where do I leave my patchset after that. Note that quite a few of files are
fixed.
And I've just used the compiler warning output to do the fixing......

Thanx,

--WjW

----- Original Message ----- 
From: "Jun Kuriyama" <[EMAIL PROTECTED]>
> Willem Jan Withagen wrote:
> > I've got some patches for net-snmp which are not quite ready for the larger
> > audience, since they might create some trouble on 32bit platforms.
> >
> > But some of the parts are at least usefull since it indicates where there
are
> > 32<>64 bit problems. eg. int=32bit, size_t, long and pointers are all 64
bits.
> > And thus int <> (size_t, long, pointer) and the code is abundant with this.
> >
> > I've also fixed the UDP/tcpTable code
> >
> > All this to get snmpd working, I have not tested much of the other tools.
> > but snmpwalk -Cc against a 64bit snmpd does not crash the snmpd.
> >
> > Just let me know where you want to go from here.
>
> Thanks!  I'm working on net-snmp breakage on recent current.  I'll
> check your patch when I get time for it.
>
> Anyway, I think reporting your patch back to net-snmp team would be
> wonderful.



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to