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
net/http-net-html.c@77:4689596a2f3f, 2019-03-23 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Mar 23 12:26:49 2019 +0000
- Revision:
- 77:4689596a2f3f
- Parent:
- 59:309e78f243dd
- Child:
- 86:f3c9beec4ee7
Changed from using float to using flex for creating left and right aligned lines.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 14:c3c43c8faf0e | 1 | #include "http.h" |
| andrewboyson | 29:4d649264d6b6 | 2 | #include "http-server.h" |
| andrewboyson | 14:c3c43c8faf0e | 3 | #include "page.h" |
| andrewboyson | 14:c3c43c8faf0e | 4 | #include "net.h" |
| andrewboyson | 14:c3c43c8faf0e | 5 | #include "mac.h" |
| andrewboyson | 14:c3c43c8faf0e | 6 | #include "ip4.h" |
| andrewboyson | 14:c3c43c8faf0e | 7 | #include "ip6.h" |
| andrewboyson | 14:c3c43c8faf0e | 8 | #include "ar4.h" |
| andrewboyson | 14:c3c43c8faf0e | 9 | #include "ar6.h" |
| andrewboyson | 14:c3c43c8faf0e | 10 | #include "nr4.h" |
| andrewboyson | 14:c3c43c8faf0e | 11 | #include "nr6.h" |
| andrewboyson | 14:c3c43c8faf0e | 12 | #include "ndp.h" |
| andrewboyson | 14:c3c43c8faf0e | 13 | #include "ndp.h" |
| andrewboyson | 14:c3c43c8faf0e | 14 | #include "dhcp.h" |
| andrewboyson | 14:c3c43c8faf0e | 15 | #include "slaac.h" |
| andrewboyson | 14:c3c43c8faf0e | 16 | |
| andrewboyson | 14:c3c43c8faf0e | 17 | void HttpNetHtml() |
| andrewboyson | 14:c3c43c8faf0e | 18 | { |
| andrewboyson | 14:c3c43c8faf0e | 19 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
| andrewboyson | 30:6a08abbe6301 | 20 | PageAddHeader(PageSite, "Net", "settings.css", NULL); |
| andrewboyson | 30:6a08abbe6301 | 21 | PageAddNav(NET_PAGE); |
| andrewboyson | 30:6a08abbe6301 | 22 | PageAddH1(PageSite, "Net"); |
| andrewboyson | 14:c3c43c8faf0e | 23 | |
| andrewboyson | 14:c3c43c8faf0e | 24 | PageAddH2("Ethernet"); |
| andrewboyson | 77:4689596a2f3f | 25 | PageAddLabelledMac ("MAC", MacLocal); |
| andrewboyson | 14:c3c43c8faf0e | 26 | |
| andrewboyson | 14:c3c43c8faf0e | 27 | PageAddH2("IP4 DHCP"); |
| andrewboyson | 77:4689596a2f3f | 28 | PageAddLabelledIp4 ("IP4 address", DhcpLocalIp); |
| andrewboyson | 77:4689596a2f3f | 29 | PageAddLabelledText ("Domain", DhcpDomainName); |
| andrewboyson | 77:4689596a2f3f | 30 | PageAddLabelledText ("Host name", DhcpHostName); |
| andrewboyson | 77:4689596a2f3f | 31 | PageAddLabelledIp4 ("NTP server", DhcpNtpIp); |
| andrewboyson | 77:4689596a2f3f | 32 | PageAddLabelledIp4 ("DNS server", DhcpDnsServerIp); |
| andrewboyson | 77:4689596a2f3f | 33 | PageAddLabelledIp4 ("DHCP server", DhcpServerIp); |
| andrewboyson | 77:4689596a2f3f | 34 | PageAddLabelledIp4 ("Router", DhcpRouterIp); |
| andrewboyson | 77:4689596a2f3f | 35 | PageAddLabelledIp4 ("Subnet mask", DhcpSubnetMask); |
| andrewboyson | 77:4689596a2f3f | 36 | PageAddLabelledIp4 ("Broadcast IP", DhcpBroadcastIp); |
| andrewboyson | 77:4689596a2f3f | 37 | PageAddLabelledInt ("Lease time IP", DhcpLeaseTime); |
| andrewboyson | 77:4689596a2f3f | 38 | PageAddLabelledInt ("Renewal T1", DhcpRenewalT1); |
| andrewboyson | 77:4689596a2f3f | 39 | PageAddLabelledInt ("Renewal T2", DhcpRenewalT2); |
| andrewboyson | 77:4689596a2f3f | 40 | PageAddLabelledInt ("Elapsed", DhcpGetElapsedLife()); |
| andrewboyson | 14:c3c43c8faf0e | 41 | |
| andrewboyson | 14:c3c43c8faf0e | 42 | PageAddH2("IP6 NDP"); |
| andrewboyson | 77:4689596a2f3f | 43 | PageAddLabelledInt ("Hop limit", NdpHopLimit); |
| andrewboyson | 77:4689596a2f3f | 44 | PageAddLabelledOnOff("Managed address", NdpManagedConfiguration); |
| andrewboyson | 77:4689596a2f3f | 45 | PageAddLabelledOnOff("Other configuration", NdpOtherConfiguration); |
| andrewboyson | 77:4689596a2f3f | 46 | PageAddLabelledMac ("Router MAC", NdpRouterMac); |
| andrewboyson | 77:4689596a2f3f | 47 | PageAddLabelledInt ("Prefix length", NdpPrefixLength); |
| andrewboyson | 77:4689596a2f3f | 48 | PageAddLabelledOnOff("Prefix flag L", NdpPrefixFlagL); |
| andrewboyson | 77:4689596a2f3f | 49 | PageAddLabelledOnOff("Prefix flag A", NdpPrefixFlagA); |
| andrewboyson | 77:4689596a2f3f | 50 | PageAddLabelledInt ("Prefix valid secs", NdpPrefixValidLifetime); |
| andrewboyson | 77:4689596a2f3f | 51 | PageAddLabelledInt ("Prefix preferred secs", NdpPrefixPreferredLifetime); |
| andrewboyson | 77:4689596a2f3f | 52 | PageAddLabelledIp6 ("Prefix", NdpPrefix); |
| andrewboyson | 77:4689596a2f3f | 53 | PageAddLabelledInt ("DNS life secs", NdpDnsLifetime); |
| andrewboyson | 77:4689596a2f3f | 54 | PageAddLabelledIp6 ("DNS server", NdpDnsServer); |
| andrewboyson | 77:4689596a2f3f | 55 | PageAddLabelledInt ("Lease time", NdpGetLease()); |
| andrewboyson | 77:4689596a2f3f | 56 | PageAddLabelledInt ("Elapsed", NdpGetElapsedLife()); |
| andrewboyson | 77:4689596a2f3f | 57 | PageAddLabelledIp6 ("SLAAC", SlaacLinkLocalIp); |
| andrewboyson | 77:4689596a2f3f | 58 | PageAddLabelledInt ("MTU", NdpMtu); |
| andrewboyson | 14:c3c43c8faf0e | 59 | |
| andrewboyson | 14:c3c43c8faf0e | 60 | PageAddH2("ARP 4"); HttpAddText("<code>"); Ar4SendHttp(); HttpAddText("</code>\r\n"); |
| andrewboyson | 14:c3c43c8faf0e | 61 | PageAddH2("DNS 4"); HttpAddText("<code>"); Nr4SendHttp(); HttpAddText("</code>\r\n"); |
| andrewboyson | 14:c3c43c8faf0e | 62 | PageAddH2("ARP 6"); HttpAddText("<code>"); Ar6SendHttp(); HttpAddText("</code>\r\n"); |
| andrewboyson | 14:c3c43c8faf0e | 63 | PageAddH2("DNS 6"); HttpAddText("<code>"); Nr6SendHttp(); HttpAddText("</code>\r\n"); |
| andrewboyson | 14:c3c43c8faf0e | 64 | |
| andrewboyson | 14:c3c43c8faf0e | 65 | PageAddEnd(); |
| andrewboyson | 14:c3c43c8faf0e | 66 | |
| andrewboyson | 14:c3c43c8faf0e | 67 | } |