[Autosec-devel] sonar/plugins rfc793.c,1.42,1.43
Brought to you by:
red0x
From: Jacob F. <ph...@us...> - 2004-04-08 08:42:55
|
Update of /cvsroot/autosec/sonar/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19487 Modified Files: rfc793.c Log Message: Fixed parameters up a bit and style nazi Index: rfc793.c =================================================================== RCS file: /cvsroot/autosec/sonar/plugins/rfc793.c,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** rfc793.c 2 Apr 2004 08:46:50 -0000 1.42 --- rfc793.c 8 Apr 2004 08:29:41 -0000 1.43 *************** *** 75,118 **** void *plugin_init(void *in_data) { ! assert(in_data != NULL); ! /* useless reference, to avoid a warning */ ! if(rcsid); ! /* this is assumed */ ! mthis = (sonar_t *) in_data; ! if(mthis->api < 5) [...1907 lines suppressed...] ! case ICMP_UNREACH_HOST_PRECEDENCE: ! return "host precedence violation"; ! case ICMP_UNREACH_PRECEDENCE_CUTOFF: ! return "precedence cutoff"; ! } ! return "unknown"; } static RETSIGTYPE sig_handler(int i) { ! switch(i) ! { ! case SIGSEGV: ! err_msg("oops! ACK scan seg faulted.\n"); ! abort(); ! break; } /* just close the thread and be done with it */ ! pthread_exit(NULL); } |