title: how to convert to host byte order using lua in wireshark
body: <p>I am getting no luck searching for a standard function to do byte-order conversion to write a lua plug-in for wireshark.</p>
  
  <p>struct.pack doesn't seem to work, at least when doing "require 'struct'", wireshark throws an error.</p>
  
  <p>You can call tvb functions to get an explicit (that's what I am doing now so it's not portable :((( ) conversion to either big endian or little endian, but nothing to the host endian byte order.</p>
  
  <p>I searched and searched online but nothing came up so I am hoping someone can offer a solution.</p>
  
  <p>Thanks!</p>