Abort on unexpected SCTP errors

pull/5/head
Michael Spang 14 years ago
parent 99ce020ba0
commit 6b83cc5c05
  1. 13
      src/net.c

@ -71,6 +71,19 @@ static size_t recv_one_message(int sock, struct sctp_meta *msg_meta, struct strb
case SCTP_SHUTDOWN_EVENT:
fatal("connection shut down");
break;
case SCTP_ASSOC_CHANGE:
switch (sn->sn_assoc_change.sac_state) {
case SCTP_COMM_LOST:
fatal("connection lost");
break;
case SCTP_SHUTDOWN_COMP:
fatal("shutdown complete");
break;
case SCTP_CANT_STR_ASSOC:
fatal("cannot start association");
break;
}
break;
}
}

Loading…
Cancel
Save