The retrieval of the cached DHCPACK and the creation of network devices are both currently scheduled as STARTUP_NORMAL. It is therefore possible that the cached DHCPACK will not be retrieved in time for cachedhcp_probe() to apply it to the relevant network device. Fix by retrieving the cached DHCPACK at initialisation time rather than at startup time. As an optimisation, an unclaimed cached DHCPACK can be freed immediately after the last network device has been created, rather than waiting until shutdown. Reported-by: Espen Braastad <espen.braastad@redpill-linpro.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
50 |
|
50 |
|
51 |
|
51 |
|
52 |
|
52 |
|
53 |
|
|
|
|
53 |
|
|
54 |
|
54 |
|
55 |
|
55 |
|
56 |
|
56 |
|
|
|
||
98 |
|
98 |
|
99 |
|
99 |
|
100 |
|
100 |
|
101 |
|
|
|
|
101 |
|
|
102 |
|
102 |
|
103 |
|
|
|
104 |
|
103 |
|
105 |
|
|
|
|
104 |
|
|
106 |
|
105 |
|
107 |
|
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
108 |
|
109 |
|
109 |
|
110 |
|
110 |
|
111 |
|
|
|
||
113 |
|
114 |
|
114 |
|
115 |
|
115 |
|
116 |
|
116 |
|
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
117 |
|
123 |
|
118 |
|
|
|
119 |
|
124 |
|
120 |
|
125 |
|
121 |
|
126 |
|