Use macro for UtpPacket field conversion.

This macro allows easy conversion from u8 buffer positions to arbitrarily-sized
unsigned integers.