[Wireshark-dev] Using regular expression match as custom column

2011-12-13 Thread William
Hello,

With Wireshark, I can't seem to be able to do either of these:
1. Export to file the exact contents of the columns that are displayed and
nothing more
2. Create a custom column that contains the results of a matched regular
expression, e.g.:

tcp.data starts with HEAD /reports/packages/rg.wsh?notification_who=
n...@isp.netnotification_cc=

Regular expression of interest in this case: notification_who=([^]+)
This would display the following data: n...@isp.net

I actually have other information to display, but the mechanism I'm asking
about would be very powerful, and I have seen nothing about it or anything
similar in your wiki.

Sincerely,
William
___
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-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] for error on verify tools installed for Wireshark development

2011-12-13 Thread Song, Yuyin
Ed,

Thanks. You are right. I just type the command using keyboard, and it is 
working now.

Eugene
 

-Original Message-
From: wireshark-dev-boun...@wireshark.org 
[mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Ed Beroset
Sent: Thursday, December 08, 2011 12:53 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] for error on verify tools installed for Wireshark 
development

Song, Yuyin wrote:

I am new to Whireshark development.  I have installed all tools and Wireshark 
development version. When I verify all tools installed using command nmake –f 
Makefile.nmake verify_tools.
I got the error message namke: fatal error U1073: don't konw hpw to make '-f' 
.  What is the problem? how to fix it? Please advise. 

I suspect that the problem could be that although they look the same, you're 
entering the unicode character for '-'  (hex value e28093) rather than the 
ASCII character '-' (hex value 2d).  I was able to test this hypothesis on my 
machine by entering a long dash in Word and then cutting and pasting that 
into the command you mention.  That's the only way I can think of to get the 
error you describe.  I hope that helps.

Ed
___
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-requ...@wireshark.org?subject=unsubscribe
___
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-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Simplifying (and fixing) tvbuff [Long]

2011-12-13 Thread Bill Meier

On 12/12/2011 4:55 PM, Bill Meier wrote:

Summary
---

I've recently been digging into the tvbuff code.

snip

... and then describe how tvbuff can be simplified.


 snip

I think the long description boils down to the following:

Consider the collection of tvbs (chain) as a stack of tvbs.

packet.c pushes the initial tvb onto the stack then calls next 
dissector; After the dissection is complete, the stack is eventually 
free'd via a call to tvb_free_chain in  epan_dissect_cleanup.



A dissector:
- can add new tvbs (real, subset, composite) to the stack handed to it;
  (Subset and Composite tvbs should reference only tvbs which are
   towards the beginning of the same stack).
- must not save a pointer to a tvb from that stack (handed to it)
  for use when  dissecting another frame (since a
  higher level function may very well free the stack);
- can create its own tvb stack which the dissector is free to manage
  as desired.
___
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-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Using regular expression match as custom column

2011-12-13 Thread Chris Maynard
William wnatter@... writes:

 Hello,With Wireshark, I can't seem to be able to do either of these:
 1. Export to file the exact contents of the columns that are displayed and
nothing more

You should be able to do this using 'File - Export - File - as Plain Text
file ...', then deselect the Packet details box.  Or you could try to export to
CSV. 

 2. Create a custom column that contains the results of a matched regular
expression

This is not currently supported.


___
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-requ...@wireshark.org?subject=unsubscribe


[Wireshark-dev] how to fix Wiki login problem

2011-12-13 Thread Ed Beroset
Sorry if this is the wrong place to ask, but the right place to ask is not 
obvious to me.  I've done a number of edits on the Wireshark wiki (most 
recently in October) and intended to do a few more today, but found that my 
account won't work any longer and the various password recovery options do not 
appear to be working for me either.  

Any ideas as to how to address this problem?

Ed
___
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-requ...@wireshark.org?subject=unsubscribe


[Wireshark-dev] buffer to tvb

2011-12-13 Thread Andrew Kampjes
I've got a buffer of guint8s in a dissector that I'd like to turn into a tvb 
that I can then use as a parameter to add_new_data_source(). Is that 
possible/how?

Andrew.

--
Andrew Kampjes
Junior Software Developer - Endace

andrew.kamp...@endace.com mailto:andrew.kamp...@endace.com
www.endace.com;http://www.endace.com/ 
LinkedIn;http://www.linkedin.com/companies/endace follow us on 
Twitterhttp://twitter.com/endace

power to see all

This email (including any attachments) is intended to be read by the named 
recipient(s) only. If the email wasn't addressed to you, you mustn't use, 
distribute or copy any part of it. If you've received it in error please delete 
it (along with any attachments) and inform us of the error. Emails aren't 
secure and can't be guaranteed to be error free as they can be intercepted, 
amended, lost or destroyed. It's your responsibility to check this email and 
any attachments for viruses. These risks are deemed accepted by everyone that 
communicates with us by email.

___
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-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] buffer to tvb

2011-12-13 Thread Bill Meier

On 12/13/2011 11:37 PM, Andrew Kampjes wrote:

I've got a buffer of guint8s in a dissector that I'd like to turn
into  a tvb that I can then use as a parameter to add_new_data_source().

  Is that possible/how?


Andrew.




Basically:
   [allocate and fill buffer: data_p = ]
   my_tvb = tvb_new_real_data(data_p, data_length, data_length)
   add_new_data_source(pinfo, my_tvb, Title);
   
   tvb_free(my_tvb);
   [free buffer: ]


It's possible to set a callback to free storage when the tvb is free'd.

See tvbuff.h


___
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-requ...@wireshark.org?subject=unsubscribe