FreeBSD Bugzilla – Attachment 159564 Details for
Bug 202098
[EFI] boot/loader.efi: handle parameters and override BOOTP root-path
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Use dhcp.root-path.override to override BOOTP root path
patch-HEAD-r286279-lib-libstand-bootp.c (text/plain), 921 bytes, created by
Ganael LAPLANCHE
on 2015-08-05 07:43:20 UTC
(
hide
)
Description:
Use dhcp.root-path.override to override BOOTP root path
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2015-08-05 07:43:20 UTC
Size:
921 bytes
patch
obsolete
>--- lib/libstand/bootp.c.orig 2015-07-29 08:38:28.970379976 +0200 >+++ lib/libstand/bootp.c 2015-07-29 09:08:59.747891922 +0200 >@@ -383,8 +383,20 @@ > bcopy(cp, &rootip.s_addr, sizeof(swapip.s_addr)); > } > if (tag == TAG_ROOTPATH) { >- strncpy(rootpath, (char *)cp, sizeof(rootpath)); >- rootpath[size] = '\0'; >+ /* >+ * XXX Set dhcp.root-path.override to force rootpath >+ * locally and ignore BOOTP vendor tag 17 (root-path) >+ */ >+ char *rootpath_o = getenv("dhcp.root-path.override"); >+ if (rootpath_o == NULL) { >+ strncpy(rootpath, (char *)cp, sizeof(rootpath)); >+ rootpath[size] = '\0'; >+ /* printf("vend_rfc1048: rootpath set from BOOTP: %s\n", rootpath); */ >+ } >+ else { >+ strcpy(rootpath, rootpath_o); >+ /* printf("vend_rfc1048: rootpath set to: %s\n", rootpath); */ >+ } > } > if (tag == TAG_HOSTNAME) { > strncpy(hostname, (char *)cp, sizeof(hostname));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202098
:
159563
| 159564