diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-10-11 19:16:15 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-10-11 19:16:15 +0000 |
commit | 8e964a9da0c6481dcd8ac3516041f73ddbc81316 (patch) | |
tree | 4a228c9af141da992b51ebf8c694ec1cd44983eb /epan/wspython | |
parent | 0de5c129a10c53b39ed2f67110b6903fd28b1ddd (diff) |
From Eliot:
Patch homeplug.py wspython sample to not conflict with built in homeplug
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6448
svn path=/trunk/; revision=39374
Diffstat (limited to 'epan/wspython')
-rw-r--r-- | epan/wspython/wspy_dissectors/homeplug.py.sample | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/epan/wspython/wspy_dissectors/homeplug.py.sample b/epan/wspython/wspy_dissectors/homeplug.py.sample index 73d7f5d449..39d5f5349b 100644 --- a/epan/wspython/wspy_dissectors/homeplug.py.sample +++ b/epan/wspython/wspy_dissectors/homeplug.py.sample @@ -2,7 +2,7 @@ from wspy_dissector import Dissector from wspy_dissector import FT_UINT8, FT_NONE from wspy_dissector import BASE_NONE, BASE_HEX -class homeplug(Dissector): +class homeplug_py(Dissector): # return the two first parameters of dissector_add as a tuple def protocol_ids(self): #you could use self.find_dissector() or self.create_dissector_handle() as @@ -58,33 +58,33 @@ HOMEPLUG_MEHDR_MEV = 0xE0 HOMEPLUG_MEHDR_METYPE = 0x1F def register_protocol(): - tp = homeplug("HomePlug protocol", "HomePlug", "homeplug") + tp = homeplug_py("HomePlug protocol (python)", "HomePlug.py", "homeplug_py") # # Register Protocol Fields # hf = tp.hf # MAC Control Field - hf.add("Mac Control Field", "homeplug.mctrl", FT_NONE, BASE_NONE) - hf.add("Reserved", "homeplug.mctrl.rsvd", FT_UINT8, bitmask=HOMEPLUG_MCTRL_RSVD) - hf.add("Number of MAC Data Entries", "homeplug.mctrl.ne", FT_UINT8, bitmask=HOMEPLUG_MCTRL_NE) + hf.add("Mac Control Field", "homeplug_py.mctrl", FT_NONE, BASE_NONE) + hf.add("Reserved", "homeplug_py.mctrl.rsvd", FT_UINT8, bitmask=HOMEPLUG_MCTRL_RSVD) + hf.add("Number of MAC Data Entries", "homeplug_py.mctrl.ne", FT_UINT8, bitmask=HOMEPLUG_MCTRL_NE) # MAC Entry Header - hf.add("MAC Management Entry Header", "homeplug.mehdr", FT_NONE, BASE_NONE) - hf.add("MAC Entry Version", "homeplug.mehdr.mev", FT_UINT8, bitmask=HOMEPLUG_MEHDR_MEV) - hf.add("MAC Entry Type", "homeplug.mehdr.metype", FT_UINT8, BASE_HEX, bitmask=HOMEPLUG_MEHDR_METYPE) + hf.add("MAC Management Entry Header", "homeplug_py.mehdr", FT_NONE, BASE_NONE) + hf.add("MAC Entry Version", "homeplug_py.mehdr.mev", FT_UINT8, bitmask=HOMEPLUG_MEHDR_MEV) + hf.add("MAC Entry Type", "homeplug_py.mehdr.metype", FT_UINT8, BASE_HEX, bitmask=HOMEPLUG_MEHDR_METYPE) # MAC Entry Len - hf.add("MAC Management Entry Length", "homeplug.melen", FT_UINT8) + hf.add("MAC Management Entry Length", "homeplug_py.melen", FT_UINT8) # MAC Management Entry - hf.add("MAC Management Entry Data", "homeplug.mmentry", FT_UINT8) + hf.add("MAC Management Entry Data", "homeplug_py.mmentry", FT_UINT8) # # Register Subtrees # subt = tp.subtrees - #subt.add("homeplug") => we let Dissector output the main tree of this protocol + #subt.add("homeplug_py") => we let Dissector output the main tree of this protocol subt.add("mctrl") subt.add("mehdr") return tp |