Ethereal-dev: SV: [Ethereal-dev] [patch] eDonkey and BitTorrent dissectors

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

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Mon, 19 Dec 2005 07:52:52 +0100
Checked in.

>eth-bt-2.diff
>-------------
>
>This is more of a suggestion/request than a polished patch. The
>current BT dissector installs a heuristic dissector. If this fails to
>match, for example because your capture file doesn't contain the start
>of the TCP conversation, it is impossible to force ethereal to dissect
>as BT regardless.

>By registering a normal dissector as well as the heuristic one,
>BitTorrent shows up on the Decode As... list so you can manually
>override its mistake.

>This patch keeps the heuristic registration - I'm not sure what
>effects having both registered at the same time may have, but it
>didn't seem to cause me any problems. I've also put in, but left
>#ifdef'd out, the default set of TCP ports that BT tends to run over.
>   
>John
>-- 
>Dead stars still burn

You might want to change this to use a preference setting for TCP ports used
by BitTorrent see for example packet-rtsp.c. Set the default preference(s)
to zero.

Brg
Anders