Re: [Wireshark-dev] need to read three bytes of offset

2010-03-04 Thread prashanth joshi
Hi Guy Harris,   thanks for the clarification. I was writing a function to read such 3 byte values and convert them to int. Unaware that uint24 field is supported in C (I have seen uint24 field only in wireshark). Now I am using the uint24 type.   Regards, Prashanth --- On Thu, 3/4/10, Guy Har

Re: [Wireshark-dev] need to read three bytes of offset

2010-03-04 Thread prashanth joshi
Thanks Harris for the response. In our case the functional spec of the company says that the offset is a three byte field. And I am reading the packets from the pcap captured on wireshark / tcpdump.   Regards, Prashanth --- On Thu, 3/4/10, Guy Harris wrote: From: Guy Harris Subject: Re: [Wir

Re: [Wireshark-dev] need a C utility to search data in hex dump

2010-03-04 Thread prashanth joshi
Hi Jakub,   Thanks very much for the reply.   Regards, Prashanth --- On Thu, 3/4/10, Jakub Zawadzki wrote: From: Jakub Zawadzki Subject: Re: [Wireshark-dev] need a C utility to search data in hex dump To: "Developer support list for Wireshark" Date: Thursday, March 4, 2010, 6:24 AM On Thu,

[Wireshark-dev] Need help regarding interpreting a pcap file.

2010-02-22 Thread prashanth joshi
Hi all,   what is the format fo the data stored in the pcaps? I have got a requirement where in I need to read a pcap and then the contents of the packets need to be displayed on the screen. The packets have proprietary information. How do I go about this? Any suggestions would be heartily welcom

Re: [Wireshark-dev] need to read pcaps to develop a display system for the packets

2010-02-22 Thread prashanth joshi
reshark and use all the facilities available - Use tshark to export the fields of your protocol into something like PDML and use that XML for input into another application. Hope that helps Abhik. On Mon, Feb 22, 2010 at 5:29 PM, prashanth joshi wrote: Yeah. looks pretty like that for

Re: [Wireshark-dev] need to read pcaps to develop a display system for the packets

2010-02-22 Thread prashanth joshi
Yeah. looks pretty like that for now. The basic requirement would be like having a utility,  to which pcaps can be input and the out put should be our proprietary fields of the packet displayed in a graphical format(maybe using c or pyhton itself.) But I have no clue as of now about how to proc

[Wireshark-dev] regarding memory failure in wireshark

2008-11-14 Thread prashanth joshi
Hi all,   When i run the wireshark for some time to capture live traffic the wireshark runs out of memory. Is it possible to configure wireshark so as to allocate more memory for the buffers? Is there any tool that supports catpuring packets for more memory than the  wireshark?   Regards, Prasha

[Wireshark-dev] Query on HTTP

2008-10-21 Thread prashanth joshi
Hi, I need to test HTTP for such commands as PUT, GET, DELETE, POST,LOGIN, CONNECT. How do I do this? I did a little search and thought telnet could be used to test http. However I could not find any suitable information on testing HTTP. I am afraid this is not the right forum for a question on H

[Wireshark-dev] Fw: SSL decryption help needed

2008-08-05 Thread prashanth joshi
Hi Please any one help me :) --- On Tue, 8/5/08, prashanth s <[EMAIL PROTECTED]> wrote: From: prashanth s <[EMAIL PROTECTED]> Subject: [Wireshark-dev] SSL decryption help needed To: wireshark-dev@wireshark.org Date: Tuesday, August 5, 2008, 9:24 AM Hi all, In SSL, by "encryption key", it means t

[Wireshark-dev] help regarding decrypting of ssl

2008-08-05 Thread prashanth joshi
Hi all, I am currently working on writing a decoder for ssl for an internal server of our organization. Because it is internal server we have access to the private and the public keys of the certificate of the server. I am interested in knowing whether it is not at all possible to decrypt the ssl

[Wireshark-dev] help needed regarding decrypting the ssl

