[ntp:bk-ntp-dev-send] BitKeeper diffs

Harlan Stenn stenn at whimsy.udel.edu
Tue Oct 30 07:28:59 UTC 2007


#### ChangeSet ####
2007-10-30 02:27:06-05:00, stenn at whimsy.udel.edu 
  ntpsim.c: add missing protypes and fix [CID 34], a nit

==== ChangeLog ====
2007-10-30 02:26:53-05:00, stenn at whimsy.udel.edu +1 -0
  ntpsim.c: add missing protypes and fix [CID 34], a nit

--- 1.139/ChangeLog	2007-10-30 01:09:03 -05:00
+++ 1.140/ChangeLog	2007-10-30 02:26:53 -05:00
@@ -1,3 +1,4 @@
+* ntpsim.c: add missing protypes and fix [CID 34], a nit.
 * Upgraded bison at UDel.
 * Update br-flock and flock-build machine lists.
 * [Bug 752] QoS: add parse/config handling code. 

==== ntpd/ntpsim.c ====
2007-10-30 02:26:54-05:00, stenn at whimsy.udel.edu +7 -0
  ntpsim.c: add missing protypes and fix [CID 34], a nit

--- 1.18/ntpd/ntpsim.c	2007-08-17 01:37:19 -04:00
+++ 1.19/ntpd/ntpsim.c	2007-10-30 02:26:54 -05:00
@@ -31,6 +31,8 @@ void (*event_ptr[]) (Event *) = {
 /* Define a function to compare two events to determine which one occurs first
  */
 
+int determine_event_ordering(Event *e1, Event *e2);
+
 int determine_event_ordering(Event *e1, Event *e2)
 {
     return (e1->time - e2->time);
@@ -39,6 +41,8 @@ int determine_event_ordering(Event *e1, 
 /* Define a function to compare two received packets to determine which one
  * is received first
  */
+int determine_recv_buf_ordering(struct recvbuf *b1, struct recvbuf *b2);
+
 int determine_recv_buf_ordering(struct recvbuf *b1, struct recvbuf *b2)
 {
     double recv_time1, recv_time2;
@@ -73,6 +77,8 @@ void create_server_associations()
 
 
 /* Main Simulator Code */
+int ntpsim(int argc, char *argv[]);
+
 int ntpsim(int argc, char *argv[])
 {
     Event *curr_event;
@@ -286,6 +292,7 @@ int simulate_server(
     rbuf.receiver = receive;   /* Function to call to process the packet */
     rbuf.recv_length = LEN_PKT_NOMAC;
     rbuf.recv_pkt = xpkt;
+    rbuf.used = 1;
     
     memcpy(&rbuf.srcadr, serv_addr, sizeof(struct sockaddr_storage));
     memcpy(&rbuf.recv_srcadr, serv_addr, sizeof(struct sockaddr_storage));


More information about the bk-ntp-dev-send mailing list