Browse Source

Merge branch 'master' of git://git.etherboot.org/scm/gpxe

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
c340fe858e
5 changed files with 16 additions and 3 deletions
  1. 1
    0
      src/include/gpxe/retry.h
  2. 12
    0
      src/net/retry.c
  3. 1
    1
      src/net/tcp.c
  4. 1
    1
      src/net/udp/dhcp.c
  5. 1
    1
      src/net/udp/tftp.c

+ 1
- 0
src/include/gpxe/retry.h View File

35
 };
35
 };
36
 
36
 
37
 extern void start_timer ( struct retry_timer *timer );
37
 extern void start_timer ( struct retry_timer *timer );
38
+extern void start_timer_nodelay ( struct retry_timer *timer );
38
 extern void stop_timer ( struct retry_timer *timer );
39
 extern void stop_timer ( struct retry_timer *timer );
39
 
40
 
40
 /**
41
 /**

+ 12
- 0
src/net/retry.c View File

73
 	       timer, timer->start, ( timer->start + timer->timeout ) );
73
 	       timer, timer->start, ( timer->start + timer->timeout ) );
74
 }
74
 }
75
 
75
 
76
+/**
77
+ * Start timer with no delay
78
+ *
79
+ * @v timer		Retry timer
80
+ *
81
+ * This starts the timer running with a zero timeout value.
82
+ */
83
+void start_timer_nodelay ( struct retry_timer *timer ) {
84
+	start_timer ( timer );
85
+	timer->timeout = 0;
86
+}
87
+
76
 /**
88
 /**
77
  * Stop timer
89
  * Stop timer
78
  *
90
  *

+ 1
- 1
src/net/tcp.c View File

232
 		goto err;
232
 		goto err;
233
 
233
 
234
 	/* Start timer to initiate SYN */
234
 	/* Start timer to initiate SYN */
235
-	start_timer ( &tcp->timer );
235
+	start_timer_nodelay ( &tcp->timer );
236
 
236
 
237
 	/* Attach parent interface, transfer reference to connection
237
 	/* Attach parent interface, transfer reference to connection
238
 	 * list and return
238
 	 * list and return

+ 1
- 1
src/net/udp/dhcp.c View File

912
 		goto err;
912
 		goto err;
913
 
913
 
914
 	/* Start timer to initiate initial DHCPREQUEST */
914
 	/* Start timer to initiate initial DHCPREQUEST */
915
-	start_timer ( &dhcp->timer );
915
+	start_timer_nodelay ( &dhcp->timer );
916
 
916
 
917
 	/* Attach parent interface, mortalise self, and return */
917
 	/* Attach parent interface, mortalise self, and return */
918
 	job_plug_plug ( &dhcp->job, job );
918
 	job_plug_plug ( &dhcp->job, job );

+ 1
- 1
src/net/udp/tftp.c View File

657
 		goto err;
657
 		goto err;
658
 
658
 
659
 	/* Start timer to initiate RRQ */
659
 	/* Start timer to initiate RRQ */
660
-	start_timer ( &tftp->timer );
660
+	start_timer_nodelay ( &tftp->timer );
661
 
661
 
662
 	/* Attach to parent interface, mortalise self, and return */
662
 	/* Attach to parent interface, mortalise self, and return */
663
 	xfer_plug_plug ( &tftp->xfer, xfer );
663
 	xfer_plug_plug ( &tftp->xfer, xfer );

Loading…
Cancel
Save