title: How do I create a Wireshark DissectorTable suitable for chaining in Lua?
body: <p>I'm trying to dissect a proprietary protocol encapsulated in UDP packets.  The protocol is multi-layer with a very simple header in the lowest layer.  That header has a type field to indicate the format of the higher layer protocol.</p>
  
  <p>Chaining my lowest protocol to a UDP port number is easy with plenty of examples to follow.  What I don't understand is how to create a DissectorTable based on the type field so I can chain the higher level protocols.</p>
  
  <p>I have ProtoField objects for each of the fields of the low level protocol that are used to display it in the tree.  How do I associate a DissectorTable and its Dissectors with the values in the type field?  Do I even need to populate the DissectorTable before the higher level protocols add themselves?</p>