[Icescan-cvs] IceScan/icesockets sock_name.cc, 1.6, 1.7 sock_name.h, 1.5, 1.6
Status: Alpha
Brought to you by:
darkkey
From: arkaino <ar...@us...> - 2007-01-29 13:58:17
|
Update of /cvsroot/icescan/IceScan/icesockets In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv25631/icesockets Modified Files: sock_name.cc sock_name.h Log Message: added options for host/ip/net exclusion Index: sock_name.h =================================================================== RCS file: /cvsroot/icescan/IceScan/icesockets/sock_name.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sock_name.h 13 Jan 2007 18:40:31 -0000 1.5 --- sock_name.h 29 Jan 2007 13:58:14 -0000 1.6 *************** *** 25,28 **** --- 25,32 ---- bool is_ip(icestring &); + bool is_ip_range(const char *); + + bool is_ip_range(icestring &); + bool is_correct_domainname(const char *); Index: sock_name.cc =================================================================== RCS file: /cvsroot/icescan/IceScan/icesockets/sock_name.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** sock_name.cc 13 Jan 2007 18:40:30 -0000 1.6 --- sock_name.cc 29 Jan 2007 13:58:14 -0000 1.7 *************** *** 26,29 **** --- 26,38 ---- } + bool is_ip_range (const char * nisname){ + IceRegex re("(\\d+-\\d+)"); + return (re.match(nisname)); + } + + bool is_ip_range (icestring &nisname){ + return is_ip_range(nisname.c_str()); + } + bool is_correct_domainname(const char * nisname){ IceRegex re("^([A-Za-z0-9][-A-Za-z0-9]*[.]*)+$"); |