Wireshark mailing list archives

How to get the packet 's number in my company protocol ?


From: 季红 <jihong_seu () 163 com>
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

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: