Add GATEWAY packet type.

Add a gateway packet type for Gavin. Please review.