From: <li...@us...> - 2004-02-06 19:22:11
|
Update of /cvsroot/iptables-p2p/iptables-p2p/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19076 Modified Files: match_http.c Log Message: Support for FastTrack passive mode Index: match_http.c =================================================================== RCS file: /cvsroot/iptables-p2p/iptables-p2p/kernel/match_http.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- match_http.c 6 Feb 2004 19:00:33 -0000 1.12 +++ match_http.c 6 Feb 2004 19:19:26 -0000 1.13 @@ -63,7 +63,10 @@ #define MM_GET 6 { STRING_MATCH("GET /") }, -#define MM_HTTP11 7 +#define MM_GIVE 7 + { STRING_MATCH("GIVE ") }, + +#define MM_HTTP11 8 { STRING_MATCH("HTTP/1.1") }, { NULL, 0 } @@ -179,7 +182,9 @@ HM(HM_X_P2P_MESSAGE)) return IPT_P2P_PROTO_KAZAA; - /* TODO: Add support for PUSH command */ + /* Kazaa passive mode (TODO: Check if methos GIVE is used anywhere else) */ + if (MM(MM_GIVE)) + return IPT_P2P_PROTO_KAZAA; /* * Gnutella |