S_WAIT_BUDDY
p->state = S_WAIT_BUDDY;
int tout = (p->state == S_WAIT_BUDDY) ? tout_buddy : tout_ack;
if (p->state == S_WAIT_ACK || p->state == S_WAIT_BUDDY) {