[cvslog] (2004-12-09 04:53:40 UTC) Module eggdrop1.9: Change committed!

cvslog cvs at tsss.org
Wed Dec 8 22:53:40 CST 2004


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.9
Commit time: 2004-12-09 04:53:40 UTC
Commited by: Bryan Drewery <lordares at shatow.net>

Modified files:
     lib/eggdrop/dns.c

Log message:

* Convert the ttl from the dns reply to our host byte order
  Going to fix (add) caching/ttl to the dns, if anyone objects
  do let me know asap, won't be anything drastic...

---------------------- diff included ----------------------
Index: eggdrop1.9/lib/eggdrop/dns.c
diff -u eggdrop1.9/lib/eggdrop/dns.c:1.6 eggdrop1.9/lib/eggdrop/dns.c:1.7
--- eggdrop1.9/lib/eggdrop/dns.c:1.6	Sun Oct 17 00:14:06 2004
+++ eggdrop1.9/lib/eggdrop/dns.c	Wed Dec  8 22:53:30 2004
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: dns.c,v 1.6 2004/10/17 05:14:06 stdarg Exp $";
+static const char rcsid[] = "$Id: dns.c,v 1.7 2004/12/09 04:53:30 lordares Exp $";
 #endif
 
 #include <eggdrop/eggdrop.h>
@@ -530,6 +530,7 @@
 		memcpy(&reply, ptr, 10);
 		reply.type = ntohs(reply.type);
 		reply.rdlength = ntohs(reply.rdlength);
+		reply.ttl = ntohl(reply.ttl);
 		ptr += 10;
 		if (reply.type == 1) {
 			/*fprintf(fp, "ipv4 reply\n");*/
----------------------- End of diff -----------------------



More information about the Changes mailing list