comparison common-session.c @ 1021:24135c8e1d46

Add envirnonment variable for debug timestamps to roughly match network timestamps (in tshark)
author Matt Johnston <matt@ucc.asn.au>
date Fri, 13 Feb 2015 23:47:53 +0800
parents 363c0feca5d4
children 02baa0b334e8 d3925ed45a85
comparison
equal deleted inserted replaced
1020:363c0feca5d4 1021:24135c8e1d46
51 51
52 /* called only at the start of a session, set up initial state */ 52 /* called only at the start of a session, set up initial state */
53 void common_session_init(int sock_in, int sock_out) { 53 void common_session_init(int sock_in, int sock_out) {
54 time_t now; 54 time_t now;
55 55
56 #ifdef DEBUG_TRACE
57 debug_start_net();
58 #endif
59
56 TRACE(("enter session_init")) 60 TRACE(("enter session_init"))
57 61
58 ses.sock_in = sock_in; 62 ses.sock_in = sock_in;
59 ses.sock_out = sock_out; 63 ses.sock_out = sock_out;
60 ses.maxfd = MAX(sock_in, sock_out); 64 ses.maxfd = MAX(sock_in, sock_out);