add tcp protocol for ip

This commit is contained in:
2025-11-24 08:38:45 +08:00
parent 64bbaf65e2
commit 122fb9aa3e

View File

@ -72,6 +72,9 @@ void xip_in(xnet_packet_t *packet) {
printf("[IP] Processing ICMP packet\n");
xicmp_in(packet, ip_hdr->src_ip, ether_hdr->src);
break;
case 6:
printf("[IP] Ignoring TCP packet\n");
break;
default:
printf("[IP] Unknown protocol: %d\n", ip_hdr->protocol);
break;