diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-08-03 20:44:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-08-03 20:44:58 +0000 |
commit | 4940c97f1180f4f016d6a90258237c16258a8299 (patch) | |
tree | ecf00d7aca21baa88fecbd47919eda5967aeb383 /ethereal_gen.py | |
parent | 131228b0b1778acb0e847b7f8b3ff966576291c1 (diff) | |
download | wireshark-4940c97f1180f4f016d6a90258237c16258a8299.tar.gz wireshark-4940c97f1180f4f016d6a90258237c16258a8299.tar.bz2 wireshark-4940c97f1180f4f016d6a90258237c16258a8299.zip |
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
svn path=/trunk/; revision=3813
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r-- | ethereal_gen.py | 9 |
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; } |