Rusty Guide, "Receiving command from userspace" "Packet handling in Userspace"
Hi all,
Sorry about my questions again, I am really new to netfilter programming and after reading materials of different palces, I got a fair bit ideas, I started my module complie and running and testing but still along way to go.
I was reading the section "Receiving command from userspace" "Packet handling in Userspace", I am quite sure the meaning of these two. Does it means I can write a C program run in shell can communicate with netfilter which is running in kernel space? I am particularly interested in Packet Handling in userspace. Is this funactionality useful? what is the purpose of doing this since we can write a module doing doign simliar things and load it into kernel.
Thanks for everything
Calvin
Quoted 8 lines · Calvin
Hi all,
Sorry about my questions again, I am really new to netfilter programming and after reading materials of different palces, I got a fair bit ideas, I started my module complie and running and testing but still along way to go.
I was reading the section "Receiving command from userspace" "Packet handling in Userspace", I am quite sure the meaning of these two. Does it means I can write a C program run in shell can communicate with netfilter which is running in kernel space?
yes. please read the libipq manpages
Quoted 3 lines
I am particularly interested in Packet Handling in userspace. Is this funactionality useful? what is the purpose of doing this since we can write a module doing doign simliar things and load it into kernel.
there are certain things you don't want (or cannot reasonably) do from
inside the kernel. doing asynchronous dns lookups, for example.
Also, you don't want to have huge error-prone code in your kernel, if it isn't really necessary.
Quoted 2 lines
Thanks for everything
Calvin
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie