LwIP udp_input() problem?

Status
Not open for further replies.

muzzamil8

Newbie level 6
Joined
Sep 1, 2011
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,377
Hi,

I am have problem with receive callback function. I have debugged the lwip udp_input() function and it doesn't found any matching pcb and receive callback function is also not called. UDP_Init() is called from main().

UDP_Init()

{

void *pcb;
pcb = udp_new();

udp_recv(pcb, Recv_echo, NULL);

udp_bind(pcb, IP_ADDR_ANY, 23);

}

I send UDP packet from my PC to eval kit LM3s6965. It is received correctly till udp_input() but no matching pcb is found and pcb is assigned NULL value. Am I missing something?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…