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.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to