|
iPXE
|
Google Compute Engine (GCE) metadata retrieval. More...
Go to the source code of this file.
Macros | |
| #define | GCE_METADATA_HOST_NAME "metadata.google.internal" |
| Metadata host name. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | http_format_metadata_flavor (struct http_transaction *http, char *buf, size_t len) |
| Construct HTTP "Metadata-Flavor" header. More... | |
Variables | |
| struct http_request_header http_request_metadata_flavor | __http_request_header |
| HTTP "Metadata-Flavor" header. More... | |
Google Compute Engine (GCE) metadata retrieval.
For some unspecified "security" reason, the Google Compute Engine metadata server will refuse any requests that do not include the non-standard HTTP header "Metadata-Flavor: Google".
Definition in file httpgce.c.
| #define GCE_METADATA_HOST_NAME "metadata.google.internal" |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Construct HTTP "Metadata-Flavor" header.
| http | HTTP transaction |
| buf | Buffer |
| len | Length of buffer |
| len | Length of header value, or negative error |
Definition at line 55 of file httpgce.c.
References GCE_METADATA_HOST_NAME, http_request::host, len, http_transaction::request, snprintf(), and strcasecmp().
| struct http_request_header http_request_metadata_flavor __http_request_header |
HTTP "Metadata-Flavor" header.
1.8.15