aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-03 21:52:57 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-03 21:52:57 +0000
commit5dddd6a9845a76df2d96754b957ab4eabb680110 (patch)
treea3c28e6a76371c4b8665db65b5f98012dae00385 /tools
parent1c9916bff028eb95a5bc08fae5cd36b4f3357c15 (diff)
Split out asn1 common functions. Start of BER EXTERNAL.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21670 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/asn2wrs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 28ae5552b6..e58654d026 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -3249,7 +3249,10 @@ class ExternalType (Type):
return pars
def eth_type_default_body(self, ectx, tname):
- if (ectx.Per()):
+ if (ectx.Ber()):
+ body = ectx.eth_fn_call('dissect_%(ER)s_external_type', ret='offset',
+ par=(('%(IMPLICIT_TAG)s', '%(PINFO)s', '%(TREE)s', '%(TVB)s', '%(OFFSET)s', '%(ACTX)s', '%(HF_INDEX)s', '%(TYPE_REF_FN)s',),))
+ elif (ectx.Per()):
body = ectx.eth_fn_call('dissect_%(ER)s_external_type', ret='offset',
par=(('%(TVB)s', '%(OFFSET)s', '%(ACTX)s', '%(TREE)s', '%(HF_INDEX)s', '%(TYPE_REF_FN)s',),))
else: