> Either use netif_rx()/ for complete packets that should go through the
> whole stack again or nf_reinject() from your hook.
Is it really possible to call netif_rx from netfilter hook? I try to
call netif_rx(skb) from PRE_ROUTING hook (returning NF_STOLEN)
and kernel immediately crashes, even if
> I'm writing a module that is able to modify outgoing packets.
> This is done by registering a new entry in ptype_all.
> But my problem is that in dev_queue_xmit_nit the sk_buff is
> cloned and that my function get this clone. So my modification
> on skb->data isn't take into account by the ether
Hello.
Kernel 2.4.5.
$ sudo mount -o iocharset=garbage /dev/cdrom /cdrom
VFS: brelse: Trying to free free buffer
--
Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/maj
Hello.
I have a couple of questions about 2.4.5 IP layer and will be very grateful if
someone will answer :)
In net/ipv4/ip_output.c there is the function ip_build_and_send_pkt().
This function adds an IP header to given skbuff and sends it out.
But it seems that the only place where this funct
> If I understand correctly it means that if we have two different protocols
> with the same (modulo MAX_INET_PROTOS) protocol number then
> ip_local_deliver will return the return value of ipprot->handler for the
> first protocol in the chain
> inet_protos[protocol number modulo MAX_INET_PROTOS]
Hello.
I have a question (maybe stupid but I spent a lot of time trying to find an
answer)about ip_local_deliver_finish() in 2.4.4. kernel.
I'll be very grateful if someone explains me what's happening.
There is the following piece of code in ip_local_deliver_finish()
(in net/ipv4/ip_input.c):
> > I read net/ipv4/ipip.c. It seems to me that ipip_rcv() function after
> > "unwrapping" tunelled IP packet creates "virtual Ethernet header" and submit
>
> Does it? ipip_rcv() does this:
[SKIP]
> netif_rx(skb);
>
> The packet as submitted starts with the IP header and the skb
Hello!
I read net/ipv4/ipip.c. It seems to me that ipip_rcv() function after
"unwrapping" tunelled IP packet creates "virtual Ethernet header" and submit
corresponding sk_buff to netif_rx().
Is there a some reason to do things this way instead of calling ip_rcv() for
"unwrapped" IP packet?
--
8 matches
Mail list logo