Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Evan Huus
On Sun, Jun 22, 2014 at 7:34 PM, Jakub Zawadzki wrote: > On Sun, Jun 22, 2014 at 05:45:45PM -0400, Evan Huus wrote: > > On Sun, Jun 22, 2014 at 5:25 PM, Jakub Zawadzki < > darkjames...@darkjames.pl> > > wrote: > > > > > On Sun, Jun 22, 2014 at 05:07:19PM -0400, Evan Huus wrote: > > > > The implem

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Jakub Zawadzki
On Sun, Jun 22, 2014 at 05:45:45PM -0400, Evan Huus wrote: > On Sun, Jun 22, 2014 at 5:25 PM, Jakub Zawadzki > wrote: > > > On Sun, Jun 22, 2014 at 05:07:19PM -0400, Evan Huus wrote: > > > The implementation is a bit of a hack in that stateless dissection still > > > does all the stateful work, i

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Evan Huus
On Sun, Jun 22, 2014 at 6:43 PM, Kurt Knochner < ws.dev.l...@nospam.knochner.com> wrote: > > Zitat von Joerg Mayer : > > > What I am thinking about is something like keeping state but only for the >> last 1000 (insert your favourite number here) packets and only *then* >> throwing it away. Or is

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Kurt Knochner
Zitat von Joerg Mayer : What I am thinking about is something like keeping state but only for the last 1000 (insert your favourite number here) packets and only *then* throwing it away. Or is this unrealistic? I think that could create 'strange' side effects that are not easy to understan

[Wireshark-dev] proto_tree_add_subtree[_format]

2014-06-22 Thread mmann78
In an effort to further remove proto_tree_add_text calls from the Wireshark source, I've created proto_tree_add_subtree and proto_tree_add_subtree_format. The use case is to combine proto_tree_add_text + proto_item_add_subtree into a single call when the intent of the dissector is to create a

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Evan Huus
On Sun, Jun 22, 2014 at 6:05 PM, Joerg Mayer wrote: > On Sun, Jun 22, 2014 at 05:07:19PM -0400, Evan Huus wrote: > > After Kurt's recent post I dug up an old patch I'd played with and > cleaned > > it up a bit. It still needs some work (documentation at the very least) > but > > [1] should add a

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Joerg Mayer
On Sun, Jun 22, 2014 at 05:07:19PM -0400, Evan Huus wrote: > After Kurt's recent post I dug up an old patch I'd played with and cleaned > it up a bit. It still needs some work (documentation at the very least) but > [1] should add a -Z option to tshark which turns on "stateless" dissection. > You l

[Wireshark-dev] Cryptoshark?

2014-06-22 Thread Ole André Vadla Ravnås
Hi all, Was just wondering if there could be upstream interest in integrating API-level tracing in Wireshark? (As an addition to network-level sniffing.) Here's an example app: https://medium.com/@oleavr/build-a-debugger-in-5-minutes-1-5-51dce98c3544 It would be relatively straight-forward to hoo

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Evan Huus
On Sun, Jun 22, 2014 at 5:25 PM, Jakub Zawadzki wrote: > Hi Evan, > > On Sun, Jun 22, 2014 at 05:07:19PM -0400, Evan Huus wrote: > > The implementation is a bit of a hack in that stateless dissection still > > does all the stateful work, it just throws it away after each packet (so > > stateless

Re: [Wireshark-dev] Stateless Dissection

2014-06-22 Thread Jakub Zawadzki
Hi Evan, On Sun, Jun 22, 2014 at 05:07:19PM -0400, Evan Huus wrote: > The implementation is a bit of a hack in that stateless dissection still > does all the stateful work, it just throws it away after each packet (so > stateless is actually slightly slower than stateful) but it seems to work > in

[Wireshark-dev] Stateless Dissection

2014-06-22 Thread Evan Huus
After Kurt's recent post I dug up an old patch I'd played with and cleaned it up a bit. It still needs some work (documentation at the very least) but [1] should add a -Z option to tshark which turns on "stateless" dissection. You lose reassembly and all that, but you should get no memory growth at

Re: [Wireshark-dev] Q: tshark memory usage

2014-06-22 Thread Kenichi Okuyama
Hi Kurt, This might not be of help to you, but just in case. I did had similar issue while I was running wireshark/tshark on both 32bit Linux, 32bit Windows XP machine. However, after I moved to both 64bit Linux, 64bit Windows7, I have not faced this issue anymore. It is ture that I do have many

[Wireshark-dev] Q: tshark memory usage

2014-06-22 Thread Kurt Knochner
Hi, I have a question regarding the memory usage of tshark, if it is running for a very long time. Basically, I expected tshark to crash after some time, due to the known 'out-of-memory' problem, but a user on ask.wireshark.org claims that this does not happen, even after running tshark c