Netfilter Module Help
Allen
aef@prismnet.com
Sun, 2 Sep 2001 00:23:39 +0000
Lloyd,
The "man libipq" example almost works, if you haven't seen
that yet. There is a sample program in "man libipq" help page.
http://www.prismnet.com/~aef
Hogwash for IPTables is there.
Inside hogwash_iptables.tar.gz is "hogwash.c"
Hogwash.c is actually very simple relative to Netlink, if you
go get that and look at it, and compare it to your own code,
you should get up and running quick. It really is simple if
you ignore all the extraneous code in there.
Search for ipq_set_verdict, see that loop.
I have bugged these guys here a bunch getting up and running right
so to return the favor I will help you get started.
Try that, and if you get stuck, send me what you have.
Also, check to make sure you got the source to, and BUILT
iptables-1.2.2. You need to do something like make install-devel.
Your build needs to linclude a library -lipq.
etc.,
I didn't start having success until I built kernel 2.4.7 - FYI
-AEF
On Saturday 01 September 2001 23:39, Lloyd Mitchell wrote:
> I am relatively new to kernel programming on linux, but would like to
> experiment with the netfilter.
>
> I have tried to get sample Netfilter module to compile but get all kinds of
> errors.
>
> I am using Mandrake 8.0 and KDevelop 1.4.
>
> I am looking for a sample that is simple yet will serve as a model to build
> on.
>
> Thanks
----------------------------------------
Content-Type: application/ms-tnef; charset="iso-8859-1"; name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Description:
----------------------------------------
--
==
Windows, it's not just for breakfast anymore...