Wireshark-dev: Re: [Wireshark-dev] Create a new tvb from a bit offset in the currenttvb
From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Fri, 9 Nov 2007 18:48:05 +0100
Hi,
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
Anders

-----Ursprungligt meddelande-----
Från: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] 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

Hello,

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

tvb_new_subset()

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.

Example:

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
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev