53 |
|
#include "mempool.h" |
54 |
|
|
55 |
|
|
56 |
– |
static const char *const HeaderMessages[] = |
57 |
– |
{ |
58 |
– |
":*** Looking up your hostname", |
59 |
– |
":*** Found your hostname", |
60 |
– |
":*** Couldn't look up your hostname", |
61 |
– |
":*** Checking Ident", |
62 |
– |
":*** Got Ident response", |
63 |
– |
":*** No Ident response", |
64 |
– |
":*** Your forward and reverse DNS do not match, ignoring hostname", |
65 |
– |
":*** Your hostname is too long, ignoring hostname" |
66 |
– |
}; |
67 |
– |
|
56 |
|
enum |
57 |
|
{ |
58 |
|
REPORT_DO_DNS, |
65 |
|
REPORT_HOST_TOOLONG |
66 |
|
}; |
67 |
|
|
68 |
+ |
static const char *const HeaderMessages[] = |
69 |
+ |
{ |
70 |
+ |
[REPORT_DO_DNS] = ":*** Looking up your hostname", |
71 |
+ |
[REPORT_FIN_DNS] = ":*** Found your hostname", |
72 |
+ |
[REPORT_FAIL_DNS] = ":*** Couldn't look up your hostname", |
73 |
+ |
[REPORT_DO_ID] = ":*** Checking Ident", |
74 |
+ |
[REPORT_FIN_ID] = ":*** Got Ident response", |
75 |
+ |
[REPORT_FAIL_ID] = ":*** No Ident response", |
76 |
+ |
[REPORT_IP_MISMATCH] = ":*** Your forward and reverse DNS do not match, ignoring hostname", |
77 |
+ |
[REPORT_HOST_TOOLONG] = ":*** Your hostname is too long, ignoring hostname" |
78 |
+ |
}; |
79 |
+ |
|
80 |
|
#define sendheader(c, i) sendto_one_notice((c), &me, "%s", HeaderMessages[(i)]) |
81 |
|
|
82 |
|
static dlink_list auth_pending_list; |