|
|
@ -46,8 +46,7 @@ uint8_t PKT_CONTENT[]={ |
|
|
|
/* Prototypes */ |
|
|
|
static ssize_t do_encode_packet( uint8_t * pktbuf, size_t bufsize, const n2n_community_t c ); |
|
|
|
|
|
|
|
int main( int argc, char * argv[] ) |
|
|
|
{ |
|
|
|
int main(int argc, char * argv[]) { |
|
|
|
uint8_t pktbuf[N2N_PKT_BUF_SIZE]; |
|
|
|
n2n_trans_op_t transop_null; |
|
|
|
|
|
|
@ -95,7 +94,11 @@ int main( int argc, char * argv[] ) |
|
|
|
|
|
|
|
tdiff = ((t2.tv_sec - t1.tv_sec) * 1000000) + (t2.tv_usec - t1.tv_usec); |
|
|
|
|
|
|
|
fprintf( stderr, "\nrun %u times. (%u -> %u nsec each) %u.%06u -> %u.%06u.\n", i, tdiff, (tdiff *1000)/i, (uint32_t)t1.tv_sec, (uint32_t)t1.tv_usec, (uint32_t)t2.tv_sec, (uint32_t)t2.tv_usec ); |
|
|
|
fprintf( stderr, "\nrun %u times. (%u -> %u nsec each) %u.%06u -> %u.%06u.\n", |
|
|
|
(unsigned int)i, (unsigned int)tdiff, |
|
|
|
(unsigned int)((tdiff *1000)/i), |
|
|
|
(uint32_t)t1.tv_sec, (uint32_t)t1.tv_usec, |
|
|
|
(uint32_t)t2.tv_sec, (uint32_t)t2.tv_usec ); |
|
|
|
|
|
|
|
return 0; |
|
|
|
} |
|
|
|