Ethereal-dev: Re: [Ethereal-dev] match_port and match_string in packet_info

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

From: "Alok" <alokdube@xxxxxxxxxx>
Date: Tue, 28 Dec 2004 18:30:16 -0800
I am not sure I understood you correctly, but I might as well venture a
guess

if you use the tcp.port and use the ID_VALUE of 771, it will match port 771

you may also want to look at the pinfo structure, specifically at:

pinfo->src, pinfo->dst, pinfo->ptype,pinfo->srcport, pinfo->destport

I think it is safe to read those values when you want to check things,
(someone please correct me if i am wrong)
-hth

----- Original Message ----- 
From: "Nina Pham" <nina@xxxxxxxxxxx>
To: "Ethereal development" <ethereal-dev@xxxxxxxxxxxx>
Sent: Tuesday, December 28, 2004 4:01 PM
Subject: [Ethereal-dev] match_port and match_string in packet_info


> how do I use match_port and match_string in packet_info structure? Is
> match_port ID_VALUE specified in dissector_add function?
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev