Ethereal-dev: [Ethereal-dev] patch to packet-http.c (0.9.16) - support for ShoutCast's 'ICY' r

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Yaniv Kaul <ykaul@xxxxxxxxxxxx>
Date: Mon, 19 Jan 2004 17:22:23 +0200
Please see attached. It adds 'ICY' as a legitimate reply to HTTP GET request of Shoutcast clients.

Diff'ed against 0.916, the last Win32 build I was able to compile :-(
--- ../ethereal-0.9.16/packet-http.c	2003-11-02 19:15:22.000000000 +0200
+++ packet-http.c	2004-01-19 17:19:52.957809600 +0200
@@ -672,8 +672,11 @@
 				*type = HTTP_REQUEST;
 				isHttpRequestOrReply = TRUE;
 			}
+			else if (strncmp(data, "ICY", index) == 0) {
+				*type = HTTP_RESPONSE;
+				isHttpRequestOrReply = TRUE;
+			}
 			break;
-
 		case 4:
 			if (strncmp(data, "COPY", index) == 0 ||
 			    strncmp(data, "HEAD", index) == 0 ||