Comment # 21
              on bug 8089
              from  Evan Huus
        (In reply to comment #20)
> /* if it's a packet we haven't seen yet */
> if (!pinfo->fd->flags.visited) {
> 
>   /* find an existing conversation or create a new one as necessary */
>   conversation = find_or_create_conversation();
> 
>   /* get the data for this conversation */
>   data = ""
> 
>   /* if this conversation doesn't have any data yet, this is the first packet
>    * in the conversation, so create a new structure for it and add it to
>    * the conversation data */
>   if (data == NULL) {
>     data = ""
>     conversation_add_proto_data();
>   }
> 
>   /* now that data is guaranteed to exist, do whatever logic is necessary
>    * to add the current frame to it's stored information (appending it to a
>    * list or what have you) */
>   update_data_for_new_packet();
> }
Note that this code won't actually compile or run - I didn't bother filling in
any necessary casts, function parameters, etc. but it should give you the idea.
         
      
      
      You are receiving this mail because:
      
      
          - You are watching all bug changes.