home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / E-zine / Magazines / crh / freebsd / rootkit / sniffit.0.3.5 / sn_plugins.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-05-27  |  1.1 KB  |  24 lines

  1. /* Sniffit Pluginfile include file - Brecht Claerhout */
  2.  
  3. /* You should install the plugins, by adding three lines.               */
  4. /* You should define a Plugin name, an alias for the plugin function,   */
  5. /* and include the source code of it.                                   */
  6. /* Example:                                                             */
  7. /* #define PLUGIN0_NAME "Dummy Plugin"                                  */
  8. /* #define PLUGIN0(x)   PL_real_function_name(x)                        */
  9. /* #include "plugin_include_filename.h"                                 */
  10. /* PLUGIN0_NAME and PLUGIN0 are fixed names, numbers can go from 0 to 9 */ 
  11.  
  12. /* These to plugins come standard with the Sniffit package as examples. */
  13. /* the "Dummy Plugin" is quite useless, but the "DNS Plugin" is going   */
  14. /* to be appreciated by some of you. Read the PLUGIN-HOWTO file.        */ 
  15.  
  16. #define PLUGIN0_NAME     "Dummy Plugin"
  17. #define PLUGIN0(x)    PL_dummy_plugin(x)
  18. #include "dummy_plugin.plug"
  19.  
  20. #define PLUGIN1_NAME     "DNS Plugin"
  21. #define PLUGIN1(x)    PL_DNS_plugin(x)
  22. #include "dns_plugin.plug"
  23.  
  24.