summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-03 15:16:41 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-03 15:16:41 +0800
commite28f24a0c49768114d42cefa33ff79235b937d48 (patch)
tree64debb3969bccc0e35a0486651eed5dc141903a9 /include
parent478ea9614468014b20f9c5d500f7b802c10f9f78 (diff)
downloadpttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.tar
pttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.tar.gz
pttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.tar.bz2
pttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.tar.lz
pttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.tar.xz
pttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.tar.zst
pttbbs-e28f24a0c49768114d42cefa33ff79235b937d48.zip
domain_name_query is changed to cidr format
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2176 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h1
-rw-r--r--include/pttstruct.h8
2 files changed, 6 insertions, 3 deletions
diff --git a/include/proto.h b/include/proto.h
index b13b6fca..0d66649f 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -462,6 +462,7 @@ void out_lines(const char *str, int line);
#define pressanykey() vmsg_lines(b_lines, NULL)
int vmsg_lines(int lines, const char *msg);
int log_user(const char *fmt, ...) GCC_CHECK_FORMAT(1,2);
+unsigned int ipstr2int(char *ip);
time_t gettime(int line, time_t dt, char* head);
void setcalfile(char *buf, char *userid);
void stand_title(char *title);
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 9d1b1935..8f00de01 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -444,9 +444,11 @@ typedef struct {
} GV2;
/* fromcache */
- char domain[MAX_FROM][50];
- char replace[MAX_FROM][50];
- int top;
+ unsigned int home_ip[MAX_FROM];
+ unsigned int home_mask[MAX_FROM];
+ char home_desc[MAX_FROM][32];
+ int home_num;
+
int max_user;
time_t max_time;
time_t Fuptime;