summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34f363d)
raw | patch | inline | side by side (parent: 34f363d)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Mar 2007 17:48:44 +0000 (19:48 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Mar 2007 17:48:44 +0000 (19:48 +0200) |
Also, some debug-messages have been changed.
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 3c258f4b867334404640b98cb78febf07bd7ea88..96d48f8bbcf790b7bba7c5bd9713479c93c5a7eb 100644 (file)
--- a/src/network.c
+++ b/src/network.c
value_list_t vl = VALUE_LIST_INIT;
char type[DATA_MAX_NAME_LEN];
- DEBUG ("buffer = %p; buffer_len = %i;", buffer, buffer_len);
+ DEBUG ("network plugin: parse_packet: buffer = %p; buffer_len = %i;",
+ buffer, buffer_len);
memset (&vl, '\0', sizeof (vl));
memset (&type, '\0', sizeof (type));
&& (strlen (type) > 0)
&& (cache_check (type, &vl) == 0))
{
- DEBUG ("dispatching values");
+ DEBUG ("network plugin: parse_packet:"
+ " dispatching values");
plugin_dispatch_values (type, &vl);
}
else
{
- DEBUG ("NOT dispatching values");
+ DEBUG ("network plugin: parse_packet:"
+ " NOT dispatching values");
}
}
else if (ntohs (header->type) == TYPE_TIME)
}
else
{
- DEBUG ("Unknown part type: 0x%0hx", ntohs (header->type));
+ DEBUG ("network plugin: parse_packet: Unknown part"
+ " type: 0x%0hx", ntohs (header->type));
buffer = ((char *) buffer) + ntohs (header->length);
}
} /* while (buffer_len > sizeof (part_header_t)) */
static int network_bind_socket (const sockent_t *se, const struct addrinfo *ai)
{
- int loop = 1;
+ int loop = 0;
DEBUG ("fd = %i; calling `bind'", se->fd);
static void flush_buffer (void)
{
+ DEBUG ("network plugin: flush_buffer: send_buffer_fill = %i",
+ send_buffer_fill);
+
network_send_buffer (send_buffer, send_buffer_fill);
send_buffer_ptr = send_buffer;
send_buffer_fill = 0;
}
else if (strcasecmp ("Forward", key) == 0)
{
- if ((strcasecmp ("true", value) == 0)
- || (strcasecmp ("yes", value) == 0)
- || (strcasecmp ("on", value) == 0))
+ if ((strcasecmp ("true", val) == 0)
+ || (strcasecmp ("yes", val) == 0)
+ || (strcasecmp ("on", val) == 0))
network_config_forward = 1;
else
network_config_forward = 0;