Skip to contentSkip to conversation

Question about ipip implementation

DISCUSSION Olaf Titz 1 participant 1 message May 16, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20010516102436.B1972@Hews1193nrc

Olaf Titz

author
#1 lore raw
Quoted 3 lines

Well, I understand that ipip_rcv does some work cleaning sk_buff. But why after that sk_buff cannot be submitted to ip_rcv, not netif_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