default:
// TODO: implement
+#ifdef UTCP_DEBUG
abort();
+#endif
+ break;
}
free(pkt);
case TIME_WAIT:
break;
default:
+#ifdef UTCP_DEBUG
abort();
+#endif
+ break;
}
// 1b. Drop packets with a sequence number not in our receive window.
set_state(c, CLOSED);
return 0;
default:
+#ifdef UTCP_DEBUG
abort();
+#endif
+ break;
}
}
// Ehm, no. We should never receive a second SYN.
goto reset;
default:
+#ifdef UTCP_DEBUG
abort();
+#endif
+ return 0;
}
// SYN counts as one sequence number
case SYN_SENT:
case SYN_RECEIVED:
// This should never happen.
+#ifdef UTCP_DEBUG
abort();
+#endif
+ return 0;
case ESTABLISHED:
case FIN_WAIT_1:
case FIN_WAIT_2:
// Ehm no, We should never receive more data after a FIN.
goto reset;
default:
+#ifdef UTCP_DEBUG
abort();
+#endif
+ return 0;
}
ssize_t rxd;
case SYN_SENT:
case SYN_RECEIVED:
// This should never happen.
+#ifdef UTCP_DEBUG
abort();
+#endif
+ break;
case ESTABLISHED:
set_state(c, CLOSE_WAIT);
break;
// Ehm, no. We should never receive a second FIN.
goto reset;
default:
+#ifdef UTCP_DEBUG
abort();
+#endif
+ break;
}
// FIN counts as one sequence number