1 -- Wed Nov 4 11:16:23 EST 2009 Matt Dormer mdormat@users.sourceforge.net 2 3 * Updated the Makefile to include make option -Wall for better debuging. 4 5 * ip_table.h Created definitions for ip_table_count_in_mag, cpia and ip_table_fetch_next. 6 7 * Cleaned up calls in traff.c for ip_table_fetch_next and ip_table_destroy_table. 8 9 * Removed or commented out unused variables in all files. 10 11 * Added 'return 0;' to the end of the config_read_config_file function. 12 13 * Added includes stdlib.h and errno.h to readconfig.h to remove compilation error with 14 external referances. 15 16 * Corrected pthread_t definition and corrected pthread calls in traff.c -- Bug 585102 Seg Fault 17 18 * Updated the calls for mysql from mysql_connect to mysql_real_connect 19 20 * changed multiple instiances of %d to %ld when using timetags in snprintf and syslog calls 21 22 -- Mon Jan 28 21:29:00 CET 2002 Hans M Kr�ger hanskruger@iname.com 23 24 * Very big changes in this one. First of all, module Data and all external dump-programms 25 are history. All necessary datafunctions where copy-n-pasted to traff.c. The different 26 dump-procedures where intergrated into traff.c as well. Now there is a dump-function (data_mysql_dump, 27 data_stdout_dump etc.) for each functionality. 28 Therefore some changes in the configuration-file where necesary. Option sql does not exists any more. 29 Instead od 30 dump <filename> 31 you now have to write 32 dump [ stdout | syslog | textfile <filename> | binfile <filename> | [ { mysql | pgsql } \ 33 host database table user password ] 34 35 * Also in traff.c, I implemented a whoile new structure. Now we have a central queue. This queue is 36 filled by small functions that a executed by pthread_create and only catches the packet from 37 the network. This queue is protected by 2 semaphores and 1 mutex. The mutex protects the queue so 38 only one can write or read at a time. The 2 semaphores are used to advoid busy-waiting. 39 40 * I dropped the timer-function, for now. Again, time(0) is executed after aech processed package. 41 42 * ip_table.c: I created a structure t_table that ca hold more than just the pointer to the table. Now 43 there is a int next as well. therefore it is no longer necessary to supply the last IP to 44 ip_table_get_netxt() function. Also this in function and in ip_table_destroy_table I changed the 45 recursion to 4 nested for-loops. This took me some problems I had with starting at the point I 46 last stopped. Also, this code is easier to understand. 47 48 * The length of a packet is now calculated using pcap's pcap_pkthdr->len (length off-wire). 49 50 -- Wed Jan 2 00:19:05 CET 2002 Klaus Deissner kdeissner@users.sourceforge.net 51 52 * traff.c (start_accounting): moved nice(-5) out of while loop. :) 53 54 * traff.c (push_queue): Corrected semaphore handling for the case that a packet is not pushed. 55 (pop_queue): Accounting is stopped for the case, that sem_wait is passed without a packet in the queue for popping. 56 57 -- Mon Dec 31 01:15:30 CET 2001 Klaus Deissner kdeissner@users.sourceforge.net 58 59 * Introduced new threading scheme. 60 61 * Changed from multiple functions *_cipa to one cipa in data.c. 62 63 -- Fri Sep 14 18:56:26 BRT 2001 Hans Marcus Kruger hanskruger@iname.com 64 65Traff 0.5 66 67 * Added alpha version of postgreSQL dumping module 68 69 * Traff now forks for each device once. 70 71 * Data is first stored into a buffer. Periodically this 72 buffer is transcripted to the table and again periodically 73 dumped to the database. 74 75 * First trys to pass PPID to mysql_traff_dump, so when a error occours, 76 mysql_traff_dump can kill its parrent. 77