simple reliable networking over ethernet. Provides IPv4 ARP, ICMP echo reply, and UDP unicast. Does NOT provide TCP, that's not simple :-).

Files at this revision

API Documentation at this revision

Comitter:
altasoul
Date:
Wed Apr 01 20:58:30 2015 +0000
Parent:
6:b45fde7a2919
Commit message:
Quiet the inet unhandled protocol printf

Changed in this revision

inet.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/inet.cpp	Wed Apr 01 19:38:34 2015 +0000
+++ b/inet.cpp	Wed Apr 01 20:58:30 2015 +0000
@@ -151,5 +151,7 @@
     };
     if (buf[IP_PROTO_O] == 0x01) handle_icmp_packet(buf, len);
     else if (buf[IP_PROTO_O] == 0x11) handle_udp_packet(buf, len);
+#if 0
     else printf("Protocol 0x%x\r\n", buf[IP_PROTO_O]);
+#endif
 }