shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS shishi/lib


From: shishi-commit
Subject: CVS shishi/lib
Date: Fri, 17 Sep 2004 16:09:26 +0200

Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv22888

Modified Files:
        resolv.c 
Log Message:
Remove A record parsing, to avoid xinet/inet_r.


--- /home/cvs/shishi/lib/resolv.c       2004/09/17 11:35:09     1.8
+++ /home/cvs/shishi/lib/resolv.c       2004/09/17 14:09:25     1.9
@@ -31,9 +31,6 @@
 
 #ifdef HAVE_LIBRESOLV
 
-/* Get xinet_ntoa. */
-#include "xinet.h"
-
 /* the largest packet we'll send and receive */
 #if PACKETSZ > 1024
 # define MAX_PACKET PACKETSZ
@@ -48,17 +45,6 @@
 } dns_packet_t;
 
 static void *
-_a_rr (dns_packet_t packet, unsigned char *eom, unsigned char **scan)
-{
-  struct in_addr in;
-
-  GETLONG (in.s_addr, *scan);
-  in.s_addr = ntohl (in.s_addr);
-
-  return xinet_ntoa (in);
-}
-
-static void *
 _srv_rr (dns_packet_t packet, unsigned char *eom, unsigned char **scan)
 {
   unsigned int priority, weight, port;
@@ -150,7 +136,6 @@
 
   switch (query_type)
     {
-    case T_A:
     case T_TXT:
     case T_SRV:
       break;
@@ -231,10 +216,6 @@
       /* type-specific processing */
       switch (type)
        {
-       case T_A:
-         reply[an]->rr = _a_rr (packet, eom, &scan);
-         break;
-
        case T_TXT:
          reply[an]->rr = _txt_rr (packet, eom, &scan);
          break;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]