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)
committerDaniel Sutto <sutto.daniel@itk.ppke.hu>
Wed, 11 Jul 2012 17:32:16 +0000 (19:32 +0200)
src/utils_dns.c

index cfa4a5c..1f171b3 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