NF fields in sk_buff
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
Hi emmanuel,
Quoted 4 lines · Emmanuel Guiton
Hi!
I want to send a "built-by-hand" packet on the local hook. In the
sk_buffstructure, 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