Question about ipip implementation
A message that is not in the archive (sent off-list or not yet received): 20010516102436.B1972@Hews1193nrc
Quoted 3 lines
Well, I understand that
ipip_rcvdoes some work cleaningsk_buff. But why after thatsk_buffcannot be submitted toip_rcv, notnetif_rx?
Oops, now I see that you're talking about ip_rcv, not netif_rx...
I'm doing roughly what you're proposing in CIPE (get IP packet encapsulated in UDP packet via UDP receiver mechanism, strip UDP and optional SOCKS5 headers, submit to processing) but I'm using netif_rx simply because I copied code from the ipip driver ;-)
(and because this is the standard way a network driver is supposed to submit input).
I'm not exactly sure if it is supposed to be possible to deliver directly into ip_rcv. The code which gets invoked after queuing (net_rx_action() in net/core/dev.c) does something more than just dispatching into the receiver, like handling diversion and bridges, and manipulates fields of the skb itself.
Olaf