]> git.baikalelectronics.ru Git - uboot.git/commit
Allow colon in PXE bootfile URLs
authorLyle Franklin <lylejfranklin@gmail.com>
Sat, 16 Apr 2022 15:36:43 +0000 (11:36 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 22 Apr 2022 19:44:10 +0000 (15:44 -0400)
commitc27e5e1c08b7f9c6a9bb66a70184fc9ee87ebeaf
treee66a42e9a058446c18c966e0d63a6a52889585c0
parente3344cbfd78f24ed50103cc4e20599c3736ca06f
Allow colon in PXE bootfile URLs

- U-boot's PXE flow supports prefixing your bootfile name with an
  IP address to fetch from a server other than the DHCP server,
  e.g. `hostIPaddr:bootfilename`:
  https://github.com/u-boot/u-boot/commit/a93907c43f847f076dd0e34ee3b69b5e8e6d0d29
- However, this breaks bootfile paths which contain a colon, e.g.
  `f0:ad:4e:10:1b:87/7/pxelinux.cfg/default`
- This patch checks whether the `hostIPaddr` prefix is a valid
  IP address before overriding the serverIP otherwise the whole
  bootfile path is preserved

Signed-off-by: Lyle Franklin <lylejfranklin@gmail.com>
net/net.c