Skip to contentSkip to conversation

NF fields in sk_buff

DISCUSSION Emmanuel Guiton 2 participants 2 messages Jan 30, 2004 – Feb 4, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi!

I want to send a "built-by-hand" packet on the local hook. In the sk_buff structure, there is two fields, nfmark and nfcache, which I don't really understand. Can someone give me a quick briefing on these two fields? Quick search with google made me feel that I don't need them anyway and that I can leave them blank. Right?

Bye,
Emmanuel

#1 lore raw

Hi emmanuel,

Quoted 4 lines · Emmanuel Guiton

Hi!

I want to send a "built-by-hand" packet on the local hook. In the sk_buff structure, there is two fields, nfmark and nfcache, which I don't really understand. Can someone give me a quick briefing on these two fields? Quick search with google made me feel that I don't need them anyway and that I can leave them blank. Right?

I know something about nfcache, I think that it's a Rusty's idea to improve the performance and avoid that a packet hits all the hooks but it wasn't implemented. See netfilter hacking how-to. section 4.5.

I think that you are right, you could leave them blank.

Pablo