Try to get endpoint from "dhcp-server-identifier"

This commit is contained in:
Reyk Floeter 2018-01-10 15:10:58 +01:00
commit ee473a4bd6
5 changed files with 74 additions and 64 deletions

View file

@ -26,6 +26,7 @@
#include "http.h"
#include "jsmn.h"
#define DEFAULT_ENDPOINT "169.254.169.254"
#define CONNECT_TIMEOUT 10 /* in seconds */
enum strtype {
@ -107,6 +108,7 @@ int agent_setpubkey(struct system_config *, const char *, const char *);
char *metadata(struct system_config *, const char *, enum strtype);
char *metadata_file(struct system_config *, const char *, enum strtype);
int connect_wait(int, const struct sockaddr *, socklen_t);
int dhcp_getendpoint(struct system_config *);
/* log.c */
void log_init(int, int);