2008-08-01 Thread prashanth joshi
Hi all, I need to work on decrypting the ssl. I am not aupposed to use the Man in the middle attack. I need to implement the ssl decrypter on a machine that acts as a sniffer. I can have the information from the server as the requirement is for a server internal to the company The server certific

[Wireshark-dev] Fw: help needed regarding decrypting the ssl

2008-08-01 Thread prashanth joshi
--- On Fri, 8/1/08, prashanth joshi <[EMAIL PROTECTED]> wrote: From: prashanth joshi <[EMAIL PROTECTED]> Subject: help needed regarding decrypting the ssl To: wireshark-dev@wireshark.org Date: Friday, August 1, 2008, 4:28 AM Hi all, I need to work on decrypting the ssl. I am not aup

Re: [Wireshark-dev] could not open pcap stream

2008-01-16 Thread prashanth joshi
Hi Jeff, Thanks. As you said, earlier, I was trying to run the decoder on the file saved from the follow tcp stream. Now i'm able to run the decoder. Regards, Prashanth Jeff Morriss <[EMAIL PROTECTED]> wrote: prashanth joshi wrote: > First I do "follow tcp stream"

[Wireshark-dev] could not open pcap stream

2008-01-16 Thread prashanth joshi
Note: forwarded message attached. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.--- Begin Message --- Hi all, First I do "follow tcp stream" and save the file. And then I am running the decoder on that file. But I am ge

[Wireshark-dev] Can not save the trace file

2008-01-12 Thread prashanth joshi
Hi all, I am not able to save the capture file. First I open wiresahrk with the root password. And after i capture, 1) I give the filter as "http && tcp.port eq 80" 2) While saving I click on the "Displayed" 3) I save the file on desktop This I am doing in linux. How ever even thogh the f

[Wireshark-dev] Need to dissect gmail

2007-12-29 Thread prashanth joshi
Hi all, I need to dissect the GMAIL packets in the network. How ever GMAIL is not recognized by wireshark still. So how do I capture a packet carrying the gmail payload? Regards, Prashanth - Never miss a thing. Make Yahoo your homepage._

[Wireshark-dev] Is there reassembly for the IP fragments?

2007-11-30 Thread prashanth joshi
Hi all, In ethereal, in case of TCP segments we need to implement TCP reassembly issue. I am curious to know whether there is reassembly of the IP datagram at the IP layer. Because an IP datagram may be fragmented in to several fragments and we need to sniff the application level payload on the w

Re: [Wireshark-dev] Protocol development

2006-12-13 Thread prashanth joshi
ireshark allows you to create a filter (capture or display). for a plugin implementation in wireshark see the documentation http://www.wireshark.org/docs/wsdg_html_chunked/ Regards, Sebastien Tandel Selon prashanth joshi : > Hi all, > We are required to develop a protocol on ethereal. Th

[Wireshark-dev] Protocol development

2006-12-13 Thread prashanth joshi
Hi all, We are required to develop a protocol on ethereal. The packets are sent to a particular ip address and the ethereal is supposed to capture packets from that ip address. Please any one tell me how to register our protocol for that ip address. Regards, Prashanth. -

[Wireshark-dev] Regarding dissectors.

2006-12-03 Thread prashanth joshi
Hi, can we have two dissectors in same file. Allready there is a dissector in a file which is working. We need to implement a dissector ( ie new protocol ) which is to be invoked based on completely different conditions. So can we write this dissector in the same file as the first dissector.

Re: [Wireshark-dev] Query regarding pdus

2006-11-19 Thread prashanth joshi
Hi, Is it necessary to write a Udp reassembly code as we write TCP reassembly code? Regards, Prashanth. - Sponsored Link Don't quit your job - take classes online and earn your degree in 1 year. Start Today___

[Wireshark-dev] Query regarding pdus

2006-11-19 Thread prashanth joshi
Hi , I wanted to know what exactly is a PDU. Where is the length of the pdu defined in the PDU. Regards, Prashanth. - Sponsored Link Degrees for working adults in as fast as 1 year. Bachelors, Masters, Associates. Top schools_

