aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-08-03 20:44:58 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-08-03 20:44:58 +0000
commit77645f19d24dd885115ea235513a9bb6798310ff (patch)
treeecf00d7aca21baa88fecbd47919eda5967aeb383 /ethereal_gen.py
parent65d1062692ba025a3ec1dc166f7bf942c9ab4de3 (diff)
Update from Frank Singleton:
Improve Template and Description for Attribute delegation code _get_xxx_at() should only be called for Reply with NO_EXCEPTION _set_xxx_at() should only be called for Request git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3813 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index dfb1d57e49..bf1662a3b0 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -1,7 +1,6 @@
# -*- python -*-
#
-# $Id: ethereal_gen.py,v 1.9 2001/07/27 18:35:22 guy Exp $
-#
+# $Id: ethereal_gen.py,v 1.10 2001/08/03 20:44:58 guy Exp $
#
# ethereal_gen.py (part of idl2eth)
#
@@ -2158,6 +2157,10 @@ stream_is_big_endian = is_big_endian(header); /* get stream endianess */
#
# template for Attribute delegation code
#
+ # Note: _get_xxx() should only be called for Reply with NO_EXCEPTION
+ # Note: _set_xxx() should only be called for Request
+ #
+ #
template_at_delegate_code_get = """\
if (!strcmp(operation, get_@sname@_at ) && (header->message_type == Reply) && (header->rep_status == NO_EXCEPTION) ) {
@@ -2167,7 +2170,7 @@ if (!strcmp(operation, get_@sname@_at ) && (header->message_type == Reply) && (h
"""
template_at_delegate_code_set = """\
-if (!strcmp(operation, set_@sname@_at )) {
+if (!strcmp(operation, set_@sname@_at ) && (header->message_type == Request) ) {
decode_set_@sname@_at(tvb, pinfo, tree, offset, header, operation);
return TRUE;
}