]> jfr.im git - irc/quakenet/newserv.git/blobdiff - proxyscan/proxyscan.h
Implement notice flag +G for automated gline messages.
[irc/quakenet/newserv.git] / proxyscan / proxyscan.h
index 6f649c674e10e3fc4d09b341bcf0efffd45e8489..8395e891e261baa33069eac04dda9103327acc39 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
@@ -150,7 +154,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);