Changeset 620
- Timestamp:
- 03/25/06 18:55:54 (7 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/misc.cc
r597 r620 314 314 } 315 315 return false; 316 } 317 318 string U32ToIP(uint32_t val) 319 { 320 char tmp[17]; 321 snprintf(tmp, sizeof(tmp)-1, "%u.%u.%u.%u", 322 (val >> 24)&0xff, 323 (val >> 16)&0xff, 324 (val >> 8)&0xff, 325 (val )&0xff); 326 return tmp; 316 327 } 317 328 -
trunk/pdns/pdns/misc.hh
r602 r620 119 119 const string toLowerCanonic(const string &upper); 120 120 bool IpToU32(const string &str, uint32_t *ip); 121 string U32ToIP(uint32_t); 121 122 string stringerror(); 122 123 string itoa(int i);