[netperf-dev] netperf4 commit notice r128 - in branches/glib_migration/src: . NetTestBSDDir

raj at netperf.org raj at netperf.org
Wed Apr 5 09:56:08 PDT 2006


Author: raj
Date: 2006-04-05 09:56:06 -0700 (Wed, 05 Apr 2006)
New Revision: 128

Added:
   branches/glib_migration/src/NetTestBSDDir/nettest_bsd.def
Modified:
   branches/glib_migration/src/nettest_bsd.c
Log:
Life with DLLs is soooo much fun!  All these nifty little files one gets
to create and maintain.


Added: branches/glib_migration/src/NetTestBSDDir/nettest_bsd.def
===================================================================
--- branches/glib_migration/src/NetTestBSDDir/nettest_bsd.def	2006-04-05 01:07:38 UTC (rev 127)
+++ branches/glib_migration/src/NetTestBSDDir/nettest_bsd.def	2006-04-05 16:56:06 UTC (rev 128)
@@ -0,0 +1,22 @@
+LIBRARY nettest_bsd
+
+EXPORTS
+bsd_test_init
+bsd_test_decode_stats
+recv_tcp_stream_clear_stats
+recv_tcp_stream_get_stats
+recv_tcp_stream_decode_stats
+send_tcp_stream_clear_stats
+send_tcp_stream_get_stats
+send_tcp_stream_decode_stats
+recv_tcp_stream
+send_tcp_stream
+recv_tcp_rr_get_stats
+recv_tcp_rr_decode_stats
+send_tcp_rr_clear_stats
+send_tcp_rr_get_stats
+send_tcp_rr_decode_stats
+recv_tcp_rr
+send_tcp_rr
+bsd_test_results_init
+report_bsd_test_results

Modified: branches/glib_migration/src/nettest_bsd.c
===================================================================
--- branches/glib_migration/src/nettest_bsd.c	2006-04-05 01:07:38 UTC (rev 127)
+++ branches/glib_migration/src/nettest_bsd.c	2006-04-05 16:56:06 UTC (rev 128)
@@ -243,7 +243,7 @@
   }
 }
 
-void
+static void
 wait_to_die(test_t *test)
 {
   while (GET_TEST_STATE != TEST_DEAD) {
@@ -255,53 +255,6 @@
   }
 }
 
-#ifdef OFF
-/* the following lines are a template for any test
-   just copy the 37 lines for generic_test change
-   the procedure name and write you own TEST_SPECIFC_XXX
-   functions.  Have Fun   sgb 2005-10-26 */
-
-void
-generic_test(test_t *test)
-{
-  uint32_t state, new_state;
-  TEST_SPECIFIC_INITIALIZE(test);
-  state = GET_TEST_STATE;
-  while ((state != TEST_ERROR) &&
-         (state != TEST_DEAD )) {
-    switch(state) {
-    case TEST_PREINIT:
-      TEST_SPECIFIC_PREINIT(test);
-      new_state = TEST_INIT;
-      break;
-    case TEST_INIT:
-      new_state = CHECK_REQ_STATE;
-      if (new_state == TEST_IDLE) {
-        new_state = TEST_SPECIFIC_INIT(test);
-      }
-      break;
-    case TEST_IDLE:
-      new_state = CHECK_REQ_STATE;
-      if (new_state == TEST_IDLE) {
-        g_usleep(1000000);
-      }
-      break;
-    case TEST_MEASURE:
-      new_state = TEST_SPECIFIC_MEASURE(test);
-      break;
-    case TEST_LOADED:
-      new_state = TEST_SPECIFIC_LOAD(test);
-      break;
-    default:
-      break;
-    } /* end of switch */
-    set_test_state(test, new_state);
-    state = GET_TEST_STATE;
-  } /* end of while */
-  wait_to_die(test);
-}
- 
-#endif /* OFF end of generic_test example code  sgb  2005-10-26 */
 
 
 static void
@@ -479,7 +432,7 @@
 }
 
 
-unsigned int
+static unsigned int
 convert(string,units)
      unsigned char *string;
      unsigned char *units;



More information about the netperf-dev mailing list