A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Revision:
15:6ca6778168b1
Parent:
14:e75a59c1123d
Child:
22:914b970356f0
--- a/udp/udp.cpp	Fri May 05 17:44:16 2017 +0000
+++ b/udp/udp.cpp	Tue May 09 15:39:03 2017 +0000
@@ -5,13 +5,14 @@
 #include   "ntp.h"
 #include  "dhcp.h"
 #include   "dns.h"
+#include   "eth.h"
 #include   "ip4.h"
 #include   "ip6.h"
 #include "slaac.h"
 #include   "ndp.h"
 #include    "io.h"
 
-#define UNKNOWN false
+#define UNKNOWN true
 
 #define HEADER_SIZE 8
 __packed struct header
@@ -35,12 +36,17 @@
         case NTP_PORT:                  return  NtpHandleRequest       (                    pDataLength, pData);  //  123
         case DNS_UNICAST_CLIENT_PORT:   return  DnsHandlePacketReceived(DNS_PROTOCOL_UDNS,  pDataLength, pData);  //53053
         case DNS_MDNS_PORT:             return  DnsHandlePacketReceived(DNS_PROTOCOL_MDNS,  pDataLength, pData);  // 5353
-        case DNS_LLMNR_CLIENT_PORT:     return  DnsHandlePacketReceived(DNS_PROTOCOL_LLMNR, pDataLength, pData);  // 5355
+        case DNS_LLMNR_CLIENT_PORT:     return  DnsHandlePacketReceived(DNS_PROTOCOL_LLMNR, pDataLength, pData);  //53055
+        case DNS_LLMNR_SERVER_PORT:     return  DnsHandlePacketReceived(DNS_PROTOCOL_LLMNR, pDataLength, pData);  // 5355
         
         //Quietly drop these
         case DHCP_SERVER_PORT:                                                          //67
+        case   137:                                                                     //NETBIOS name service
+        case   138:                                                                     //NETBIOS datagram service
+        case   139:                                                                     //NETBIOS session service
         case  1900:                                                                     //SSDP Simple Service Discovery Protocol (uPnP)
         case  3076:                                                                     //Call of Duty - Xbox
+        case  9956:                                                                     //Alljoyn part af Allseen IoT services
         case  9997:                                                                     //VLC
         case  9998:                                                                     //VLC
         case  9999:                                                                     //VLC