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

Committer:
andrewboyson
Date:
Thu May 20 14:32:52 2021 +0000
Revision:
200:5acbc41bf469
Parent:
37:793b39683406
Increased number of arp entries from 20 to 30 to accommodate the number of WIZ devices plus a few incoming port 80 calls from the internet.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 32:679654f2d023 1 DNS -- host name and domain name if network is IPv4
andrewboyson 13:9cd54f7db57a 2 client query O unicast 53053 -> 53 QR=0
andrewboyson 13:9cd54f7db57a 3 client reply I unicast 53053 <- 53 QR=1
andrewboyson 13:9cd54f7db57a 4
andrewboyson 32:679654f2d023 5 LLMNR -- just the host name
andrewboyson 13:9cd54f7db57a 6 client query O multicast 53053 -> 5355 QR=0
andrewboyson 13:9cd54f7db57a 7 client reply I unicast 53053 <- 5355 QR=1
andrewboyson 13:9cd54f7db57a 8 server query I multicast 5355 <- xxxxx QR=0
andrewboyson 13:9cd54f7db57a 9 server reply O unicast 5355 -> xxxxx QR=1
andrewboyson 13:9cd54f7db57a 10
andrewboyson 32:679654f2d023 11 MDNS -- host name + '.local'
andrewboyson 13:9cd54f7db57a 12 client query O multicast 5353 -> 5353 QR=0
andrewboyson 13:9cd54f7db57a 13 client reply I multicast 5353 <- 5353 QR=1
andrewboyson 13:9cd54f7db57a 14 server query I multicast 5353 <- 5353 QR=0
andrewboyson 13:9cd54f7db57a 15 server reply O multicast 5353 -> 5353 QR=1
andrewboyson 13:9cd54f7db57a 16
andrewboyson 32:679654f2d023 17 Dns directs packets to DnsReply(receive) and DnsServer(receive and send) and polls for DnsQuery(send) packets
andrewboyson 13:9cd54f7db57a 18
andrewboyson 32:679654f2d023 19 DnsCache holds names against addresses and synchronises requests and replies.
andrewboyson 32:679654f2d023 20
andrewboyson 32:679654f2d023 21 DnsHdr and DnsName are helper modules.
andrewboyson 32:679654f2d023 22
andrewboyson 37:793b39683406 23 LLMNR header
andrewboyson 37:793b39683406 24 Ident -4692
andrewboyson 37:793b39683406 25 Non recursive query
andrewboyson 37:793b39683406 26 qd, an, ns, ar 1, 0, 0, 0
andrewboyson 37:793b39683406 27 Query PTR type record of 7.2.d.7.2.f.e.f.f.f.7.f.2.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa
andrewboyson 37:793b39683406 28 deal with question 0, answer 0, question 12, node 28
andrewboyson 37:793b39683406 29 replied with my name
andrewboyson 37:793b39683406 30 LLMNR header
andrewboyson 37:793b39683406 31 Ident -4692
andrewboyson 37:793b39683406 32 Authoritative reply
andrewboyson 37:793b39683406 33 qd, an, ns, ar 1, 1, 0, 0
andrewboyson 37:793b39683406 34 Query PTR type record of 7.2.d.7.2.f.e.f.f.f.7.f.2.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa
andrewboyson 37:793b39683406 35 iEncodedName = 90
andrewboyson 37:793b39683406 36 nameLength = 74
andrewboyson 37:793b39683406 37 recordType = 12
andrewboyson 37:793b39683406 38 ttl = 1024
andrewboyson 37:793b39683406 39 len = 7
andrewboyson 37:793b39683406 40 Answer PTR type record of 7.2.d.7.2.f.e.f.f.f.7.f.2.0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa2017-275 19:31:50 DnsNameDecode overran name buffer
andrewboyson 37:793b39683406 41 eating.local60-c83a400f913a
andrewboyson 37:793b39683406 42 NT: urn:schemas-nds-com:service:SkyRemote:1
andrewboyson 37:793b39683406 43 NTS: ssdp:alive
andrewboyson 37:793b39683406 44 SERVER: Linux.3.10.27 UPnP/1.0 SKY DLNADOC/1.50
andrewboyson 37:793b39683406 45 X-User-Agent. redsonic
andrewboyson 37:793b39683406 46 USN: uuid:52554976-3247-4761-7465-0cf9c08ea5b2: