]> jfr.im git - irc/quakenet/newserv.git/blobdiff - proxyscan/proxyscan.h
CHANSERV: remove accidental sendemail from SETEMAIL command.
[irc/quakenet/newserv.git] / proxyscan / proxyscan.h
index 18a2d2cbeb004c3abb4ee6bea7cf3b3eb7e577f9..627d7462e6ebfc538c62a5ddc907391c0bdec449 100644 (file)
 #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
@@ -27,6 +30,7 @@
 #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
@@ -70,6 +74,7 @@ typedef struct cachehost {
   time_t lastscan;
   foundproxy *proxies;
   int glineid;
+  time_t lastgline;
   unsigned char marker;
 #if defined(PROXYSCAN_MAIL)
   sstring *lasthostmask; /* Not saved to disk */
@@ -140,7 +145,6 @@ foundproxy *getfoundproxy();
 void freefoundproxy(foundproxy *fpp);
 pendingscan *getpendingscan();
 void freependingscan(pendingscan *psp);
-void sfreeall();
 extrascan *getextrascan();
 void freeextrascan(extrascan *esp);
 
@@ -149,7 +153,7 @@ int openlistensocket(int portnum);
 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);