diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2002-05-13 22:52:15 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2002-05-13 22:52:15 +0000 |
commit | cd88ae9e8298e3a3f3fbcbc494828ec4c66ecbf5 (patch) | |
tree | 75f3bd891100014a32bdc039961af4f502ca59a7 /ncp2222.py | |
parent | c845015f0645b6da7e5d7dc8f02002f3713651d0 (diff) | |
download | wireshark-cd88ae9e8298e3a3f3fbcbc494828ec4c66ecbf5.tar.gz wireshark-cd88ae9e8298e3a3f3fbcbc494828ec4c66ecbf5.tar.bz2 wireshark-cd88ae9e8298e3a3f3fbcbc494828ec4c66ecbf5.zip |
Change the name under which variables are hashed during processing.
svn path=/trunk/; revision=5458
Diffstat (limited to 'ncp2222.py')
-rwxr-xr-x | ncp2222.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ncp2222.py b/ncp2222.py index 4c6abfeb11..ca072bd44c 100755 --- a/ncp2222.py +++ b/ncp2222.py @@ -24,7 +24,7 @@ http://developer.novell.com/ndk/doc/docui/index.htm#../ncp/ncp__enu/data/ for a badly-formatted HTML version of the same PDF. -$Id: ncp2222.py,v 1.15 2002/05/09 23:50:24 gram Exp $ +$Id: ncp2222.py,v 1.16 2002/05/13 22:52:15 gram Exp $ Copyright (c) 2000-2002 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -570,20 +570,20 @@ class NCP: if self.request_records: for record in self.request_records: var = record[REC_FIELD] - variables[repr(var)] = var + variables[var.HFName()] = var sub_vars = var.SubVariables() for sv in sub_vars: - variables[repr(sv)] = sv + variables[sv.HFName()] = sv if self.reply_records: for record in self.reply_records: var = record[REC_FIELD] - variables[repr(var)] = var + variables[var.HFName()] = var sub_vars = var.SubVariables() for sv in sub_vars: - variables[repr(sv)] = sv + variables[sv.HFName()] = sv return variables.values() @@ -5174,7 +5174,7 @@ def define_errors(): def ExamineVars(vars, structs_hash, vars_hash): for var in vars: if isinstance(var, struct): - structs_hash[repr(var)] = var + structs_hash[var.HFName()] = var struct_vars = var.Variables() ExamineVars(struct_vars, structs_hash, vars_hash) else: |