Ethereal-dev: Re: [ethereal-dev] Sending packets (patch)

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

From: Christian Brunner <chb@xxxxxx>
Date: Fri, 15 Jan 1999 18:54:04 +0100 (CET)
On Tue, 12 Jan 1999, Gilbert Ramirez Jr. wrote:

> I haven't looked very closely at your code yet; is it pretty easy to stick
> in a different data-link type so that (eventually) token-ring packets can
> be generated as well as ethernet? (like the switch statement in
> dissect_packet() )?

It isn't to complicated. Every header is implemented as a widget,
with some common access functions. Just look at gen-rfc1042-w.c. 

Which RFC is the one for token-ring encapsulation ? (I thought that you
can use RFC1042 packets on a token-ring network.)

Perhaps I should define some more common functions and clean up a bit,
then creating new packet types should be even more simple. 

Christian