muzzamil8
Newbie level 6
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?
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?