Changeset 735 for branches


Ignore:
Timestamp:
05/30/06 04:16:41 (6 years ago)
Author:
wd
Message:

Trying a bugfix submitted by dgram ("Hans Christian Winther-Sorensen" <hwinther@…>)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/dns/packet.c

    r611 r735  
    7676            } else { 
    7777                /* try putting it together in bitstring format .. */ 
     78#if 0 
    7879                strcpy(s, "\\[x"); 
    7980                s += 3; 
     
    8283                            s2[i] & 0xf); 
    8384                strcat(s, "/128].ip6.arpa"); 
     85#else 
     86                /* Trying alternate code here... */ 
     87                for (i = 15;i >= 0;i--) 
     88                    sprintf(s + ((15 - i) * 4), "%x.%x.". 
     89                            s2[i] & 0xf, (s2[i] >> 4) & 0xf); 
     90                strcat(s, "ip6.arpa"); 
     91#endif 
    8492            } 
    8593        } else 
Note: See TracChangeset for help on using the changeset viewer.