Hi, I am new to kernel programming. My task is to route packets from different hosts through one single token bucket filter as we are trying to model a wireless scenario with many hosts communicating and sharing the same bandwidth.So the idea we came up with was to route packets from different hosts to user space using Netfilter and then send them through a common tbf implemented in user space in order to model a simple bandwidth shaping scenario. Routing packets to user space has been easy using the Netfitler hooks and libipq. My problem now is that i need to implement a tbf in user space.I was thinking if its possible to modify the sch_tbf.c code to make it work in user space so that i can compile it as part of my user space program that handles the packets sent to user space thro netfilter.Ive tried modifying this code a bit but it gives me a huge number of errors when i try to compile it as a simple C program in user space. If this is not possible does any one have a simple basic implementation of the token bucket filter that i can use in my program to test this scenario or any other ideas on how to implement this tbf in user space. Thanx a million in advance.......and im sorry i didnt know exactly where to post the query so thats why i posted to both lists. thanx and kind regards vinay __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/