[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ethereal-dev
Subject:    Re: [Ethereal-dev] Testing dissectors with random data
From:       Shaun Jackman <sjackman () telus ! net>
Date:       2004-06-25 5:34:09
Message-ID: 200406242234.09286.sjackman () telus ! net
[Download RAW message or body]

As a real hack, I found a nice alternative. I fired up an ssh  
connection, which generates piles of pseudo-random binary data, 
and told Ethereal to decode it as SIR. It put my dissector 
through the torture test.

Cheers,
Shaun


On Wed June 23, 2004 09h27, Shaun Jackman wrote:
> I'd like to test my dissector against random data to see if
> it behaves properly. What's the easiest way to generate a
> "random" packet dump, and then specify that it be decoded as
> xxx (SIR in my case). To sum it up in a quick command line...
>
> $ dd count=1 if=/dev/urandom of=foo.pkt
> $ ethereal --decode-as=sir foo.pkt
>
> Thanks,
> Shaun

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@ethereal.com
http://www.ethereal.com/mailman/listinfo/ethereal-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic