Code

Fix bad definition of UDP src port in DNS plugin.
authorDaniel Sutto <sutto.daniel@itk.ppke.hu>
Wed, 11 Jul 2012 17:32:16 +0000 (19:32 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 12 Jul 2012 06:17:20 +0000 (08:17 +0200)
src/utils_dns.c

index 73db619b6816b60f25616006446e9bf4ace56e64..2899bd4140223229a1ae45533429d186572ddd35 100644 (file)
 
 #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