[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Using PBUF_REF instead of PBUF_POOL, Udp_sent
From: |
Ishmeet |
Subject: |
[lwip-users] Using PBUF_REF instead of PBUF_POOL, Udp_sent |
Date: |
Wed, 27 Nov 2013 04:12:02 -0800 (PST) |
I am using udp_bind, and udp_connect, after this I use p =
pbuf_alloc(PBUF_TRANSPORT, 1460, PBUF_REF);
p->len = p->tot_len = 1460
p->payload = str; // str[1460] = "Some String to send!";
udp_send(pcb, p); // I send for some time inside loop
then do pbuf_free(p);
udp_remove(pcb);
What I see on sniffer are like blank udp packets, It's length is coming
right but there is no data in it. Has anyone faced this problem before?
P.S. When I use PBUF_POOL and pbuf_take, then It works fine.
--
View this message in context:
http://lwip.100.n7.nabble.com/Using-PBUF-REF-instead-of-PBUF-POOL-Udp-sent-tp22075.html
Sent from the lwip-users mailing list archive at Nabble.com.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Using PBUF_REF instead of PBUF_POOL, Udp_sent,
Ishmeet <=