how to use sk_buff in netfilter
Hi,all
i want to make some change on ip packet in NF_IP_PRE_ROUTING
hook. but i don't know what is the exactly means of each piece in struct sk_buff.
i know how to generate a packet, but how to generate a correctsk_buff of the packet is a difficult for me, and how to put the sk_buff to the system is a problem too.
How? or where to get more details of that? is there a example
program to learn?
so great appreciation to you all.
-----------------------------------------------------
Name: jinyi wang Phone: (86-10) 5881-2325 Division: R&D,Computer Network Information Center,
Chinese Academy of Sciences
Address: 4,4th South Street, Zhongguancun,
Haidian District, Beijing, China
Zip code: 100080
Email: [email protected]
Hi,
Quoted 3 lines · jywang
i want to make some change on ip packet in
NF_IP_PRE_ROUTING
hook. but i don't know what is the exactly means of each piece in structsk_buff.
http://vger.kernel.org/~davem/skb.html is a pretty good description of
the skbs.
Signature · 2 lines
Regards, Krisztian Kovacs
this so good a tutorial of sk_buff.
and, what is about the struct sock and other core structures?
is there something like the skb.html?
----- Original Message -----
From: "KOVACS Krisztian" <[email protected]>
To: <[email protected]>
Sent: Thursday, October 27, 2005 4:55 PM
Subject: Re: how to use sk_buff in netfilter
Quoted 16 lines
Hi,
Quoted 3 lines · jywang
i want to make some change on ip packet in
NF_IP_PRE_ROUTING
hook. but i don't know what is the exactly means of each piece in structsk_buff.http://vger.kernel.org/~davem/skb.html is a pretty good description of
the skbs.Signature · 2 lines
Regards, Krisztian Kovacs
Quoted 3 lines · jywang
this so good a tutorial of
sk_buff.and, what is about the struct sock and other core structures?
most are not allowed to be used from netfilter hooks...
but many are documented in the kernel docbook documentation received with the kernel sources ("make doc" in the kernel tree to build them..)
Regards
Henrik
when i perform the command 'make htmldocs', a error occur as below:
Error(fs/dcache.c:687): cannot understand prototype: 'DENTRY_UNUSED_THRESHOLD 30000 '
how to fix it.
----- Original Message -----
From: "Henrik Nordstrom" <[email protected]>
To: "jywang" <[email protected]>
Cc: "KOVACS Krisztian" <[email protected]>; <[email protected]>
Sent: Monday, October 31, 2005 3:00 PM
Subject: Re: how to use sk_buff in netfilter
Quoted 14 lines · jywang
Quoted 4 lines
this so good a tutorial of
sk_buff.and, what is about the struct sock and other core structures?
most are not allowed to be used from netfilter hooks...
but many are documented in the kernel docbook documentation received with the kernel sources ("make doc" in the kernel tree to build them..)
Regards
Henrik