DTEorDCE

Description:

This method chooses one of two branch targets depending on whether the current frame came from the DTE or the DCE. Clearly this has meaning only in contexts where there are two data streams distinguished as DTE and DCE. The first parameter names the statement to be branched to for a DTE frame and the second names the target for a DCE frame.

Parameters:

[Required]

Filed

"Field present if this frame is DTE"


[Required]

Filed

"Field present if this frame is DCE"


Example:

In the X.25 protocol, everything is defined in terms of DCE and DTE and so near the toe of the X.25 decoder is the statement:

BRANCH (DTEorDCE dte_pkt dce_pkt)

This says: If the frame came from the DTE side, branch to the "dte_pkt" field, and if the frame came from the DCE side, branch to the "dce_pkt" field.