#define MAGICIRCSTRING ".quakenet.org 451 * :Register first.\r\n"
#define MAGICIRCSTRINGLENGTH 38
-#define PSCAN_MAXSCANS 50
+#define MAGICROUTERSTRING "\r\nServer: Mikrotik HttpProxy\r\n"
+#define MAGICROUTERSTRINGLENGTH 30
+
+#define PSCAN_MAXSCANS 100
#define PSCAN_READBUFSIZE (MAGICSTRINGLENGTH * 2)
#define SSTATE_CONNECTING 0
#define STYPE_CISCO 4
#define STYPE_DIRECT 5 /* not sure what this is so I'm leaving it alone */
#define STYPE_DIRECT_IRC 6
+#define STYPE_ROUTER 7
#define SOUTCOME_INPROGRESS 0
#define SOUTCOME_OPEN 1
time_t lastscan;
foundproxy *proxies;
int glineid;
+ time_t lastgline;
unsigned char marker;
#if defined(PROXYSCAN_MAIL)
sstring *lasthostmask; /* Not saved to disk */
void freefoundproxy(foundproxy *fpp);
pendingscan *getpendingscan();
void freependingscan(pendingscan *psp);
-void sfreeall();
extrascan *getextrascan();
void freeextrascan(extrascan *esp);
void handlelistensocket(int fd, short events);
/* proxyscanconnect.c */
-int createconnectsocket(long ip, int socknum);
+int createconnectsocket(struct irc_in_addr *ip, int socknum);
/* proxyscandb.c */
void loggline(cachehost *chp, patricia_node_t *node);