Professional Documents
Culture Documents
06 31 PF
06 31 PF
Right-click on a packet field to open the Attributes dialog box for that field. In
addition to attributes, the dialog box contains buttons that allow you to add
comments to the packet field and edit the conversion method assigned to the
field.
In general, fields can be placed in any order and can be dragged from one row
to another as you like. Order does not matter because packet formats are
typically referenced by the field name. However, if your model references
packet fields by index, changing the graphic representation makes a big
difference. OPNET assigns an index of 0 to the top left field (in Figure 11-1,
“service type” has an index of 0) and the highest index to the bottom right field
(in Figure 11-1, “application_info” has an index of 23).
Menus
The Packet Format Editor provides several operations for creating and working
with packet formats. You access these operations from the Packet Format
Editor menu bar, which contains the following menus:
File Contains operations that relate to high-level File Menu on page ER-2-2
functions such as opening and closing
projects, saving scenarios, importing models,
and printing graphics and reports.
Edit Contains operations that allow you to edit the Edit Menu on page ER-2-5
preferences that control program operation
and to manipulate text and objects
Interfaces Contains operations that allow you to edit the Interfaces Menu on
packet format attributes page ER-11-3
Windows Lists all open editor windows and allows you Windows Menu on
to make one active page ER-2-7
Note—The editor menus on your machine may vary from those described here,
particularly if there has been any UI customization or use of ETS.
The following sections list the items in the Packet Format Editor menus and give
a reference to where you can get more information about each operation:
Fields Menu
The Fields menu contains an operation that adds fields to a packet format.
Create Field Creates a new field within the packet. Create Field on
page ER-11-5
Interfaces Menu
The Interfaces menu includes operations that enable you to edit the packet
format’s interfaces.
Model Documentation Opens an edit pad in which you can Model Documentation
enter comments about the packet format on page ER-11-6
Toolbar Buttons
The Packet Format Editor has toolbar buttons for frequently-used operations.
1 2
Table 11-4 lists the name of each toolbar button—the name appears as a tooltip
when you rest the cursor on the button—and its equivalent menu command. To
configure the toolbar buttons, see Configuring the Toolbar on page ER-1-7.
Create Field
This operation creates a new field within the current packet format. Fields are
represented graphically as colored, rectangular boxes. Right-click on a field to
display the Attributes dialog box for that field. Each field within a packet has
several attributes:
• Size—measured in bits
• Set At Creation—if set, the value specified in Default Value is assigned to the
field at the packet’s creation; if unset, no value is assigned to the field at
packet creation
For more information about packet fields, see Packet Format Editor on
page MC-1-46.
Binary Conversion
This operation enables you to specify whether the packet format supports
conversion to and from value vector form. If conversion is supported, you can
specify a bulk fill pattern and conversion method.
Model Documentation
This operation enables you to add comments to a packet format. These
comments can describe the format’s intended use and give a user any other
information that may be useful.