Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
e05b9ac1
Commit
e05b9ac1
authored
15 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Add short documentation to pkgdraw
parent
c3075766
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doclib/pkgdraw
+29
-0
29 additions, 0 deletions
doclib/pkgdraw
with
29 additions
and
0 deletions
doclib/pkgdraw
+
29
−
0
View file @
e05b9ac1
#!/usr/bin/python
#!/usr/bin/python
#
# Usage:
# pkgdraw <header> <outfile> [<parser names>...] [-- <cpp options>...]
#
# Extract packet structure from <header>. Write generated PNG diagram
# to <outfile>. If <parser names> is given, it is a list names of
# parsers to generate diagrams for. All other parsers from the same
# header file will be skipped.
#
# <cpp options> are parsed to the C preprocessor while processing the
# header file.
#
# pkgdraw will interpret most SENF_PARSER statements, it does however
# *not* understand GOTO statements. Special comments may be added
# directly before or after a field to pass parameters to pkgdraw
#
# SENF_PARSER_FIELD( id, senf::UInt16Parser ); //<pkgdraw: <option>, <option>...
#
# or
#
# //>pkgdraw: <option>, <option>...
# SENF_PARSER_FIELD( id, senf::UInt16Parser );
#
# <option> is any valid option:
#
# hide Completely skip this field (Helps with GOTO)
# name=<name> Sets the field name to <name>
# size=<min>[-<max>] Sets the field size in bits.
#
import
sys
,
re
,
signal
,
tempfile
,
os
,
os
.
path
,
shutil
,
atexit
import
sys
,
re
,
signal
,
tempfile
,
os
,
os
.
path
,
shutil
,
atexit
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment