[Autosec-devel] sonar/src error.c,1.10,1.11 plugin.c,1.35,1.36 plugin.h,1.45,1.46 sonar.h,1.33,1.34
Brought to you by:
red0x
From: red0x <re...@us...> - 2004-04-24 06:51:36
|
Update of /cvsroot/autosec/sonar/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8564/src Modified Files: error.c plugin.c plugin.h sonar.h Log Message: Dethreaded the ACK scan (makes more sense that way). Also, updated some documentation. Index: plugin.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/plugin.c,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** plugin.c 13 Apr 2004 03:42:08 -0000 1.35 --- plugin.c 24 Apr 2004 06:51:28 -0000 1.36 *************** *** 18,22 **** /** @file plugin.c * File contains plugin API Implementation\n ! * Plugin API version 1.0 \n * To make a plugin, look in plugin.h for the plugin_t structure, * and make sure your plugins can provide all of the needed methods. --- 18,22 ---- /** @file plugin.c * File contains plugin API Implementation\n ! * Plugin API version 1.6 \n * To make a plugin, look in plugin.h for the plugin_t structure, * and make sure your plugins can provide all of the needed methods. *************** *** 60,63 **** --- 60,65 ---- /// list of input plugins plugin_list_t input_list[MAX_INP]; + // XXX: this ugly hack should be removed before 1.2.2 + /// buffer size corresponds to each input plugin uint32_t input_buf[MAX_INP]; /// list of output plugins Index: error.c =================================================================== RCS file: /cvsroot/autosec/sonar/src/error.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** error.c 13 Apr 2004 03:42:08 -0000 1.10 --- error.c 24 Apr 2004 06:51:28 -0000 1.11 *************** *** 52,58 **** /* @fn err_ret(const char *fmt, ...) ! * Nonfatal error related to a system call. ! * Print a message and return. ! * @param fmt printf style format */ void --- 52,58 ---- /* @fn err_ret(const char *fmt, ...) ! * Print a nonfatal error related to a system call. ! * This function prints a message to the console and returns. ! * @param fmt printf style format-string */ void *************** *** 72,76 **** * @param fmt printf style format */ - void err_sys(const char *fmt, ...) --- 72,75 ---- *************** *** 89,93 **** * @param fmt printf style format */ - void err_dump(const char *fmt, ...) --- 88,91 ---- Index: sonar.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/sonar.h,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** sonar.h 13 Apr 2004 03:42:08 -0000 1.33 --- sonar.h 24 Apr 2004 06:51:28 -0000 1.34 *************** *** 64,68 **** * Read INSTALL for generic instructions on compiling and installing. * This product is under the GNU GPL, which is available for reading ! * in COPYING. Contributors, feel free to send me patches. If you * include them in a release, you get your name and email (if you want) * in AUTHORS. \n\n --- 64,68 ---- * Read INSTALL for generic instructions on compiling and installing. * This product is under the GNU GPL, which is available for reading ! * in COPYING. Contributors, feel free to send me patches. If I * include them in a release, you get your name and email (if you want) * in AUTHORS. \n\n *************** *** 82,86 **** * * See the \link pluginapi Plugin API Manual \endlink. The plugin API is ! * currently version 5. * * --- 82,86 ---- * * See the \link pluginapi Plugin API Manual \endlink. The plugin API is ! * currently version 6. * * Index: plugin.h =================================================================== RCS file: /cvsroot/autosec/sonar/src/plugin.h,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** plugin.h 24 Apr 2004 04:16:13 -0000 1.45 --- plugin.h 24 Apr 2004 06:51:28 -0000 1.46 *************** *** 131,151 **** struct target_s { ! // / next target in list target_t *next; ! // / user specified entry char *entry; ! // / list of ports to scan int ports[MAX_PORTS]; ! // / address info, including family, protocol, and socket type struct addrinfo *addrinfo; ! // / netmask unsigned int netmask; ! // / extra hosts involved in this (ie, w/netmask) unsigned int extra_hosts; ! // / broadcast address unsigned short broadcast; ! // / number of ports in this host uint32_t num_ports; ! // / statistics stats_t stats; }; --- 131,151 ---- struct target_s { ! /// next target in list target_t *next; ! /// user specified entry char *entry; ! /// list of ports to scan int ports[MAX_PORTS]; ! /// address info, including family, protocol, and socket type struct addrinfo *addrinfo; ! /// netmask unsigned int netmask; ! /// extra hosts involved in this (ie, w/netmask) unsigned int extra_hosts; ! /// broadcast address unsigned short broadcast; ! /// number of ports in this host uint32_t num_ports; ! /// statistics stats_t stats; }; |