--- pakemon.c.org 2001-01-07 14:38:36.000000000 +0900 +++ pakemon.c 2003-03-16 16:21:41.000000000 +0900 @@ -69,7 +69,7 @@ printf( "%s %s, packet (apparently) from %s to %s\n", ctime( &log_time ), nids_warnings[errnum], saddr, daddr); - + fflush(stdout); /* make beep sound */ putchar('\007'); } @@ -133,7 +133,7 @@ printf( "%s %s, packet (apparently) from %s to %s\n", ctime( &log_time ), nids_warnings[errnum], saddr, daddr); - + fflush(stdout); /* make beep sound */ putchar('\007'); } @@ -164,6 +164,7 @@ time( &log_time ); printf( "%s %s,from %s to %s\n", ctime( &log_time ), nids_warnings[errnum], saddr, daddr); + fflush(stdout); /* make beep sound */ putchar('\007'); } @@ -227,6 +228,7 @@ { time( &log_time ); printf( "%s %s\n", ctime( &log_time), buf ); + fflush(stdout); /* putchar('\007'); */ } @@ -256,6 +258,7 @@ { time( &log_time ); printf( "%s Unknown warning number ?\n", ctime( &log_time ) ); + fflush(stdout); /* putchar('\007'); */ } @@ -474,6 +477,7 @@ } /* else netmask is set */ printf("%s\n", header); + fflush(stdout); /*** print printable contents of the payload ***/ for ( ptr_i = ip_packet.payload; ptr_i < ip_packet.endof_payload; ptr_i++ ) @@ -488,6 +492,7 @@ } /* for */ printf("\n"); + fflush(stdout); return; @@ -607,7 +612,7 @@ ip_packet->dest_IP, ip_packet->dest_number, detect_sig->name ); - + fflush(stdout); /* make beep sound */ putchar('\007'); @@ -928,7 +933,7 @@ printf( "local_netaddr= %s\n", (char *)inet_ntoa( local_netaddr ) ); printf( "local_netmask= %s\n", (char *)inet_ntoa( local_netmask ) ); - + fflush(stdout); return ( 1 ); /* success */ } /* init_pcap */ @@ -982,7 +987,7 @@ { puts( "Dump Log Disabled. \n" ); } - + fflush(stdout); return ( 1 ); } /* init_log */ @@ -1140,6 +1145,7 @@ nids_run (); + fflush(stdout); return 0; }