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

index cfa4a5cbefff989c28e4a46accb89e00f1a93f59..1f171b33199a6d8b6fb99e1ac3c0372fa9e29f5e 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