From: Harlan Stenn Date: Mon, 16 Sep 2013 08:24:16 +0000 (-0700) Subject: [Bug 1642] ntpdsim can't find simnulate block in config file X-Git-Tag: NTP_4_2_7P387~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b34314984e7b373d8c6f6b6206656fd4e1d330;p=thirdparty%2Fntp.git [Bug 1642] ntpdsim can't find simnulate block in config file bk: 5236c030mulP4WojOg4jmYdt0uSSXA --- diff --git a/ChangeLog b/ChangeLog index 5351e4eb3..40f31a9eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1642] ntpdsim can't find simnulate block in config file. (4.2.7p386) 2013/09/01 Released by Harlan Stenn * [Bug 2472] (WinXP) Avoid self-termination of IO thread during exit(). (4.2.7p385) 2013/08/19 Released by Harlan Stenn diff --git a/html/ntpdsim_new.html b/html/ntpdsim_new.html index fe907c574..1dceaa02e 100644 --- a/html/ntpdsim_new.html +++ b/html/ntpdsim_new.html @@ -37,15 +37,15 @@

Configuration

The ntpdsim program is configured by providing a configuration file at startup. The crux of the simulator configuration is specified using a simulate command, the syntax of which is given below. Note that all time quantities are in seconds and all frequency quantities are in parts per million (PPM):

<simulate_command> ::= simulate { <init_statement_list> <server_list> }
- <init_statement_list> ::= <init_statement_list> <init_statement> | <init_statement>
+ <init_statement_list> ::= <init_statement_list> <init_statement> ; | <init_statement> ;
<init_statement> ::= beep_delay = <number> | simulation_duration = <number>
<server_list> ::= <server_list> <server> | <server>
- <server_list> ::= server = <address> { server_offset = <number> <act_list> }
+ <server_list> ::= server = <address> { server_offset = <number> ; <act_list> }
<act_list> ::= <act_list> <act> | <act>
<act> ::= duration = <number> { <act_stmt_list> }
- <act_stmt_list> ::= <act_stmt_list> <act_stmt> | <act_stmt>
+ <act_stmt_list> ::= <act_stmt_list> <act_stmt> ; | <act_stmt> ;
<act_stmt> ::= freq_offset = <number> | wander = <number> | jitter = <number> | prop_delay = <number> | proc_delay = <number>

-

In addition to the simulate command, other standard NTP configuration commands can be specified. These commands have the same meaning as in the ntpd configuration. Note that newlines are not significant within the simulate command even though they are used to mark the end of a normal NTP configuration command.

+

In addition to the simulate command, other standard NTP configuration commands can be specified. These commands have the same meaning as in the ntpd configuration. Note that newlines are not significant within the simulate command even though they are used to mark the end of a normal NTP configuration command. While a newline is an "end of command" terminator for other configuration commands, in the simulate stanza ; (the semicolon) is the "end of command" terminator.

Sample Configuration File

A sample ntpdsim configuration file is given below. It specifies two simulated servers, each of which has two acts.

@@ -59,44 +59,44 @@
 
     # Simulation configuration
     simulate {
-        simulation_duration = 86400
-        beep_delay = 3600
+        simulation_duration = 86400;
+        beep_delay = 3600;
 
         # Server 1
 	server = louie.udel.edu {
-	    server_offset = 0 
+	    server_offset = 0;
             duration = 50000 {
-		freq_offset = 400
-		wander = 1.0
-		jitter = 0.001
-		prop_delay = 0.001
-		proc_delay = 0.001
+		freq_offset = 400;
+		wander = 1.0;
+		jitter = 0.001;
+		prop_delay = 0.001;
+		proc_delay = 0.001;
 	    }
             duration = 6400 {
-		freq_offset = 200
-		wander = 1.0
-		jitter = 0.001
-		prop_delay = 0.001
-		proc_delay = 0.001
+		freq_offset = 200;
+		wander = 1.0;
+		jitter = 0.001;
+		prop_delay = 0.001;
+		proc_delay = 0.001;
 	    }
 	}
 
         # Server 2
 	server = baldwin.udel.edu {
-	    server_offset = 0.02
+	    server_offset = 0.02;
 	    duration = 10000 {
-		freq_offset = 400
-		wander = 1.0
-		jitter = 0.001
-		prop_delay = 0.5
-		proc_delay = 0.001
+		freq_offset = 400;
+		wander = 1.0;
+		jitter = 0.001;
+		prop_delay = 0.5;
+		proc_delay = 0.001;
 	    }
 	    duration = 60000 {
-		freq_offset = 200
-		wander = 1.0
-		jitter = 0.05
-		prop_delay = 0.005
-		proc_delay = 0.001
+		freq_offset = 200;
+		wander = 1.0;
+		jitter = 0.05;
+		prop_delay = 0.005;
+		proc_delay = 0.001;
 	    }
 	}
  }