[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Please help me Please!!!
From: |
Michael Anburaj |
Subject: |
[lwip-users] Please help me Please!!! |
Date: |
Fri, 14 Feb 2003 12:54:25 -0800 (PST) |
Hi,
I tried to run Adam's example code (18.1 Using the API
from lwip.pdf).
>From the PC, through Internet explorer (ie) browsed to
this URL "http://169.254.140.28/". Where
169.254.140.28 is the IP address set on the target
(MIPS) hardware running LwIP over UCOS-II operating
System. The program on the MIPS side gets the HTTP GET
packet & in return initiated from the LwIP app, it
sends out 2 data packets as mentioned below.
If you look at the console debug output from
netif->linkoutput() function <attached below in this
email>, the pbuf passed to it (p) has 2 payloads, the
1st one "p->payload[0 to p->len]" & the second one
"p->next->payload[0 to p->next->len]".
Questions
1. Does this seem right to you??
2. If so, Then how these 2 payloads in the pbuf (p) be
sent out?
Currently in the Ethernet IF code, at
netif->linkoutput() function I simple send them out as
is to the Ethernet driver below in 2 successive calls
(for the 2 payloads). And the Ethernet driver simply
puts the data out through the wire. If I look at the
data received on the PC side using Ethereal, It shows
the 1st Payload of the 'http_html_hdr' packet & the
second payload is getting miss interpreted. It is the
case with the 'indexdata' packet too. The 2nd
payloads are getting miss interpreted.
What do I mean by miss interpreted??
When the packet corresponding to 'http_html_hdr' or
'indexdata' is sent to the PC, the Internet explorer
receives the following 2 data frames:
ACK packet to IPAddress 169.254.140.27 <PC's IP
address> from 169.254.140.28 <MIPS hardware> Ethernet
II frame type (I guest its a raw Ethernet frame) to
MAC address 43:6f:6e:74:65:6e from 74:2d:74:79:70:65.
The string carried by 'http_html_hdr', "Content-type:
text/html\r\n\r\n" is getting interpreted for src &
dst MAC addresses, since this string is sent all by
itself as raw frame.
Please tell me where I went wrong.
[ note: I also tried putting the 2 payloads together
in 1 single buffer & send them to the Ethernet driver
in one call. Still I see the same results.]
I can send the ethereal debug capture file too.
Thanks a lot.
-Mike.
Console debug output:
--------------------------------
do_write:C o n t e n t - t y p e : t e x t / h t m l
netif->linkoutput():
p->payload[0 to p->len]:
[0] à [e0.] [98] [9e] " [84] - [96] [0] Ð [d0]
[a0] [0] [0] í [ed] [8] [0] E [45] [0] [0] D
[44] [0] [3] @ [40] [0] ÿ [ff] [6] [12] T [54]
© [a9] þ [fe] [8a] ¯ [af] © [a9] þ [fe] [8a] °
[b0] [0] P [50] [4] [11] [0] [0] [19] y [79]
[0] [ad] ? [1e] [80] P [50] [18] [3] [80] J
[4a] " [84] [0] [0]
p->next->payload[0 to p->next->len]:
C [43] o [6f] n [6e] t [74] e [65] n [6e] t [74] -
[2d] t [74] y [79] p [70] e [65] : [3a] [20] t [74]
e [65] x [78] t [74] / [2f] h [68] t [74] m [6d] l
[6c]
[d]
[a]
[d]
[a] [0]
do_write:< h t m l > < h e a d > < t i t l e > A t
e s t p a g e < / t i t l e > < / h e a d > < b o
d y > T h i s i s a s m a l l t e s t p a
g e . < / b o d y > < / h t m l >
netif->linkoutput():
p->payload[0 to p->len]:
[0] à [e0] [98] [9e] " [84] - [96] [0] Ð [d0]
[a0] [0] [0] í [ed] [8] [0] E [45] [0] [0]
[89] [0] [4] @ [40] [0] ÿ [ff] [6] [12] [e] ©
[a9] þ [fe] [8a] ¯ [af] © [a9] þ [f.e] [8a] ° [b0]
[0] P [50] [4] [11] [0] [0] [19] o [95] [0]
[ad] ? [1e] [86] P [50] [18] [3] z [7a] Õ [d5]
* [2a] [0] [0]
p->next->payload[0 to p->next->len]:
< [3c] h [68] t [74] m [6d] l [6c] > [3e] [20] <
[3c] h [68] e [65] a [61] d [64] > [3e] < [3c] t [74]
i [69] t [74] l [6c] e [65] > [3e] A [41] [20] t
[74] e [65] s [73] t [74] [20] p [70] a [61] g [67]
e [65] < [3c] / [2f] t [74] i [69] t [74] l [6c] e
[65] > [3e] < [3c] / [2f] h [68] e [65] a [61] d [64]
> [3e] [20] < [3c] b [62] o [6f] d [64] y [79] >
[3e] [20] T [54] h [68] i [69] s. [73] [20] i [69]
s [73] [20] a [61] [20] s [73] m [6d] a [61] l
[6c] l [6c] [20] t [74] e [65] s [73] t [74] [20]
p [70] a [61] g [67] e [65] . [2e] [20] < [3c] /
[2f] b [62] o [6f] d [64] y [79] > [3e] [20] < [3c]
/ [2f] h [68] t [74] m [6d] l [6c] > [3e] [0]
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Please help me Please!!!,
Michael Anburaj <=