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 |