Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sun Jan 24 15:06:33 2021 +0000
Revision:
155:4df4ed4b65a2
Parent:
153:eaee18d970c4
Modified to allow name resolution testing over IPv6 and IPv4 with DNS, MDNS or LLMNR.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 110:8ab752842d25 1 #include "http.h"
andrewboyson 110:8ab752842d25 2 #include "web-nav-base.h"
andrewboyson 110:8ab752842d25 3 #include "web-add.h"
andrewboyson 110:8ab752842d25 4 #include "mac.h"
andrewboyson 110:8ab752842d25 5
andrewboyson 110:8ab752842d25 6 void WebNetHtml()
andrewboyson 110:8ab752842d25 7 {
andrewboyson 110:8ab752842d25 8 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 132:5b2df69a4f17 9 WebAddHeader("Net", "settings.css", "net.js");
andrewboyson 110:8ab752842d25 10 WebAddNav(NET_PAGE);
andrewboyson 110:8ab752842d25 11 WebAddH1("Net");
andrewboyson 110:8ab752842d25 12
andrewboyson 132:5b2df69a4f17 13 WebAddH2("MAC");
andrewboyson 147:ea6f647725a1 14 HttpAddText("<code id='ajax-mac'></code>\r\n");
andrewboyson 147:ea6f647725a1 15
andrewboyson 133:98c6bf14bc37 16 WebAddH2("TCP connections");
andrewboyson 132:5b2df69a4f17 17 HttpAddText("<code id='ajax-tcp'></code>\r\n");
andrewboyson 147:ea6f647725a1 18
andrewboyson 155:4df4ed4b65a2 19 WebAddH2("Request resolution");
andrewboyson 155:4df4ed4b65a2 20 WebAddAjaxInput ("", 100, "ajax-nr", "name-to-resolve");
andrewboyson 155:4df4ed4b65a2 21 WebAddAjaxButton("MDNS over IPV6" , "request-ipv6-mdns" );
andrewboyson 155:4df4ed4b65a2 22 WebAddAjaxButton("LLMNR over IPV6", "request-ipv6-llmnr");
andrewboyson 155:4df4ed4b65a2 23 WebAddAjaxButton("DNS over IPV6" , "request-ipv6-udns" );
andrewboyson 155:4df4ed4b65a2 24 HttpAddText("<br/>\r\n");
andrewboyson 155:4df4ed4b65a2 25 WebAddAjaxButton("MDNS over IPV4" , "request-ipv4-mdns" );
andrewboyson 155:4df4ed4b65a2 26 WebAddAjaxButton("LLMNR over IPV4", "request-ipv4-llmnr");
andrewboyson 155:4df4ed4b65a2 27 WebAddAjaxButton("DNS over IPV4" , "request-ipv4-udns" );
andrewboyson 147:ea6f647725a1 28
andrewboyson 147:ea6f647725a1 29 WebAddH2("Name cache");
andrewboyson 143:cc2e148cb96a 30 HttpAddText("<code id='ajax-dns'></code>\r\n");
andrewboyson 147:ea6f647725a1 31 HttpAddText("<div class='line'>\r\n");
andrewboyson 147:ea6f647725a1 32 HttpAddText("<button onclick = 'Net.clearVendorsFromLocalStorage()'>Clear vendors</button>\r\n");
andrewboyson 147:ea6f647725a1 33 HttpAddText("</div>\r\n");
andrewboyson 110:8ab752842d25 34
andrewboyson 110:8ab752842d25 35 WebAddEnd();
andrewboyson 110:8ab752842d25 36
andrewboyson 110:8ab752842d25 37 }