complete protocol translation matrix
fix packet rewriting logic, matrix and setup of crypto context