Re: [Wireshark-dev] tvb parameter

2006-11-09 Thread prashanth joshi
to understand. Regards, Prashanth.  Guy Harris <[EMAIL PROTECTED]> wrote: On Nov 9, 2006, at 1:41 PM, prashanth joshi wrote:> We have written parsing code for the "Data Record Transfer Request".> The code wroks fine for some of the trace files we have. But for one > trac

Re: [Wireshark-dev] Issue in Data record Transfer Request code...

2006-11-09 Thread prashanth joshi
kickat: den 9 november 2006 22:43Till: Developer support list for WiresharkÄmne: [Wireshark-dev] Issue in Data record Transfer Request code...   prashanth joshi <[EMAIL PROTECTED]> wrote: Hi,We have written parsing code for the "Data Record Transfer Request".The code wrok

[Wireshark-dev] Issue in Data record Transfer Request code...

2006-11-09 Thread prashanth joshi
prashanth joshi <[EMAIL PROTECTED]> wrote:Hi, We have written parsing code for the "Data Record Transfer Request". The code wroks fine for some of the trace files we have. But for one trace file which has captured GTP packets over UDP our code is not working correct. If

Re: [Wireshark-dev] tvb parameter

2006-11-09 Thread prashanth joshi
Hi, We have written parsing code for the "Data Record Transfer Request". The code wroks fine for some of the trace files we have. But for one trace file which has captured GTP packets over UDP our code is not working correct. If we run ethereal without our code addition it shows around 560 packet

[Wireshark-dev] tvb parameter

2006-11-09 Thread prashanth joshi
Hi, The tvbuff_t * tvb parameter passed to the dissect_gtp :   Does it contain only the gtp packet? Or the buffer tvb contains the data corresponding to all the protocols including the gtp protocol.. Regards, Prashanth Everyone is raving about the all-new Yahoo! Mail beta._

Re: [Wireshark-dev] Problem due to segmentation of GTP packet.....

2006-11-06 Thread prashanth joshi
Hi,  one correction. It is not 5 CDR's in our GTP packet, but only cdr and within that there are 5 service records. 4 service records are displayed and the fifth service record is not displayed due to segmentation done by TCP. Regards, Prashanth.prashanth joshi <[EMAIL PROTECTED]> wrote:Hi al

[Wireshark-dev] Problem due to segmentation of GTP packet.....

2006-11-06 Thread prashanth joshi
Hi all, Please any one solve my problem. Every body here are struggling to solve it, but no body is getting the solution. Regards, Prashanth.  Our trace file contains 5 GCDR 's  within the same GTP packet. The first four CDR's are correctly parsed. How ever the fifth is not at all displaye

[Wireshark-dev] Problem due to segmentation...

2006-11-05 Thread prashanth joshi
Hi, How are you guys... First I would like to thank u all for the tremendous support that you have all shown in the development activity.   Our trace file contains 5 GCDR 's  within the same GTP packet. The first four CDR's are correctly parsed. How ever the fifth is not at all displayed. It w

[Wireshark-dev] which one is better? locally allocated memory or the dynamically allocated.........

2006-10-31 Thread prashanth joshi
Hi, Suppose we want to copy the contents from the tvb in to a buffer. In that case is it better to use the array defined within the function or is it better to use a dynamically allocated array to copy the contents from the tvb. Can I free a memory allocated by g_malloc ( ) function, after the it

[Wireshark-dev] Is using a locally defined (ie defined in the function) memory , to store the structure elements in tvb --safer?

2006-10-30 Thread prashanth joshi
friends tomake this translation for you.Thanx,JaapOn Sat, 28 Oct 2006, prashanth joshi wrote:> Hi,> Suppose the tvb contains a structure and we are supposed to add the structure elements one by one in to the display tree.> Suppose the structure has the following elements:> char> int>

Re: [Wireshark-dev] Fetching of Structure from the tvb....

