Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top