[Dnsmasq-discuss] [PATCH] Allow PXE proxy mode for arbitrary Vendor Classes

Stefan Brüns stefan.bruens at rwth-aachen.de
Fri Aug 28 13:54:35 BST 2015


Currently proxy mode can only used with hardware implementing the Intel
PXE specification. Large parts of PXE are specific to x86 PC hardware
and similar, the PXE proxy mode is useful for any network boot capable
platform, e.g. embedded devices.

Typical scenarios are corporate networks, where address assignement is
done from a central DHCP server, but e.g. an embedded platform developer
whiches to control the network boot of the device on its desk. Another
scenario are home networks, where address assignment is done by the WAN
router, which may not able to supply DHCP options like bootserver and
bootfile.

The patch introduces one new config option: dhcp-force-proxy
Config snippet:
---
dhcp-vendorclass=set:pxeproxy,U-boot
dhcp-force-proxy=tag:pxeproxy
dhcp-boot=tag:pxeproxy,/srv/tftpboot/pxelinux.0
dhcp-range=192.168.180.0,proxy
---
In this case, the mode is enabled by matching the vendorclass, but any
other match setting a tag is possible.

Support in the bootloader is required. I have a halfway working patch for
u-boot.

Stefan Brüns (1):
  Allow PXE style proxy mode for arbitrary Vendor Classes

 src/dnsmasq.h |  2 +-
 src/option.c  |  8 ++++++++
 src/rfc2131.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 71 insertions(+), 3 deletions(-)

-- 
2.1.4




More information about the Dnsmasq-discuss mailing list