Ben Bobbitt wrote:
Just curious if I’ve missed something in the documentation, but my application only needs to use UDP, so what parameter do I pass to the netif_add() function for the input() callback when setting up the interface?
[snip]
Any advice would be appreciated. I am using the atmel avr32 and the IAR compiler. This is under FreeRTOS with the 1.2.0 version of lwIP.
For lwIP 1.2.0, you should use tcpip_input. That way it gets sent to lwip's tcpip handling thread, which means that the packet is passed in to the stack in the correct context.
Note that for ethernet interfaces, your driver will also have had to interface with the etharp code to pass packets in.
Jifl -- eCosCentric Limited http://www.eCosCentric.com/ The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. ------["The best things in life aren't things."]------ Opinions==mine _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
