diff options
author | Michael Brown | 2009-02-05 10:30:32 +0100 |
---|---|---|
committer | Michael Brown | 2009-02-05 10:34:32 +0100 |
commit | 881f1f59ef2abb9b0e9c5a56730a22fb9094b84c (patch) | |
tree | 589ef6553912e55d8ae56d666d5765f179666a7c /src/usr/dhcpmgmt.c | |
parent | [pxe] Skip PXE boot server discovery if directed to do so (diff) | |
download | ipxe-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.c | 9 |
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; |