Ethereal-dev: [Ethereal-dev] Patch to packet-http.c - dissect OpenPGP HKP (HTTP, on port 11371

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, 31 May 2004 18:50:44 +0200
This patch dissects HKP protocol (draft published, nothing more), on port 11371.
It's actually HTTP, so I'm just adding this port to packet-http.c


--- packet-http.c	2004-05-31 18:48:58.000000000 +0200
+++ packet-http.ynv.c	2004-05-31 18:48:26.000000000 +0200
@@ -114,7 +114,7 @@
 #define TCP_PORT_PROXY_HTTP		3128
 #define TCP_PORT_PROXY_ADMIN_HTTP	3132
 #define TCP_ALT_PORT_HTTP		8080
-
+#define TCP_PORT_HKP			11371
 /*
  * SSDP is implemented atop HTTP (yes, it really *does* run over UDP).
  */
@@ -1683,6 +1683,7 @@
 	dissector_add("tcp.port", TCP_ALT_PORT_HTTP, http_handle);
 	dissector_add("tcp.port", TCP_PORT_PROXY_HTTP, http_handle);
 	dissector_add("tcp.port", TCP_PORT_PROXY_ADMIN_HTTP, http_handle);
+	dissector_add("tcp.port", TCP_PORT_HKP, http_handle);
 
 	/*
 	 * XXX - is there anything to dissect in the body of an SSDP