lwip-users
[Top][All Lists]
Advanced

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

Fwd: Re: [lwip-users] ping


From: address@hidden
Subject: Fwd: Re: [lwip-users] ping
Date: Fri, 29 Jan 2010 15:08:08 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1



address@hidden  wrote:



looking the code and enabling the ip debug, I see that a icmp packet
seems to be correctly handled:

ip_input: iphdr->dest 0x4e17a8c0 netif->ip_addr 0x4e17a8c0 (0x17a8c0,
0x17a8c0, 0x4e000000)
ip_input: packet accepted on interface A1
ip_input:
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |        60     | (v, hl, tos, len)
+-------------------------------+
|    15942      |000|       0   | (id, flags, offset)
+-------------------------------+
|  128  |    1  |    0x4C78     | (ttl, proto, chksum)
+-------------------------------+
|  192  |  168  |   23  |  100  | (src)
+-------------------------------+
|  192  |  168  |   23  |   78  | (dest)
+-------------------------------+
ip_input: p->len 60 p->tot_len 60
icmp_input: ping
ip_output_if: A10
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |        60     | (v, hl, tos, len)
+-------------------------------+
|    15942      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |    1  |    0xCD77     | (ttl, proto, chksum)
+-------------------------------+
|  192  |  168  |   23  |   78  | (src)
+-------------------------------+
|  192  |  168  |   23  |  100  | (dest)
+-------------------------------+
netif->output()icmp_input: ip_output_if returned an error: þ.
ip_input: iphdr->dest 0x4e17a8c0 netif->ip_addr 0x4e17a8c0 (0x17a8c0,
0x17a8c0, 0x4e000000)
ip_input: packet accepted on interface A1
ip_input:
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |        60     | (v, hl, tos, len)
+-------------------------------+
|    15981      |000|       0   | (id, flags, offset)
+-------------------------------+
|  128  |    1  |    0x4C51     | (ttl, proto, chksum)
+-------------------------------+
|  192  |  168  |   23  |  100  | (src)
+-------------------------------+
|  192  |  168  |   23  |   78  | (dest)
+-------------------------------+
ip_input: p->len 60 p->tot_len 60
icmp_input: ping
ip_output_if: A10
IP header:
+-------------------------------+
| 4 | 5 |  0x00 |        60     | (v, hl, tos, len)
+-------------------------------+
|    15981      |000|       0   | (id, flags, offset)
+-------------------------------+
|  255  |    1  |    0xCD50     | (ttl, proto, chksum)
+-------------------------------+
|  192  |  168  |   23  |   78  | (src)
+-------------------------------+
|  192  |  168  |   23  |  100  | (dest)
+-------------------------------+
netif->output()icmp_input: ip_output_if returned an error: þ.

this error is -2

and looking into the ethernetif_input I use
/* skip Ethernet header */
pbuf_header( p, (s16_t)-sizeof(struct eth_hdr) );

/* pass to network layer */
xNetIf->input( p, xNetIf );

If I comment the line in which I skip the ethernet header, I receive
just wong ip packet.
Now, if the ip packet passed to ->input funzion seems to be ok, why the
netif->output()icmp_input: ip_output_if returned an error: þ.
produce an error?

the emac driver seems to works fine.

someone can help me?










--
Stefano Marini
ExaLogic srl
Via Francesco D'Ovidio, 33/A
00137 Roma
Mob. +39 3491086213
Tel. +39 06 45475275
Fax. +39 06 45476002
P.IVA 09464491001
E-Mail address@hidden

Le informazioni contenute nella presente comunicazione e relativi allegati 
possono essere riservate e sono,comunque, destinate esclusivamente alle persone 
o all'ente sopraindicati.La diffusione, distribuzione e/o copiatura del 
documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è 
proibita sia ai sensi dell'art. 616 c.p..Se avete ricevuto questo messaggio per 
errore, vi preghiamo di distruggerlo o di comunicarlo al numero +39 06 45475275
The information in this e-mail (which includes any attached files) is 
confidential and may be legally privileged. It is intended for the addressee 
only. Access to this e-mail by anyone else is unauthorised. It is not to be 
relied upon by any person other than the addressee except with our prior 
written approval. If no such approval is given, we will not accept any 
liability (in negligence or otherwise) arising from any third party acting, or 
refraining from acting on such information. Unauthorised recipients are 
required to maintain confidentiality. If you have received this e-mail in error 
please notify us immediately by telephone at +39 06 45475275







reply via email to

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