Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] How to get the packet 's number in my company protocol ?

From: 季红 <jihong_seu@xxxxxxx>
Date: Wed, 13 Apr 2016 10:29:58 +0800 (CST)
Dear Sir:

I 'm dissecting my company protocol.    A reason to debug some errors.
So I need to get the packet number  by the struct packet_info. My code slice:

static void
dissect_Uu_Data( proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _U_, guint8 offset, guint32 data_len, guint8 channel_type )
{
printf("[%s: %d], packet seq:[%d]\n", __FILE__, __LINE__, pinfo->number);


But the struct packet_info did not own the filed number !  What can I do?  

                                                                                                                                                                                                            jihong

                                                                                                                                                                                                            2016.4.13