moved include/microtcp.h to src/microtcp.h and fixed some mux bugs

This commit is contained in:
cozis
2023-05-19 22:11:47 +02:00
parent 464a1ee724
commit 6a4f644cc5
6 changed files with 141 additions and 119 deletions
+3 -3
View File
@@ -252,7 +252,7 @@ void ip_process_packet(ip_state_t *ip_state, const void *packet, size_t len)
IP_DEBUG_LOG("Dropping IP packet with invalid checksum");
return;
}
/*
IP_DEBUG_LOG("Received packet for %d.%d.%d.%d (I'm %d.%d.%d.%d)",
((uint8_t*) &packet2->dst_ip)[0],
((uint8_t*) &packet2->dst_ip)[1],
@@ -262,9 +262,9 @@ void ip_process_packet(ip_state_t *ip_state, const void *packet, size_t len)
((uint8_t*) &ip_state->ip)[1],
((uint8_t*) &ip_state->ip)[2],
((uint8_t*) &ip_state->ip)[3]);
*/
if (packet2->dst_ip != ip_state->ip) {
IP_DEBUG_LOG("Packet not for me");
// IP_DEBUG_LOG("Packet not for me");
return;
}