Trace statements control tracing options. GateD's tracing options may be configured at many levels. Tracing options include the file specifications, control options, and global and protocol specific tracing options. Unless overridden, tracing options from the next higher level are inherited by lower levels. For example, BGP peer tracing options are inherited from BGP group tracing options, which are inherited from global BGP tracing options, which are inherited from global GateD tracing options. At each level tracing specifications override the inherited options.
There are two types of global options, those which only affect global operations and those which have potential significance to protocols.
-t
option on the command line since the symbols are
read from the kernel before parsing the configuration file.
-t
option on the
command line since the first interface scan is done before
reading the configuration file.
normal
and
route
.
policy
option). It is not currently possible to specify packet tracing from the command line. This is because a global option for packet tracing would potentially create too much output.
When protocols inherit their tracing options from the
global tracing options, tracing levels that
don't make sense (such as parse
, adv
and
packet tracing options) are masked out.
Global tracing statements have an immediate effect, especially parsing options that effect the parsing of the configuration file. Tracing values inherited by protocols specified in the configuration file are initially inherited from the global options in effect as they are parsed, unless they are overridden by more specific options. After the configuration file is read, tracing options that were not explicitly specified are inherited from the global options in effect at the end of the configuration file.
detail
must be specified before send
or
recv
. Normally packets are traced in a
terse form of one or two lines. When detail
is specified, a more verbose format is used
to provide further detail on the contents of
the packet.
Detail
, if specified, must be before send
or
recv
. If a protocol allows for several different types
of packet tracing, modifiers may be applied to each individual type.
But be aware that within one tracing specification the trace flags are
summed up, so specifying detail packets
will turn on full
tracing for all packets.
traceoptions ["trace_file" [replace] [size size[k|m] files files]] [control_options] trace_options [except trace_options] ; traceoptions none ;
file.0
, then file.1
,
file.2
up to the maximum number of files (minimum
specification is 2).