Re: problem in pseudo header

"Raman Singla" <[email protected]>
Newsgroups gmane.network.ethereal.devel
Message-ID <[email protected]>
i read ur answer, see i m just using these values directly, like big/little endian or message_type.(depending on message type it will decode for that message.

in simple language - i have to get that pseudo header value in one variable in dissector while pseudo header is read through seek_read.

  ----- Original Message ----- 
  From: Ravi Kondamuru 
  To: Ethereal development 
  Sent: 2006 May 30 3:10 AM
  Subject: Re: [Ethereal-dev] problem in pseudo header


  Raman,

  Good question!! I had posted a similar problem sometime back. 
  http://www.ethereal.com/lists/ethereal-dev/200605/msg00149.html

  After reading your question I just realized that the pseudo_header has to be re-populated all over again in the seek_read function. I was not doing it. Thanks for your question, I might have found just the problem I have been struggling with for last 2 weeks. 

  thanks,
  Ravi.


  On 5/29/06, Raman Singla <[email protected]> wrote:
    hi all,

    I m writing decoder for new capture format. (dectrace). 

    I have made a pseudo_header which will carry info of frame_no, sender,receiver etc. 

    in wiretap : in read function the i m loading pseudo_header with appropiate data & i m able to use this in dissector. (for column information etc)

    the problem :
    when i m loading pseudo_header in seek_read (it is showing correct info) e.g. 
    in wtap->pseudo_header.dec_hdr->step 
    but the same information in dissector is replaced by 0
    e.g. value of pinfo->pseudo_header.dec_hdr->step is 0.

    i m unable to understand why the same info if loaded through read is raching correct at dissector when the same is loaded from seek_read is replaced by 0 somewhere between exit of seek & entry to dissector.

    regards

    Raman
    Ext - 1667

    _______________________________________________
    Ethereal-dev mailing list
    [email protected]
    http://www.ethereal.com/mailman/listinfo/ethereal-dev







------------------------------------------------------------------------------


  _______________________________________________
  Ethereal-dev mailing list
  [email protected]
  http://www.ethereal.com/mailman/listinfo/ethereal-dev

_______________________________________________
Ethereal-dev mailing list
[email protected]
http://www.ethereal.com/mailman/listinfo/ethereal-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.