"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "utils/etterlog/el_log.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

el_log.c  (ettercap-0.8.3):el_log.c  (ettercap-0.8.3.1)
skipping to change at line 394 skipping to change at line 394
* dump the file into the fd * dump the file into the fd
*/ */
static void dump_file(gzFile fd, struct log_global_header *hdr) static void dump_file(gzFile fd, struct log_global_header *hdr)
{ {
struct log_header_packet pck; struct log_header_packet pck;
struct log_header_info inf; struct log_header_info inf;
struct dissector_info infbuf; struct dissector_info infbuf;
u_char *pckbuf; u_char *pckbuf;
int count = 0; int count = 0;
memset(&pck,0,sizeof(struct log_header_packet));
memset(&inf,0,sizeof(struct log_header_info));
memset(&infbuf,0,sizeof(struct dissector_info));
/* loop until EOF */ /* loop until EOF */
LOOP { LOOP {
switch (hdr->type) { switch (hdr->type) {
case LOG_INFO: case LOG_INFO:
if (get_info(&inf, &infbuf) != E_SUCCESS) { if (get_info(&inf, &infbuf) != E_SUCCESS) {
USER_MSG("\n"); USER_MSG("\n");
return; return;
} }
/* write the info */ /* write the info */
put_info(fd, &inf, &infbuf); put_info(fd, &inf, &infbuf);
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)