Find the payload of the first control message matching (level, type) in an
ancillary data buffer. Returns the buffer remainder starting at the payload.
cmsghdr on 64-bit: [0..8] len, [8..12] level, [12..16] type, [16..] payload
Listen for incoming packets
Creates two threads, one that listens on the socket and another that forwards results to the orchestrator and shuts down the receiving socket when appropriate.
Makes sure that the received packets are valid and belong to the current measurement.