Changeset 979
- Timestamp:
- 03/18/07 20:33:08 (6 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
iputils.hh (modified) (2 diffs)
-
zoneparser-tng.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/iputils.hh
r923 r979 35 35 #include <boost/tuple/tuple.hpp> 36 36 #include <boost/tuple/tuple_comparison.hpp> 37 #include <boost/lexical_cast.hpp> 37 38 38 39 using namespace std; … … 162 163 163 164 return tmp; 165 } 166 167 string toStringWithPort() const 168 { 169 if(sin4.sin_family==AF_INET) 170 return toString() + ":" + boost::lexical_cast<string>(ntohs(sin4.sin_port)); 171 else 172 return "["+toString() + "]:" + boost::lexical_cast<string>(ntohs(sin4.sin_port)); 164 173 } 165 174 }; -
trunk/pdns/pdns/zoneparser-tng.cc
r978 r979 89 89 bool ZoneParserTNG::getTemplateLine() 90 90 { 91 if(d_template counter > d_templatestop || d_templateparts.empty()) // no template, or done with91 if(d_templateparts.empty() || d_templatecounter > d_templatestop) // no template, or done with 92 92 return false; 93 93