summaryrefslogtreecommitdiffstats
path: root/knetworkconf/knetworkconf/kaddressvalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knetworkconf/knetworkconf/kaddressvalidator.cpp')
-rw-r--r--knetworkconf/knetworkconf/kaddressvalidator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/knetworkconf/knetworkconf/kaddressvalidator.cpp b/knetworkconf/knetworkconf/kaddressvalidator.cpp
index d7d23bc..f3fabe7 100644
--- a/knetworkconf/knetworkconf/kaddressvalidator.cpp
+++ b/knetworkconf/knetworkconf/kaddressvalidator.cpp
@@ -18,7 +18,7 @@
#include "kaddressvalidator.h"
/*
- Class for validating IP address and nettqmasks, and to calculate network and broadcast values.
+ Class for validating IP address and netmasks, and to calculate network and broadcast values.
The functions to do the last two things where taken from the code of ipcalc.c, made by
Erik Troan <ewt@redhat.com> and Preston Brown <pbrown@redhat.com> from Red Hat Inc. .
*/
@@ -53,7 +53,7 @@ bool KAddressValidator::isValidIPAddress(TQString addr){
else
return false;
}
-bool KAddressValidator::isNettqmaskValid(TQString addr){
+bool KAddressValidator::isNetmaskValid(TQString addr){
TQString s = "";
int i;
int number;
@@ -140,7 +140,7 @@ unsigned long int KAddressValidator::prefix2tqmask(int prefix){
return htonl(~((2 << (31 - prefix)) - 1));
}
/** \fn int tqmask2prefix(unsigned long int tqmask)
- \brief calculates the number of bits tqmasked off by a nettqmask.
+ \brief calculates the number of bits masked off by a nettqmask.
This function calculates the significant bits in an IP address as specified by
a nettqmask. See also \ref prefix2tqmask.