2006-10-29 Thread prashanth joshi
ohs() and friends tomake this translation for you.Thanx,JaapOn Sat, 28 Oct 2006, prashanth joshi wrote:> Hi,> Suppose the tvb contains a structure and we are supposed to add the structure elements one by one in to the display tree.> Suppose the structure has the following elements:> char> in

[Wireshark-dev] Fetching of Structure from the tvb....

2006-10-28 Thread prashanth joshi
Hi, Suppose the tvb contains a structure and we are supposed to add the structure elements one by one in to the display tree. Suppose the structure has the following elements: char int char int. Now my thinking is , We can not add directly the first item ie char item in to the display tre

[Wireshark-dev] How to extract guint64 data

2006-10-26 Thread prashanth joshi
Hi, the function to extract the data are, tvb_get_uint8,  tvb_get_ntohs and ( guint32 ) tvb_get_ntohl. How to extract a 64 bit data. ie guint64 data. Also I wanted to know whether adding a local variable to the display tree has got the chances of making dangling reference occur. ( durin

Re: [Wireshark-dev] Query regarding malloc and ep_alloc

2006-10-10 Thread prashanth joshi
Hi , can i use malloc to allocate memory in ethereal code ? What i want to do is to allocate memory and then fill in the contents and then add it to the display tree. If I use malloc, will not it cause problems like platform dependence and memory leaks? I used ep_alloc( ) but i'm getting err

[Wireshark-dev] Query regarding malloc and ep_alloc

2006-10-10 Thread prashanth joshi
Hi , can i use malloc to allocate memory in ethereal code ? What i want to do is to allocate memory and then fill in the contents and then add it to the display tree. If I use malloc, will not it cause problems like platform dependence and memory leaks? I used ep_alloc( ) but i'm getting error "

[Wireshark-dev] Errors in decoder function.

2006-10-03 Thread prashanth joshi
    Hi,     the following are the statements to manipulate the tvb data in my code:   1)  void proto_register_gtp(void){   static  hf_register_info hf_gtp[] = {    { &hf_record_type,  {" Record Type", "RecordType.val",FT_UINT32, BASE_DEC, NULL,0,"", HFILL }}, ..

[Wireshark-dev] Fwd: ethereal hangs.

2006-09-26 Thread prashanth joshi
Note: forwarded message attached. Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. --- Begin Message --- Hi I wrote and then tried to run the following code. But the ethereal is hanging. Please any one me tell what may be wrong with it. Obviously my intent

[Wireshark-dev] Code addition Point in GTP

2006-09-25 Thread prashanth joshi
Note: forwarded message attached. Stay in the know. Pulse on the new Yahoo.com. Check it out. --- Begin Message --- Hi, I need to parse GTP' packet consisting in its message field the GCDR and then SRecord. Srecord is the record defined by us. Now obviously I need to add code to the ethereal

Re: [Wireshark-dev] Query regarding GTP protocol

2006-09-24 Thread prashanth joshi
Hi, I need to parse GTP' packet consisting in its message field the GCDR and then SRecord. Srecord is the record defined by us. Now obviously I need to add code to the ethereal to do this. I plan to check for the type fields in the pay load of the packet myself and then call the corresponding de

Re: [Wireshark-dev] Query regarding GTP protocol

2006-09-15 Thread prashanth joshi
rated. Regards, Prashanth Jaap Keuter <[EMAIL PROTECTED]> wrote: On Fri, 15 Sep 2006, prashanth joshi wrote:> Hi ,> I wanted to print a message in the decode_gtp_cause function. But i did not get any such result in the ethereal display. Please tell me what may be the reason.>

[Wireshark-dev] Query regarding GTP protocol

2006-09-15 Thread prashanth joshi
Hi , I wanted to print a message in the decode_gtp_cause function. But i did not get any such result in the ethereal display. Please tell me what may be the reason.the following is the function : static int decode_gtp_cause(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree) {

[Wireshark-dev] Query regarding a decoder function

2006-09-12 Thread prashanth joshi
prashanth joshi <[EMAIL PROTECTED]> wrote:Hi, In the following function, what is pinfo _U_  (pinfo followed by a blank space and then _U_? I am seeing such kind of variable for the first time. Can i use instead packet_info  * ptr as a formal argument in decode_gtp_chrg_id? And

Re: [Wireshark-dev] How to add a string to the tree

2006-09-12 Thread prashanth joshi
u a compiler error if youtried.2, there are plenty of examples on how to use hf_fields in the code.please read the other similar dissectors and also the developers guidethat DOES explain many of these questions.Look at other dissectors that do similar things.On 9/7/06, prashanth joshi <[EMAIL PRO

[Wireshark-dev] How to add a string to the tree

2006-09-08 Thread prashanth joshi
would anyway give you a compiler error if youtried.2, there are plenty of examples on how to use hf_fields in the code.please read the other similar dissectors and also the developers guidethat DOES explain many of these questions.Look at other dissectors that do similar things.On 9/7/06, prashanth

Re: [Wireshark-dev] query regarding gtp_handlefuntionanddecoderfunction.

2006-09-07 Thread prashanth joshi
would anyway give you a compiler error if youtried.2, there are plenty of examples on how to use hf_fields in the code.please read the other similar dissectors and also the developers guidethat DOES explain many of these questions.Look at other dissectors that do similar things.On 9/7/06, prashanth

Re: [Wireshark-dev] query regarding gtp_handlefuntionanddecoderfunction.

2006-09-07 Thread prashanth joshi
Hi Anders, thanks. But, as u know i've been trying to write a deceder function So it goes something like this: My_decoder_fun(..) { proto_tree  *my_tree; proto_item  *te;     te = proto_tree_add_text(tree, tvb, offset, 1, val_to_str(MY_EXT_VAL, gtp_val, "Unknown message")

Re: [Wireshark-dev] query regarding gtp_handle funtionanddecoderfunction.

2006-09-06 Thread prashanth joshi
Hi Anders, how r u... I have a query Anders. If we consider for example the following statement, proto_tree_add_item(ext_tree_priv_ext, hf_gtp_ext_val, tvb, offset+5, length-2, FALSE);   So length-2 bytes of data is added in to tree ,starting from the location number ofset + 5 of tvb. My que

Re: [Wireshark-dev] query regarding gtp_handle funtionanddecoderfunction.

2006-09-06 Thread prashanth joshi
Hi Anders ,  thanks very much. Your solutions have really been very much informative. regards, Prashanth"Anders Broman (AL/EAB)" <[EMAIL PROTECTED]> wrote: Hi, The function val_to_str(GTP_EXT_RAI, gtp_val, "Unknown message")); searches the svalue_string gtp-val for a match to GTP_EXT_RA

Re: [Wireshark-dev] query regarding gtp_handle funtion anddecoderfunction.

2006-09-06 Thread prashanth joshi
Hi Anders, thanks. Now the things are much clearer. Now i understand why the return value from the decoder function is 3 + length. But yeah in    val_to_str(GTP_EXT_XXX, gtp_val, "UNKNOWN") , is the string "UNKNOWN" concatenated with GTP_EXT_XXX and returned ? regards, Prashanth."Anders Broman

Re: [Wireshark-dev] query regarding gtp_handle funtion and decoderfunction.

2006-09-05 Thread prashanth joshi
Hi Anders, Thanks for the reply. But I'm affraid i did not put the whole thing very clearly. I should have been more specific. Actually i need to have in the define statement the following : #define  GTP_EXT_XXX    0x7f /* Satement 1 */   and then the  ( extension field , f

[Wireshark-dev] query regarding gtp_handle funtion and decoder function.

2006-09-05 Thread prashanth joshi
Hi all, I'm adding a decoder for the gtp protocol. My query is : 1 ) So gtp_handle will do the dissection. It refers to the file packet_gtp.c . Finds the hex value for example in the following statement : #define  GTP_EXT_XXX  0x8f  and then if its value in the header matches 0x8f, ref