Merge the functionality of parse_next_server_and_filename() and tftp_uri() into a single pxe_uri(), which takes a server address (IPv4/IPv6/none) and a filename, and produces a URI using the rule: - if the filename is a hierarchical absolute URI (i.e. includes a scheme such as "http://" or "tftp://") then use that URI and ignore the server address, - otherwise, if the server address is recognised (according to sa_family) then construct a TFTP URI based on the server address, port, and filename - otherwise fail. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
159 |
|
159 |
|
160 |
|
160 |
|
161 |
|
161 |
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
162 |
|
171 |
|
163 |
|
172 |
|
164 |
|
173 |
|
165 |
|
174 |
|
|
|
|
166 |
|
|
175 |
|
167 |
|
176 |
|
168 |
|
177 |
|
169 |
|
178 |
|
170 |
|
179 |
|
171 |
|
180 |
|
172 |
|
181 |
|
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
182 |
|
177 |
|
183 |
|
178 |
|
184 |
|
179 |
|
|
|
||
191 |
|
186 |
|
192 |
|
187 |
|
193 |
|
188 |
|
194 |
|
|
|
195 |
|
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
196 |
|
194 |
|
197 |
|
195 |
|
198 |
|
196 |
|
199 |
|
|
|
|
197 |
|
|
200 |
|
198 |
|
201 |
|
199 |
|
202 |
|
200 |
|
|
|
||
36 |
|
36 |
|
37 |
|
37 |
|
38 |
|
38 |
|
|
39 |
|
|
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
|
|
||
711 |
|
712 |
|
712 |
|
713 |
|
713 |
|
714 |
|
714 |
|
|
|
|
715 |
|
|
715 |
|
716 |
|
716 |
|
|
|
717 |
|
|
|
|
717 |
|
|
718 |
|
718 |
|
719 |
|
719 |
|
720 |
|
720 |
|
721 |
|
|
|
|
721 |
|
|
722 |
|
722 |
|
723 |
|
723 |
|
724 |
|
724 |
|
725 |
|
725 |
|
726 |
|
|
|
727 |
|
|
|
|
726 |
|
|
728 |
|
727 |
|
729 |
|
|
|
730 |
|
|
|
731 |
|
|
|
732 |
|
|
|
733 |
|
|
|
734 |
|
|
|
735 |
|
|
|
736 |
|
|
|
|
728 |
|
|
|
729 |
|
|
|
730 |
|
|
|
731 |
|
|
|
732 |
|
|
|
733 |
|
|
|
734 |
|
|
|
735 |
|
|
|
736 |
|
|
|
737 |
|
|
|
738 |
|
|
|
739 |
|
|
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
|
743 |
|
|
|
744 |
|
|
|
745 |
|
|
|
746 |
|
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
|
756 |
|
|
737 |
|
757 |
|
738 |
|
|
|
739 |
|
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
|
|
740 |
|
761 |
|
|
|
||
206 |
|
206 |
|
207 |
|
207 |
|
208 |
|
208 |
|
209 |
|
|
|
210 |
|
|
|
|
209 |
|
|
|
210 |
|
|
211 |
|
211 |
|
212 |
|
212 |
|
213 |
|
213 |
|
|
|
||
35 |
|
35 |
|
36 |
|
36 |
|
37 |
|
37 |
|
|
38 |
|
|
38 |
|
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
|
|
||
66 |
|
67 |
|
67 |
|
68 |
|
68 |
|
69 |
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
75 |
|
79 |
|
76 |
|
80 |
|
77 |
|
81 |
|
|
|
||
323 |
|
327 |
|
324 |
|
328 |
|
325 |
|
329 |
|
326 |
|
|
|
|
330 |
|
|
327 |
|
331 |
|
328 |
|
|
|
|
332 |
|
|
329 |
|
333 |
|
330 |
|
334 |
|
331 |
|
335 |
|
332 |
|
|
|
333 |
|
|
|
|
336 |
|
|
|
337 |
|
|
334 |
|
338 |
|
335 |
|
339 |
|
336 |
|
340 |
|
337 |
|
341 |
|
338 |
|
342 |
|
339 |
|
|
|
|
343 |
|
|
340 |
|
344 |
|
341 |
|
345 |
|
342 |
|
346 |
|
|
|
||
346 |
|
350 |
|
347 |
|
351 |
|
348 |
|
352 |
|
349 |
|
|
|
|
353 |
|
|
350 |
|
354 |
|
351 |
|
355 |
|
352 |
|
356 |
|
|
|
||
678 |
|
682 |
|
679 |
|
683 |
|
680 |
|
684 |
|
681 |
|
|
|
682 |
|
|
|
683 |
|
|
|
|
685 |
|
|
|
686 |
|
|
|
687 |
|
|
|
688 |
|
|
|
689 |
|
|
|
690 |
|
|
|
691 |
|
|
|
692 |
|
|
|
693 |
|
|
|
694 |
|
|
|
695 |
|
|
|
696 |
|
|
|
697 |
|
|
|
698 |
|
|
|
699 |
|
|
|
700 |
|
|
|
701 |
|
|
|
702 |
|
|
|
703 |
|
|
|
704 |
|
|
|
705 |
|
|
|
706 |
|
|
|
707 |
|
|
|
708 |
|
|
|
709 |
|
|
|
710 |
|
|
|
711 |
|
|
684 |
|
712 |
|
685 |
|
713 |
|
686 |
|
714 |
|
|
|
||
690 |
|
718 |
|
691 |
|
719 |
|
692 |
|
720 |
|
693 |
|
|
|
694 |
|
|
|
695 |
|
|
|
|
721 |
|
|
|
722 |
|
|
|
723 |
|
|
|
724 |
|
|
|
725 |
|
|
|
726 |
|
|
|
727 |
|
|
|
728 |
|
|
|
729 |
|
|
696 |
|
730 |
|
697 |
|
731 |
|
698 |
|
732 |
|
|
|
||
702 |
|
736 |
|
703 |
|
737 |
|
704 |
|
738 |
|
705 |
|
|
|
706 |
|
|
|
707 |
|
|
|
|
739 |
|
|
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
|
743 |
|
|
|
744 |
|
|
|
745 |
|
|
|
746 |
|
|
|
747 |
|
|
708 |
|
748 |
|
709 |
|
749 |
|
710 |
|
750 |
|
|
|
||
714 |
|
754 |
|
715 |
|
755 |
|
716 |
|
756 |
|
717 |
|
|
|
718 |
|
|
|
719 |
|
|
|
|
757 |
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
|
|
|
761 |
|
|
|
762 |
|
|
|
763 |
|
|
|
764 |
|
|
|
765 |
|
|
|
766 |
|
|
720 |
|
767 |
|
721 |
|
768 |
|
722 |
|
769 |
|
|
|
||
857 |
|
904 |
|
858 |
|
905 |
|
859 |
|
906 |
|
860 |
|
|
|
861 |
|
|
|
862 |
|
|
|
863 |
|
|
|
864 |
|
|
|
|
907 |
|
|
|
908 |
|
|
|
909 |
|
|
|
910 |
|
|
|
911 |
|
|
|
912 |
|
|
865 |
|
913 |
|
866 |
|
914 |
|
867 |
|
915 |
|
|
|
||
87 |
|
87 |
|
88 |
|
88 |
|
89 |
|
89 |
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
90 |
|
118 |
|
91 |
|
119 |
|
92 |
|
|
|
||
250 |
|
223 |
|
251 |
|
224 |
|
252 |
|
225 |
|
253 |
|
|
|
|
226 |
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
|
|
254 |
|
230 |
|
255 |
|
231 |
|
256 |
|
232 |
|
257 |
|
233 |
|
|
234 |
|
|
|
235 |
|
|
|
236 |
|
|
258 |
|
237 |
|
259 |
|
238 |
|
260 |
|
239 |
|
|
|
||
263 |
|
242 |
|
264 |
|
243 |
|
265 |
|
244 |
|
266 |
|
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
267 |
|
255 |
|
268 |
|
256 |
|
269 |
|
257 |
|
270 |
|
|
|
|
258 |
|
|
271 |
|
259 |
|
272 |
|
260 |
|
273 |
|
|
|
274 |
|
|
|
275 |
|
|
|
276 |
|
|
|
277 |
|
261 |
|
278 |
|
262 |
|
279 |
|
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
280 |
|
266 |
|
281 |
|
267 |
|
282 |
|
268 |
|
|
|
||
284 |
|
270 |
|
285 |
|
271 |
|
286 |
|
272 |
|
|
273 |
|
|
287 |
|
274 |
|
288 |
|
275 |
|
289 |
|
276 |
|
|
|
||
301 |
|
288 |
|
302 |
|
289 |
|
303 |
|
290 |
|
|
291 |
|
|
|
292 |
|
|
304 |
|
293 |
|
305 |
|
294 |
|
306 |
|
|
|
|
295 |
|
|
307 |
|
296 |
|
308 |
|
297 |
|
309 |
|
298 |
|
|
|
||
318 |
|
307 |
|
319 |
|
308 |
|
320 |
|
309 |
|
|
310 |
|
|
321 |
|
311 |
|
322 |
|
312 |
|
323 |
|
313 |
|
|
|
||
378 |
|
368 |
|
379 |
|
369 |
|
380 |
|
370 |
|
381 |
|
|
|
|
371 |
|
|
382 |
|
372 |
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
|
390 |
|
373 |
|
391 |
|
|
|
|
374 |
|
|
392 |
|
375 |
|
393 |
|
|
|
394 |
|
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
376 |
|
401 |
|
377 |
|
402 |
|
|
|
403 |
|
|
|
|
378 |
|
|
|
379 |
|
|
404 |
|
380 |
|
405 |
|
381 |
|
406 |
|
|
|
|
382 |
|
|
|
383 |
|
|
407 |
|
384 |
|
408 |
|
385 |
|
409 |
|
386 |
|
|
|
||
424 |
|
401 |
|
425 |
|
402 |
|
426 |
|
403 |
|
427 |
|
|
|
428 |
|
404 |
|
429 |
|
|
|
430 |
|
405 |
|
431 |
|
406 |
|
432 |
|
407 |
|