projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Many build fixes that turned up with GCC 4.6.
[collectd.git]
/
src
/
utils_dns.c
diff --git
a/src/utils_dns.c
b/src/utils_dns.c
index
b7dc791
..
9a2e479
100644
(file)
--- a/
src/utils_dns.c
+++ b/
src/utils_dns.c
@@
-33,6
+33,8
@@
* Florian octo Forster <octo at verplant.org>
*/
* Florian octo Forster <octo at verplant.org>
*/
+#define _BSD_SOURCE
+
#include "collectd.h"
#include "plugin.h"
#include "common.h"
#include "collectd.h"
#include "plugin.h"
#include "common.h"
@@
-430,7
+432,6
@@
handle_ipv6 (struct ip6_hdr *ipv6, int len)
int nexthdr;
struct in6_addr s_addr;
int nexthdr;
struct in6_addr s_addr;
- struct in6_addr d_addr;
uint16_t payload_len;
if (0 > len)
uint16_t payload_len;
if (0 > len)
@@
-439,7
+440,6
@@
handle_ipv6 (struct ip6_hdr *ipv6, int len)
offset = sizeof (struct ip6_hdr);
nexthdr = ipv6->ip6_nxt;
s_addr = ipv6->ip6_src;
offset = sizeof (struct ip6_hdr);
nexthdr = ipv6->ip6_nxt;
s_addr = ipv6->ip6_src;
- d_addr = ipv6->ip6_dst;
payload_len = ntohs (ipv6->ip6_plen);
if (ignore_list_match (&s_addr))
payload_len = ntohs (ipv6->ip6_plen);
if (ignore_list_match (&s_addr))