Rearrange includes and add stream_host_state with peer info.
Add transmit attach packet header initialization.
Add missing peer field.
Mark type field as having two sub-fields actually.