Browse Source

[2784] Minor change to error message when wrong IP switch is used

Stephen Morris 12 years ago
parent
commit
7a7dc17a59
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/tools/perfdhcp/test_control.cc

+ 4 - 4
tests/tools/perfdhcp/test_control.cc

@@ -597,12 +597,12 @@ TestControl::openSocket() const {
     uint8_t family = (options.getIpVersion() == 6) ? AF_INET6 : AF_INET; 
     uint8_t family = (options.getIpVersion() == 6) ? AF_INET6 : AF_INET; 
     IOAddress remoteaddr(servername);
     IOAddress remoteaddr(servername);
     
     
-    // Check for mismatch between ip option and server
+    // Check for mismatch between IP option and server address
     if (family != remoteaddr.getFamily()) {
     if (family != remoteaddr.getFamily()) {
         isc_throw(InvalidParameter, 
         isc_throw(InvalidParameter, 
-                  "Values for Ip version: " <<  
-                  static_cast<unsigned int>(options.getIpVersion())
-                  <<  " and Server:" << servername << " are mismatched."); 
+                  "Values for IP version: " <<  
+                  static_cast<unsigned int>(options.getIpVersion()) <<
+                  " and server address: " << servername << " are mismatched."); 
     }
     }
 
 
     if (port == 0) {
     if (port == 0) {