hi
this is one way to implement
i dont know about the netfilter but here is what i
think can be done coz this is what we did in our BE
project
what we did was instead of writing a device driver or
something of that sort we replaced the function
pointers of default functions ( many TCP / IP
specific functions like tcp_accept , tcp_connect )with
the function pointers to our functions and built a
module and when inserted it'd work by calling our
funcs instead of TCP's default ( more like TSR in
windows ) and when the module was removed while
leaving it'd again restore the function pointers.
with these there are 2 dinctinct advantages
1 u don't have to compile kernel everytime you do
something even very small
2 suppose the function that you've wrote does not work
then within the function itself go an call the
default function do this for all functions you feel
are not working right and do trials then you'd know
which one is not working as you'd wished
i still haven't got the hang of what exactly you
want to do but here is something you can
TCP's default function which gets the socket out of
the queue is ( get_sock... something ) so in here you
can do some alterations and write code to check
whatever you want to check or validate etc don't write
the whole func just copy paste it in your file ( of
which you'll build a module later ) and above or below
or inbetween the main default code within the func
type in your code to validate or call the functions
which do this
remember to replace the function ptr of default func
to yours and to restore them while you are leaving if
you're doin this for BE project i think its the way to
go coz other approaches might take up a lot of time
also you can show the performance with and without
module
hope it helps
-nikhil
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List: ([email protected])
List Information: http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.