On Apr 12, 2016, at 7:29 PM, 季红 <[email protected]> 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 <[email protected]>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe