Set datalink type on packet header

This allows the payload offset to be determined properly for packets.