add packet-in and packet-out (partial)