Commit edf74df ("[pxe] Always reconstruct packet for PXENV_GET_CACHED_INFO") fixed the problems caused by returning stale DHCP packets (e.g. from an earlier boot attempt using a different network device), but broke interoperability with NBPs such as WDS which may overwrite our cached (fake) DHCP packets and expect the modified packets to be returned by a subsequent call to PXENV_GET_CACHED_INFO. Fix by constructing the fake DHCP packets immediately before transferring control to a PXE NBP. Calls to PXENV_GET_CACHED_INFO will now never modify the cached packets. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
78 |
|
78 |
|
79 |
|
79 |
|
80 |
|
80 |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
81 |
|
84 |
|
82 |
|
85 |
|
83 |
|
86 |
|
|
|
||
192 |
|
192 |
|
193 |
|
193 |
|
194 |
|
194 |
|
|
195 |
|
|
195 |
|
196 |
|
196 |
|
197 |
|
197 |
|
198 |
|
|
|
||
128 |
|
128 |
|
129 |
|
129 |
|
130 |
|
130 |
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
131 |
|
163 |
|
132 |
|
164 |
|
133 |
|
165 |
|
|
|
||
149 |
|
181 |
|
150 |
|
182 |
|
151 |
|
183 |
|
152 |
|
|
|
153 |
|
184 |
|
154 |
|
185 |
|
155 |
|
186 |
|
156 |
|
187 |
|
157 |
|
|
|
158 |
|
188 |
|
159 |
|
189 |
|
160 |
|
190 |
|
161 |
|
191 |
|
162 |
|
192 |
|
163 |
|
193 |
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
194 |
|
173 |
|
195 |
|
174 |
|
196 |
|
175 |
|
197 |
|
176 |
|
198 |
|
177 |
|
|
|
|
199 |
|
|
|
200 |
|
|
178 |
|
201 |
|
179 |
|
202 |
|
180 |
|
203 |
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
204 |
|
191 |
|
205 |
|
192 |
|
206 |
|
|
|
||
238 |
|
252 |
|
239 |
|
253 |
|
240 |
|
254 |
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
255 |
|
246 |
|
256 |
|
247 |
|
257 |
|