if (len == 0)
return state_data[state] + state_len[state];
- syslog(LOG_WARNING, "state_reisze: %i %i %i", (int)state, (int)state_len[state], (int)len);
uint8_t *n = realloc(state_data[state], state_len[state] + len);
if (n || state_len[state] + len == 0) {
state_data[state] = n;
#include <resolv.h>
#include <stdlib.h>
#include <string.h>
+#include <syslog.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
void script_call(const char *status)
{
+ syslog(LOG_WARNING, "State for %s changed to %s", argv[1], status);
size_t dns_len, search_len, custom_len;
struct in6_addr *dns = odhcp6c_get_state(STATE_DNS, &dns_len);
uint8_t *search = odhcp6c_get_state(STATE_SEARCH, &search_len);