X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_dns.c;h=9a2e479c5ce500a60d396c30140768d9091ab769;hp=b7dc79134ab6e48db7c8fcdc54a067c6061858de;hb=61a1fa91ba73e4fe3a34949f77c5f017056f2b7a;hpb=b72d521340383b6418fa6a75faca3bc45f06b14a diff --git a/src/utils_dns.c b/src/utils_dns.c index b7dc7913..9a2e479c 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -33,6 +33,8 @@ * Florian octo Forster */ +#define _BSD_SOURCE + #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; - struct in6_addr d_addr; 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; - d_addr = ipv6->ip6_dst; payload_len = ntohs (ipv6->ip6_plen); if (ignore_list_match (&s_addr))