*** snort.c.dist Wed Dec 27 02:11:21 2000 --- snort.c Wed Dec 27 02:19:30 2000 *************** *** 405,410 **** --- 405,411 ---- "\n \"unsock\" enables UNIX socket logging (experimental)."); puts(" -a Display ARP packets"); puts(" -b Log packets in tcpdump format (much faster!)"); + puts(" -B Make stdout buffered"); puts(" -c Use Rules File "); puts(" -C Print out payloads with character data only (no hex)"); puts(" -d Dump the Application Layer"); *************** *** 479,485 **** pv.promisc_flag = 1; /* loop through each command line var and process it */ ! while ((ch = getopt(argc, argv, "Og:u:t:CqS:pNA:F:DM:br:xeh:l:dc:n:P:i:vV?aso6")) != -1) { #ifdef DEBUG printf("Processing cmd line switch: %c\n", ch); --- 480,486 ---- pv.promisc_flag = 1; /* loop through each command line var and process it */ ! while ((ch = getopt(argc, argv, "OBg:u:t:CqS:pNA:F:DM:br:xeh:l:dc:n:P:i:vV?aso6")) != -1) { #ifdef DEBUG printf("Processing cmd line switch: %c\n", ch); *************** *** 515,520 **** --- 516,525 ---- case 'C': pv.char_data_flag = 1; break; + + case 'B': + setvbuf(stdout, NULL, _IOLBF, 0); + break; case 'D': /* daemon mode */ #ifdef DEBUG