HM2 wrote:
I'm a little confused as to what the actual input function needs to be for
RAW in 1.3.
The possible choices seem to be:
- ip_input()
Input function for packets starting with IP header
- ethernetif_input()
Private input helper function for the example ethernetif (you couldn't
even use that since it a) does not compile and b) it is declared static!)
- raw_input()
Input function for packets starting *after* IP header (raw!)
- ethernet_input()
Input function for packets starting with ethernet header.
The only new function to 1.3.0 is ethernet_input, which implements the
ethernet-protocol handling (plus ARP) in the tcpip_thread (which was
previously done elsewhere).
The correct function to use depends on your interface: if you are using
ethernet, pass the complete received packet to ethernet_input, if you
use PPP, pass the packet starting with the IP header to ip_input.
There are some example ports in the contrib module that also show this...
Simon
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users