lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] a question about porting


From: Johan Karel Maria Dams
Subject: Re: [lwip-users] a question about porting
Date: Thu, 11 Nov 2004 13:19:54 +0200 (EET)

Hi,

I don't know if this is of any help, but in my situation running uC/OS-II
on m32c microcontroller and a cs8900 in 8-bit polling mode I had to change
some macro's in etharp.c to get it working.
I had some similar problems, and this solved the problem. Not sure if it
will work for you though, but you can try.

#define ARPH_HWLEN(hdr) (((hdr)->_hwlen_protolen) >> 8)
#define ARPH_PROTOLEN(hdr) (((hdr)->_hwlen_protolen) & 0xff)
#define ARPH_HWLEN_SET(hdr, len) (hdr)->_hwlen_protolen =
htons(ARPH_PROTOLEN(hdr) | ((len)))
#define ARPH_PROTOLEN_SET(hdr, len) (hdr)->_hwlen_protolen = htons((len) |
(ARPH_HWLEN(hdr) << 8))

(This last one stays the same)


Best regards,
Johan


On Wed, 10 Nov 2004, jack W wrote:

> lwip-usershello everyone
>
>
>   i am porting the lwip into ucos . but i happen a question . i use ping 
> command to ping the board  and i watch the incoming data packet , it is 
> running .and  data is follwing :
>                                                from here
>                                                |
> 0x80043180  00 00 00 00 00 00 00 00 02 01 00 00 90 31 04 80 .............1..
> 0x80043190  40 00 40 00 FF FF FF FF FF FF 00 E0 4C 03 18 72 @address@hidden
> 0x800431a0  08 00 06 04 08 00 06 04 00 01 00 E0 4C 03 18 72 ............L..r
> 0x800431b0  C0 A8 00 01 00 00 00 00 00 00 C0 A8 00 03 20 20 ..............
>                                                      | end
>
>  but in the function arp_arp_input() ; it watch the pointer hdr
>
> ...hdr
>      ethhdr
>        ....dst  ff ff ff ff ff ff
>        ....src  00 e0 4c 03 18 72
>      hwtype    0x01000
>      proto     0x0008
>      _hwlen_protolen 0x0406
>     shwaddr
>        ..... 00 e0 40 03 18 72
>      sipaddr
>        ..... 0x0100a8c0
>     dhwaddr
>      .....   00 00 00 00 00 00
>     dipaddr
>      ......  0x20200300      <---- why happen this error ,my board ip should  
>          be                            0x0300a8c0 "192.168.0.3
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]