summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-08-11 08:36:17 +0000
committerps <ps@FreeBSD.org>2000-08-11 08:36:17 +0000
commit1dd134848fb77eeb60abfde6ac6c912a97a40a92 (patch)
tree6b4cf526523ea9ea5b7c7279e1adbc3a6c25784c /sys/boot/common
parentbf1837571fcf12844f15bc71088fee668425d7b1 (diff)
downloadFreeBSD-src-1dd134848fb77eeb60abfde6ac6c912a97a40a92.zip
FreeBSD-src-1dd134848fb77eeb60abfde6ac6c912a97a40a92.tar.gz
Add support to send the string 'PXEClient' as the Vendor class
identifier to the DHCP server. Now you can check for this string in your dhcp configuration to decide whether you will hand out a lease to the client or not.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/dev_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/dev_net.c b/sys/boot/common/dev_net.c
index c88dae7..884366f 100644
--- a/sys/boot/common/dev_net.c
+++ b/sys/boot/common/dev_net.c
@@ -68,6 +68,7 @@
#include <string.h>
#include <net.h>
#include <netif.h>
+#include <bootp.h>
#include <bootparam.h>
#include "dev_net.h"
@@ -217,7 +218,7 @@ net_getparams(sock)
* use RARP and RPC/bootparam (the Sun way) to get them.
*/
if (try_bootp)
- bootp(sock);
+ bootp(sock, BOOTP_NONE);
if (myip.s_addr != 0)
goto exit;
if (debug)
OpenPOWER on IntegriCloud