code: def hexedit(pktlist):
      
      f = get_temp_file()
      wrpcap(f, pktlist)
      with ContextManagerSubprocess("hexedit()", conf.prog.hexedit):
          subprocess.call([conf.prog.hexedit, f])
      pktlist = rdpcap(f)
      os.unlink(f)
      return pktlist
docs: Run hexedit on a list of packets, then return the edited packets.