stevens wrote: > For example,I want to write code to implement packet interception,but I don't > know how to write. >
PFHooks, as a framework, already provides the ability to do packet interception. What you may want to do is writing a module for PFHooks, which gives you access to packets and then you can do your processing. To do that you can use Solaris IPFilter code as an example. You can browse Open Solaris code at the link below, and search for your interested symbols http://src.opensolaris.org/source/ e.g. If you want to figure out how net_register_hook() should be used, the link below can give you some feelings http://src.opensolaris.org/source/search?q=net_register_hook&defs=&refs=&path=&hist=&project=%2Fonnv Cheers, Zhijun -- #mdb -K [0]> eri.prc.sun.com::walk staff s|::print staff_t s_name| ::grep .== zhijun |::eval <s=K|::print staff_t [EMAIL PROTECTED], x84349 Network Virtualization & Performance Team, Solaris Core Operating Systems Since Jul 10,2006 [0]> :c _______________________________________________ networking-discuss mailing list [email protected]
