Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
base/net/web-net-html.c
- Committer:
- andrewboyson
- Date:
- 2021-01-24
- Revision:
- 155:4df4ed4b65a2
- Parent:
- 153:eaee18d970c4
File content as of revision 155:4df4ed4b65a2:
#include "http.h"
#include "web-nav-base.h"
#include "web-add.h"
#include "mac.h"
void WebNetHtml()
{
HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
WebAddHeader("Net", "settings.css", "net.js");
WebAddNav(NET_PAGE);
WebAddH1("Net");
WebAddH2("MAC");
HttpAddText("<code id='ajax-mac'></code>\r\n");
WebAddH2("TCP connections");
HttpAddText("<code id='ajax-tcp'></code>\r\n");
WebAddH2("Request resolution");
WebAddAjaxInput ("", 100, "ajax-nr", "name-to-resolve");
WebAddAjaxButton("MDNS over IPV6" , "request-ipv6-mdns" );
WebAddAjaxButton("LLMNR over IPV6", "request-ipv6-llmnr");
WebAddAjaxButton("DNS over IPV6" , "request-ipv6-udns" );
HttpAddText("<br/>\r\n");
WebAddAjaxButton("MDNS over IPV4" , "request-ipv4-mdns" );
WebAddAjaxButton("LLMNR over IPV4", "request-ipv4-llmnr");
WebAddAjaxButton("DNS over IPV4" , "request-ipv4-udns" );
WebAddH2("Name cache");
HttpAddText("<code id='ajax-dns'></code>\r\n");
HttpAddText("<div class='line'>\r\n");
HttpAddText("<button onclick = 'Net.clearVendorsFromLocalStorage()'>Clear vendors</button>\r\n");
HttpAddText("</div>\r\n");
WebAddEnd();
}