wm: dnsparser

Download patch

ref: ba2943ae190fdc67a3f9ce5e1668eda51e3f64b1
parent: 2333328cb5d4c442b9764513dcd57c75e261d564
author: mkf <mkf@cloud9p.org>
date: Sat Aug 3 05:17:30 EDT 2024

dnsparser: remove debugging code

--- a/dnsparser.c
+++ b/dnsparser.c
@@ -26,21 +26,12 @@
 	Dns dns;
 
 	printf("\n==================%3d  ==================\n", packets++);
-		
-	/* XXX */
-	printf("frame info:\n"
-	"\tlen: %d\tcaplen: %d\n"
-	"\ttimeval.tv_sec: %ld\ttimeval.tv_usec: %ld\n",
-	header->len, header->caplen,
-	header->ts.tv_sec, header->ts.tv_usec);
 	
 	parseEther(pkt + head, &e);
 	head += ETHER_LEN;
 	
-	printEther(e);
 	
 	parsePkt(pkt + head, &p);
-	printPkt(p);
 	head += p.headerlen;
 
 	if(p.proto == IPPROTO_UDP)