]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a readonly sysctl variable of type string, kern.bootp_cookie,
authorluigi <luigi@FreeBSD.org>
Wed, 13 Mar 2002 09:23:11 +0000 (09:23 +0000)
committerluigi <luigi@FreeBSD.org>
Wed, 13 Mar 2002 09:23:11 +0000 (09:23 +0000)
commitd4a3339ee0407cbcb5011092efa77422dfa52be7
tree638cbf2eb69d4c10fc4f6c494720bd7e4c153041
parente11d2515d54dca98d8c75dba28e6922034531af9
Add a readonly sysctl variable of type string, kern.bootp_cookie,
which is initialized with whatever string a dhcp/bootp server passes
as vendor tag 134.
There is no standard tag that I know with this information, and
no vendor-defined tag that applies to FreeBSD that I could find
doing the same thing.

The intended use is to pass information to userland for run-time
configuration of a diskless client without having to run a bootp/dhcp
client for the third time (after the one in pxeboot/etherboot, and
the one in the kernel bootp), also because these clients generally
screwup the interface configuration, which is not exactly what you
want when you have your disks nfs-mounted.

Manpage update to follow soon.

MFC-after: 3 days
sys/nfsclient/bootp_subr.c