From: Daniel Sutto Date: Wed, 11 Jul 2012 17:32:16 +0000 (+0200) Subject: Fix bad definition of UDP src port in DNS plugin. X-Git-Tag: collectd-5.2.0~81 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5e586437f8ed210d7d0e9b9316376773c457adfc;p=collectd.git Fix bad definition of UDP src port in DNS plugin. --- diff --git a/src/utils_dns.c b/src/utils_dns.c index cfa4a5cb..1f171b33 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -118,7 +118,7 @@ #if HAVE_STRUCT_UDPHDR_UH_DPORT && HAVE_STRUCT_UDPHDR_UH_SPORT # define UDP_DEST uh_dport -# define UDP_SRC uh_dport +# define UDP_SRC uh_sport #elif HAVE_STRUCT_UDPHDR_DEST && HAVE_STRUCT_UDPHDR_SOURCE # define UDP_DEST dest # define UDP_SRC source