Wireshark mailing list archives
Re: How to get the packet 's number in my company protocol ?
From: Guy Harris <guy () alum mit edu>
Date: Tue, 12 Apr 2016 19:52:14 -0700
On Apr 12, 2016, at 7:29 PM, 季红 <jihong_seu () 163 com> wrote:
But the struct packet_info did not own the filed number ! What can I do?
You can use the *correct* name for the field: printf("[%s: %d], packet seq:[%d]\n", __FILE__, __LINE__, pinfo->num); or, if you're using Wireshark 2.0 or 1.12 or something other than the current master branch: printf("[%s: %d], packet seq:[%d]\n", __FILE__, __LINE__, pinfo->fd->num); ___________________________________________________________________________ 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:
- How to get the packet 's number in my company protocol ? 季红 (Apr 12)
- Re: How to get the packet 's number in my company protocol ? Guy Harris (Apr 12)