Ethereal-dev: [Ethereal-dev] Little problem understanding registration for tcp.port

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

Date: Mon, 26 Sep 2005 13:42:07 +0200
Hi,

currently, I'm using 

dissector_add("tcp.srcport", MY_PORT_USED, my_prot_handle);

in the "proto_reg_handoff" function. I thought this would cause my dissector to be called for appropriate data send via TCP on both source and destination port number MY_PORT_USED. But only packets sent with this destination port are correctly identified. What am I doing wrong? I'm using 0.10.12 on WindowsXP.

Thanks,
Lars