summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2009-05-20 09:16:51 +0200
committerMichael Brown2009-05-20 09:47:39 +0200
commit3961c1ca02ad3c8ce1dbc725eb07411e1dbee1d8 (patch)
tree2a1ac8321d9767500190f5ebebd099fe3cfe2468 /src/core
parent[dhcp] Perform ProxyDHCP only if we do not already have PXE options (diff)
downloadipxe-3961c1ca02ad3c8ce1dbc725eb07411e1dbee1d8.tar.gz
ipxe-3961c1ca02ad3c8ce1dbc725eb07411e1dbee1d8.tar.xz
ipxe-3961c1ca02ad3c8ce1dbc725eb07411e1dbee1d8.zip
[dhcp] Send broadcast PXE boot server discovery requests to port 67
We currently send all boot server discovery requests to port 4011. Section 2.2.1 of the PXE spec states that boot server discovery packets should be "sent broadcast (port 67), multicast (port 4011), or unicast (port 4011)". Adjust our behaviour so that any boot server discovery packets that are sent to the broadcast address are directed to port 67 rather than port 4011. This is required for operation with dnsmasq as a PXE server, since dnsmasq listens only on port 67, and relies upon this (specified) behaviour. This change may break some setups using the (itself very broken) Linux PXE server from kano.org.uk. This server will, in its default configuration, listen only on port 4011. It never constructs a boot server list (PXE_BOOT_SERVERS, option 43.8), and uses the wrong definitions for the discovery control bits (PXE_DISCOVERY_CONTROL, option 43.6). The upshot is that it will always instruct the client to perform multicast and broadcast discovery only. In setups lacking a valid multicast route on the server side, this used to work because gPXE would eventually give up on the (non-responsive) multicast address and send a broadcast request to port 4011, which the Linux PXE server would respond to. Now that gPXE correctly sends this broadcast request to port 67 instead, it is never seen by the Linux PXE server, and the boot fails. The fix is to either (a) set up a multicast route correctly on the server side before starting the PXE server, or (b) edit /etc/pxe.conf to contain the server's unicast address in the "multicast_address" field (a hack that happens to work). Suggested-by: Simon Kelley <simon@thekelleys.org.uk>
Diffstat (limited to 'src/core')
0 files changed, 0 insertions, 0 deletions