Some ProxyDHCP servers and PXE boot servers do not specify a DHCP server identifier via option 54. We currently work around this in a variety of ad-hoc ways: - if a ProxyDHCPACK has no server identifier then we treat it as having the correct server identifier, - if a boot server ACK has no server identifier then we use the packet's source IP address as the server identifier. Introduce the concept of a DHCP server pseudo-identifier, defined as being: - the server identifier (option 54), or - if there is no server identifier, then the next-server address (siaddr), - if there is no server identifier or next-server address, then the DHCP packet's source IP address. Use the pseudo-identifier in place of the server identifier when handling ProxyDHCP and PXE boot server responses. Originally-fixed-by: Wissam Shoukair <wissams@mellanox.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
154 |
|
154 |
|
155 |
|
155 |
|
156 |
|
156 |
|
157 |
|
|
|
158 |
|
|
|
|
157 |
|
|
159 |
|
158 |
|
160 |
|
|
|
|
159 |
|
|
|
160 |
|
|
161 |
|
161 |
|
162 |
|
162 |
|
163 |
|
163 |
|
164 |
|
164 |
|
165 |
|
165 |
|
166 |
|
166 |
|
|
167 |
|
|
167 |
|
168 |
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
173 |
|
174 |
|
174 |
|
175 |
|
175 |
|
176 |
|
|
|
||
340 |
|
341 |
|
341 |
|
342 |
|
342 |
|
343 |
|
|
344 |
|
|
343 |
|
345 |
|
344 |
|
346 |
|
345 |
|
347 |
|
346 |
|
348 |
|
347 |
|
|
|
|
349 |
|
|
|
350 |
|
|
348 |
|
351 |
|
349 |
|
352 |
|
350 |
|
353 |
|
|
|
||
356 |
|
359 |
|
357 |
|
360 |
|
358 |
|
361 |
|
359 |
|
|
|
360 |
|
|
|
|
362 |
|
|
|
363 |
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
|
|
361 |
|
367 |
|
362 |
|
368 |
|
363 |
|
369 |
|
|
|
||
398 |
|
404 |
|
399 |
|
405 |
|
400 |
|
406 |
|
401 |
|
|
|
|
407 |
|
|
402 |
|
408 |
|
403 |
|
409 |
|
404 |
|
|
|
|
410 |
|
|
405 |
|
411 |
|
406 |
|
412 |
|
407 |
|
413 |
|
|
|
||
510 |
|
516 |
|
511 |
|
517 |
|
512 |
|
518 |
|
|
519 |
|
|
513 |
|
520 |
|
514 |
|
521 |
|
515 |
|
522 |
|
516 |
|
523 |
|
517 |
|
|
|
|
524 |
|
|
|
525 |
|
|
518 |
|
526 |
|
519 |
|
527 |
|
520 |
|
528 |
|
|
|
||
523 |
|
531 |
|
524 |
|
532 |
|
525 |
|
533 |
|
526 |
|
|
|
527 |
|
|
|
|
534 |
|
|
|
535 |
|
|
|
536 |
|
|
|
537 |
|
|
|
538 |
|
|
528 |
|
539 |
|
529 |
|
540 |
|
530 |
|
541 |
|
|
|
||
641 |
|
652 |
|
642 |
|
653 |
|
643 |
|
654 |
|
|
655 |
|
|
644 |
|
656 |
|
645 |
|
657 |
|
646 |
|
658 |
|
647 |
|
659 |
|
648 |
|
|
|
|
660 |
|
|
|
661 |
|
|
649 |
|
662 |
|
650 |
|
663 |
|
651 |
|
664 |
|
652 |
|
665 |
|
653 |
|
666 |
|
654 |
|
667 |
|
655 |
|
|
|
656 |
|
|
|
|
668 |
|
|
|
669 |
|
|
|
670 |
|
|
|
671 |
|
|
|
672 |
|
|
657 |
|
673 |
|
658 |
|
674 |
|
659 |
|
675 |
|
|
|
||
661 |
|
677 |
|
662 |
|
678 |
|
663 |
|
679 |
|
664 |
|
|
|
665 |
|
|
|
|
680 |
|
|
666 |
|
681 |
|
667 |
|
682 |
|
668 |
|
683 |
|
|
|
||
772 |
|
787 |
|
773 |
|
788 |
|
774 |
|
789 |
|
|
790 |
|
|
775 |
|
791 |
|
776 |
|
792 |
|
777 |
|
793 |
|
778 |
|
794 |
|
779 |
|
|
|
|
795 |
|
|
|
796 |
|
|
780 |
|
797 |
|
781 |
|
798 |
|
782 |
|
799 |
|
783 |
|
800 |
|
784 |
|
801 |
|
785 |
|
802 |
|
786 |
|
|
|
787 |
|
|
|
|
803 |
|
|
|
804 |
|
|
|
805 |
|
|
|
806 |
|
|
|
807 |
|
|
788 |
|
808 |
|
789 |
|
809 |
|
790 |
|
810 |
|
|
|
||
801 |
|
821 |
|
802 |
|
822 |
|
803 |
|
823 |
|
804 |
|
|
|
805 |
|
|
|
|
824 |
|
|
806 |
|
825 |
|
807 |
|
826 |
|
808 |
|
827 |
|
|
|
||
1134 |
|
1153 |
|
1135 |
|
1154 |
|
1136 |
|
1155 |
|
|
1156 |
|
|
1137 |
|
1157 |
|
1138 |
|
1158 |
|
1139 |
|
1159 |
|
|
|
||
1168 |
|
1188 |
|
1169 |
|
1189 |
|
1170 |
|
1190 |
|
|
1191 |
|
|
|
1192 |
|
|
|
1193 |
|
|
|
1194 |
|
|
|
1195 |
|
|
|
1196 |
|
|
|
1197 |
|
|
1171 |
|
1198 |
|
1172 |
|
1199 |
|
1173 |
|
1200 |
|
|
|
||
1190 |
|
1217 |
|
1191 |
|
1218 |
|
1192 |
|
1219 |
|
1193 |
|
|
|
|
1220 |
|
|
1194 |
|
1221 |
|
1195 |
|
1222 |
|
1196 |
|
1223 |
|