Commit 820f4af0 authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Log pd data for retransmitted packets


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@305 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 89f7a2e1
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp.c,v 1.43 2007-09-13 10:04:45 mtheo Exp $
* $Id: nmxp.c,v 1.44 2007-09-17 12:57:11 mtheo Exp $
*
*/
......@@ -547,6 +547,10 @@ int nmxp_raw_stream_manage(NMXP_RAW_STREAM_DATA *p, NMXP_DATA_PROCESS *a_pd, int
char str_time[200];
NMXP_DATA_PROCESS *pd = NULL;
if(pd->packet_type == 33) {
nmxp_data_log(pd);
}
/* Allocate memory for pd and copy a_pd */
pd = (NMXP_DATA_PROCESS *) malloc (sizeof(NMXP_DATA_PROCESS));
memcpy(pd, a_pd, sizeof(NMXP_DATA_PROCESS));
......
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxptool.c,v 1.59 2007-09-17 05:21:53 mtheo Exp $
* $Id: nmxptool.c,v 1.60 2007-09-17 12:57:11 mtheo Exp $
*
*/
......@@ -48,7 +48,6 @@ static void clientDummyHandler(int sig);
int nmxptool_write_miniseed(NMXP_DATA_PROCESS *pd);
int nmxptool_send_raw_depoch(NMXP_DATA_PROCESS *pd);
int nmxptool_print_seq_no(NMXP_DATA_PROCESS *pd);
int nmxptool_print_retransmitted_packet(NMXP_DATA_PROCESS *pd);
int nmxptool_check_and_log_gap(double time1, double time2, const double gap_tollerance, const char *station, const char *channel);
......@@ -438,8 +437,6 @@ int main (int argc, char **argv) {
if(params.flag_logdata) {
p_func_pd[n_func_pd++] = nmxptool_print_seq_no;
} else {
p_func_pd[n_func_pd++] = nmxptool_print_retransmitted_packet;
}
#ifdef HAVE_LIBMSEED
......@@ -719,12 +716,6 @@ int nmxptool_print_seq_no(NMXP_DATA_PROCESS *pd) {
return ret;
}
int nmxptool_print_retransmitted_packet(NMXP_DATA_PROCESS *pd) {
if(pd->packet_type == 33) {
nmxp_data_log(pd);
}
return 0;
}
int nmxptool_send_raw_depoch(NMXP_DATA_PROCESS *pd) {
/* TODO Set values */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment