mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Partially revert r314948
While it sounds like a good idea to extract the RFC1048 data from PXE, in the end it is not and it is causing lots of issues. Our pxeloader might need options which are incompatible with other pxe servers (for example iPXE, but not only). Our pxe loaders are also now settings their own user class, so it is useful to issue our own pxe request at startup Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D10953
This commit is contained in:
parent
4dfd16670e
commit
e9ce925773
1 changed files with 2 additions and 21 deletions
|
|
@ -256,7 +256,6 @@ net_getparams(int sock)
|
|||
{
|
||||
char buf[MAXHOSTNAMELEN];
|
||||
n_long rootaddr, smask;
|
||||
struct iodesc *d = socktodesc(sock);
|
||||
extern struct in_addr servip;
|
||||
|
||||
#ifdef SUPPORT_BOOTP
|
||||
|
|
@ -266,26 +265,8 @@ net_getparams(int sock)
|
|||
* be initialized. If any remain uninitialized, we will
|
||||
* use RARP and RPC/bootparam (the Sun way) to get them.
|
||||
*/
|
||||
if (try_bootp) {
|
||||
int rc = -1;
|
||||
if (bootp_response != NULL) {
|
||||
rc = dhcp_try_rfc1048(bootp_response->bp_vend,
|
||||
bootp_response_size -
|
||||
offsetof(struct bootp, bp_vend));
|
||||
|
||||
if (servip.s_addr == 0)
|
||||
servip = bootp_response->bp_siaddr;
|
||||
if (rootip.s_addr == 0)
|
||||
rootip = bootp_response->bp_siaddr;
|
||||
if (gateip.s_addr == 0)
|
||||
gateip = bootp_response->bp_giaddr;
|
||||
if (myip.s_addr == 0)
|
||||
myip = bootp_response->bp_yiaddr;
|
||||
d->myip = myip;
|
||||
}
|
||||
if (rc < 0)
|
||||
bootp(sock);
|
||||
}
|
||||
if (try_bootp)
|
||||
bootp(sock);
|
||||
if (myip.s_addr != 0)
|
||||
goto exit;
|
||||
#ifdef NETIF_DEBUG
|
||||
|
|
|
|||
Loading…
Reference in a new issue