~ubuntu-branches/ubuntu/wily/maradns/wily-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.2.07/update/3.2.03/deadwood-3.2.02-showpacket.patch

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski, Tomasz Buchert, Dariusz Dwornikowski
  • Date: 2015-03-27 18:34:08 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20150327183408-wnfachdkdjt96yu6
Tags: 2.0.11-1
[ Tomasz Buchert ]
* Imported Upstream version 2.0.11

[ Dariusz Dwornikowski ]
* d/patches: 
  - refreshed all patches for new deadwood version
  - removed generating of random prime on build (Closes: #785536) 
* d/rules: date taken from changelog (Closes: #785535)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- deadwood-3.2.03/src/DwUdpSocket.c.orig      2012-09-22 10:36:05.831347289 -0500
 
2
+++ deadwood-3.2.03/src/DwUdpSocket.c   2012-09-22 10:45:16.324735565 -0500
 
3
@@ -1217,6 +1217,17 @@
 
4
         }
 
5
         a[2] |= 0x80; /* Flag this as an answer (just in case they didn't) */
 
6
 
 
7
+#ifdef SHOWPACKET
 
8
+       dw_str *hack = 0;
 
9
+       hack = dw_malloc(sizeof(dw_str));
 
10
+       hack->max = count + 1;
 
11
+       hack->len = count;
 
12
+       hack->str = (uint8_t *)a;
 
13
+       hack->sane = 114;
 
14
+       dw_log_dwstr("Packet received ",hack,0);
 
15
+       free(hack);
 
16
+#endif /* SHOWPACKET */
 
17
+
 
18
         /* Make reasonably sure this is the reply to their question */
 
19
         if(verify_dns_packet(b,a,count) != 1) {
 
20
                 return;