FreeBSD/contrib/ntp/ntpd/refclock_ripencc.c
/* 
 * Parse any packet using Trimble machinery
 */
Parse any packet using Trimble machinery
Parse any packet using Trimble machinery
int
parseany(
	 TSIPPKT *rpt,
	 struct peer *peer
	 )
{
   	static char logbuf[1024];	
   	TranslateTSIPReportToText (rpt, logbuf);	
#ifdef DEBUG_NCC
	if (debug) 
   		puts(&logbuf[1]);
#endif 
	record_clock_stats(&peer->srcadr, &logbuf[1]);
	return(0);
}
int parseany ( TSIPPKT * rpt , struct peer * peer ) { static char logbuf [ 1024 ] ; TranslateTSIPReportToText ( rpt , logbuf ) ; #ifdef DEBUG_NCC if ( debug ) puts ( & logbuf [ 1 ] ) ; #endif record_clock_stats ( & peer -> srcadr , & logbuf [ 1 ] ) ; return ( 0 ) ; }
Parse any packet using Trimble machinery
Parse any packet using Trimble machinery
/* logging string buffer */ /* anything else */ /* DEBUG_NCC */