[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #34475] raw_sendto() doesn't rewind headers in pbuf on
From: |
Mike Kleshov |
Subject: |
[lwip-devel] [bug #34475] raw_sendto() doesn't rewind headers in pbuf on return |
Date: |
Tue, 04 Oct 2011 14:38:18 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.187 Safari/535.1 |
URL:
<http://savannah.nongnu.org/bugs/?34475>
Summary: raw_sendto() doesn't rewind headers in pbuf on
return
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: kleshov
Submitted on: Втр 04 Окт 2011 18:38:17
Category: IPv4
Severity: 2 - Minor
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: 1.4.0
_______________________________________________________
Details:
I am using raw_sendto() to ping a remote host. The code is based on the ping
application from contrib. When I try to send the same pbuf a second time
(retry a ping), wrong data is sent. This happens because the first call to
raw_sendto() calls pbuf_header() on the pbuf and never adjust the payload
pointer back. I think this is wrong behaviour.
As a workaround, I am allocating the pbuf with the PBUF_RAW option, so
raw_sendto() allocates a new pbuf for the header.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?34475>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #34475] raw_sendto() doesn't rewind headers in pbuf on return,
Mike Kleshov <=