Ethereal-dev: [Ethereal-dev] Testing dissectors with random data

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Shaun Jackman <sjackman@xxxxxxxxx>
Date: Wed, 23 Jun 2004 09:27:24 -0700
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