Wireshark-dev: Re: [Wireshark-dev] Create a new tvb from a bit offset in the currenttvb
From: "Anders Broman" <[email protected]>
Date: Fri, 9 Nov 2007 18:48:05 +0100
new_octet_aligned_subset_bits() in packet-per.c may be what you want.
If so perhaps it should be made a tvbuff function.
Best regards

-----Ursprungligt meddelande-----
Från: [email protected]
[mailto:[email protected]] För Michael Lum
Skickat: den 9 november 2007 18:11
Till: Developer support list for Wireshark
Ämne: [Wireshark-dev] Create a new tvb from a bit offset in the currenttvb


does anyone know if there is code or an api call in Wireshark
that will allow me to create a new tvb subset a la


but from a bit offset?

I want to create a subset of a certain length in octets starting
with the last 3 bits of the octet I'm currently processing.


create subset of 50 octets from the 20th octet and 5th bit of
my current tvb 

Thanks in advance!

Michael Lum                   Principal Software Engineer
4600 Jacombs Road             +1.604.276.0055
Richmond, B.C.
Canada V6V 3B1
UTStarcom Canada, Inc.
CDMA Division
Wireshark-dev mailing list
[email protected]