moving framing and escape defines to Packet parent class