wireshark-dev October 2010 archive
Main Archive Page > Month Archives  > wireshark-dev archives
wireshark-dev: Re: [Wireshark-dev] I want to print the string tv

Re: [Wireshark-dev] I want to print the string tvb->real_data on the ubuntu terminal

From: 刘昆 <liukunmeister_at_nospam>
Date: Tue Oct 26 2010 - 03:46:29 GMT
To: Developer support list for Wireshark <wireshark-dev@wireshark.org>

于 2010年10月26日 06:39, Guy Harris 写道:
> On Oct 24, 2010, at 2:25 AM, 刘昆 wrote:
>
>
>> tvb->real_data is a pointer.And I guess the contents of this pointer
>> should be the payload of the packet just as
>>
>> "const guint8 *) 0x8b53042 "GET http://www.baidu.com/ HTTP/1.1\r\nHost:
>> www.baidu.com\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
>> rv:1.9.2.11) Gecko/20101013 Linux Mint/9 (Isadora)
>> Firefox/3.6.11\r\nAccept: text/html,applic"...
>>
> Yes, but there's no guarantee that the payload of the packet is printable text.
>
> *Even if the packet is an HTTP request or response*, there's no guarantee of that, as an HTTP GET response might contain raw binary data (consider what happens if you fetch an image).
> ___________________________________________________________________________
> Sent via: Wireshark-dev mailing list<wireshark-dev@wireshark.org>
> Archives: http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe
In fact ,all I need to print is just the URL or IP address in the
payload.I think the URL or IP address should be printable? So can I
fetch the URL to print? And how?
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe