Re: SNMP on an RCM6k
"Dave Moore dmoore-f4pv2F5LI2c/CDIEhCN/twC/[email protected] [rabbit-semi]" <[email protected]> Mon, 28 Mar 2016 14:32:33 -0700
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Organization | Quest Controls |
| Message-ID | <[email protected]> |
Take a look at Tom's repo on github:
https://github.com/digidotcom/DCRabbit_10/blob/master/Lib/Rabbit4000/tcpip/Snmp.lib
In snmp.lib there, you'll find:
if ((rval=udp_write(s,(void __far
*)_snmp.outbuf,length=end-_snmp.xmemseg,0,udi))<(int)length) { -- Dave
On 3/28/2016 2:12 PM, seecwriter-/[email protected] [rabbit-semi] wrote:
>
> I am trying to add SNMP to an RCM6750 application, and I'm using DC 10.72.
> When I compile I get three warnings about incompatible pointer types:
>
>
> line 2026: SNMP.LIB : Wrong type for parameter 2.
> line 2026: SNMP.lib : Converting long to incompatible pointer type
> __far void *
>
>
> There are two other sets of warning that are just the same at
> different places.
>
>
> The warning at line 2026 is regarding this function call:
>
>
> udp_write(s,_snmp.outbuf,length=end-_snmp.xmemseg,0,udi)
>
>
> Here is the prototype for udp_write():
>
>
> int udp_write(udp_Socket *s, void __far * datap, word len, word
> offset, _udp_datagram_info __far * udi);
>
>
> From what I can see, the problem is that the function takes a far
> pointer, and is being passed a long int.
>
>
> Is there supposed to be an updated snmp.lib file for DC10?
>
>
>