Ethereal-dev: Re: [ethereal-dev] Diffserv patch

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sun, 23 Jan 2000 20:24:55 -0800
> By default the patch turns the new functionality on and adds a 
> checkbox under Display menu so that it can be turned off. In 
> tethereal the DiffServ parsing can be turned off with the new -D 
> option.

Long-term, we should probably come up with a way in which individual
protcols can register lists of options, and have something under, say,
"Edit:Preferences" to let the user control them, and also provide a
command-line flag to Tethereal to let them be specified, e.g.

	register_option_bool(proto_ip, "diffserv",
	    "Decode IPv4 TOS field as DiffServ Field",
	    &ip_dscp_actif);

to register, for IP, a Boolean option, stored in a "gboolean" value
"ip_dscp_actif".  In GUI versions of Ethereal, it'd be displayed in the
preferences item as a check box with the label "Decode IPv4 TOS field as
DiffServ Field"; in a "curses"-based version, it'd be done however one
would do check boxes; in all versions (including but not limited to
Tethereal), it could be specified on the command line as something such
as "-o ip:diffserv".