odx(7) Atheros Powerline Toolkit odx(7)
NAME
odx - print object driven xml editior intructions
SYNOPSIS
odx [options] file [file] [...] [>stdout]
DESCRIPTION
Print object driven XML editor instructions on stdout. This requires an object definition
file that contains the size and name of data regions and members within a binary object or
file. Individual data members are presented as XML edit instruction used by program xde to
edit other files.
OPTIONS
-f definitions
The name of the object definition file that contains the size, name and description
of objects within a binary file. The definition file is not modified. This option
is required. There is no default file.
-s schema
The url for the XML schema. The default schema is piboffset.xsd for the Atheros
Powerline Toolkit verion of this program.
-x Print an XML schema on stdout. This schema defines the elements and attributes used
to define data objects and members read from input files. It can be used to vali‐
date XML files used with program pxe.
-?,--help
Print program help summary on stdout. This option takes precedence over other
options on the command line.
-!,--version
Print program version information on stdout. This option takes precedence over
other options on the command line. Usethis option when sending screen dumps to
Atheros Technical Support so that they know exactly which version of the Linux
Toolkit you are using.
ARGUMENTS
file The name of a binary file. More than one file may be specified but each should con‐
form to the object definition file or output will not be correct.
EXAMPLES
The following is an example object definition file that defines a standard ethernet frame
and member fields within it. The comments and descriptions shown are optional. The field
lengths and names are not. Zero-length fields denote arbitrary field groups and are used
by program offset to print headings.
# ========================================
#
# ----------------------------------------
0 header
6 ODA Own Destination Address
6 OSA Own Source Address
2 ET Ethertype or frame length
# ========================================
#
# ----------------------------------------
0 body
1500 Payload
# ========================================
#
# ----------------------------------------
0 trailer
4 CRC Cyclical Redundancy Check
The following command uses object definition file ether.txt to identify and display member
fields within binary file abc.bin as a set of xml instructions that can be used by program
xde to edit other files.
# odx -f ether.txt abc.bin
The next command writes the xml schema that defines the elements and attributeds used in
the edit instructions to file data.xsd. This file can be used to validate xml edit
instructions.
# odx -x > data.xsd
SEE ALSO
grab(7), odc(7), odd(7),
CREDITS
Charles Maier <cmaier@cmassoc.net>
int6000-utils-linux Atheros Communications odx(7)