[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Input function for RAW
From: |
address@hidden |
Subject: |
Re: [lwip-users] Input function for RAW |
Date: |
Sun, 03 May 2009 16:06:24 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
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