* Florian octo Forster <octo at collectd.org>
**/
-#if HAVE_CONFIG_H
#include "config.h"
-#endif
#if !defined(__GNUC__) || !__GNUC__
#define __attribute__(x) /**/
#include <errno.h>
#include <net/if.h>
#include <netdb.h>
+#include <netinet/in.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
};
memmove(&mreq6.ipv6mr_multiaddr, &sa->sin6_addr, sizeof(struct in6_addr));
- status = setsockopt(srv->conn, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, &mreq6,
+ status = setsockopt(srv->conn, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq6,
sizeof(mreq6));
if (status == -1)
return errno;
}
if (srv.buffer_size == 0)
- /* TODO(octo): this should be a define. */
- srv.buffer_size = 1452;
+ srv.buffer_size = LCC_NETWORK_BUFFER_SIZE;
if (srv.parser == NULL)
srv.parser = lcc_network_parse;