summaryrefslogtreecommitdiffstats
path: root/src/usr/dhcpmgmt.c
diff options
context:
space:
mode:
authorMichael Brown2009-02-05 10:30:32 +0100
committerMichael Brown2009-02-05 10:34:32 +0100
commit881f1f59ef2abb9b0e9c5a56730a22fb9094b84c (patch)
tree589ef6553912e55d8ae56d666d5765f179666a7c /src/usr/dhcpmgmt.c
parent[pxe] Skip PXE boot server discovery if directed to do so (diff)
downloadipxe-881f1f59ef2abb9b0e9c5a56730a22fb9094b84c.tar.gz
ipxe-881f1f59ef2abb9b0e9c5a56730a22fb9094b84c.tar.xz
ipxe-881f1f59ef2abb9b0e9c5a56730a22fb9094b84c.zip
[pxe] Obey lists of PXE Boot Servers and associated Discovery Control bits
Various combinations of options 43.6, 43.7 and 43.8 dictate which servers we send Boot Server Discovery requests to, and which servers we should accept responses from. Obey these options, and remove the explicit specification of a single Boot Server from start_pxebs() and dependent functions.
Diffstat (limited to 'src/usr/dhcpmgmt.c')
-rw-r--r--src/usr/dhcpmgmt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c
index c68808b1..6acf7f6d 100644
--- a/src/usr/dhcpmgmt.c
+++ b/src/usr/dhcpmgmt.c
@@ -47,15 +47,12 @@ int dhcp ( struct net_device *netdev ) {
return rc;
}
-int pxebs ( struct net_device *netdev, struct in_addr pxe_server,
- unsigned int pxe_type ) {
+int pxebs ( struct net_device *netdev, unsigned int pxe_type ) {
int rc;
/* Perform PXE Boot Server Discovery */
- printf ( "PXEBS (%s %s type %d)",
- netdev->name, inet_ntoa ( pxe_server ), pxe_type );
- if ( ( rc = start_pxebs ( &monojob, netdev, pxe_server,
- pxe_type ) ) == 0 )
+ printf ( "PXEBS (%s type %d)", netdev->name, pxe_type );
+ if ( ( rc = start_pxebs ( &monojob, netdev, pxe_type ) ) == 0 )
rc = monojob_wait ( "" );
return rc;