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
Revision 167:3ba4e3c49631, committed 2020-04-02
- Comitter:
- andrewboyson
- Date:
- Thu Apr 02 19:08:25 2020 +0000
- Parent:
- 166:89e3ce39b31b
- Child:
- 168:59d286f933a0
- Commit message:
- Modified resolution cache ajaxs to include the index
Changed in this revision
--- a/resolve/ar4.c Thu Apr 02 11:58:33 2020 +0000
+++ b/resolve/ar4.c Thu Apr 02 19:08:25 2020 +0000
@@ -180,8 +180,12 @@
{
if (records[i].state)
{
+ HttpAddByteAsHex(i);
+ HttpAddChar('\t');
HttpAddInt32AsHex(MsTimerCount - records[i].elapsed);
+ HttpAddChar('\t');
HttpAddInt32AsHex(records[i].ip);
+ HttpAddChar('\t');
for (int b = 0; b < 6; b++) HttpAddByteAsHex(records[i].mac[b]);
HttpAddChar('\n');
}
--- a/resolve/ar6.c Thu Apr 02 11:58:33 2020 +0000
+++ b/resolve/ar6.c Thu Apr 02 19:08:25 2020 +0000
@@ -181,8 +181,12 @@
{
if (records[i].state)
{
+ HttpAddByteAsHex(i);
+ HttpAddChar('\t');
HttpAddInt32AsHex(MsTimerCount - records[i].elapsed);
+ HttpAddChar('\t');
for (int b = 0; b < 16; b++) HttpAddByteAsHex(records[i].ip[b]);
+ HttpAddChar('\t');
for (int b = 0; b < 6; b++) HttpAddByteAsHex(records[i].mac[b]);
HttpAddChar('\n');
}
--- a/resolve/nr4.c Thu Apr 02 11:58:33 2020 +0000
+++ b/resolve/nr4.c Thu Apr 02 19:08:25 2020 +0000
@@ -316,9 +316,14 @@
if (records[i].state == STATE_EMPTY) continue;
if (records[i].ip || records[i].name[0])
{
+ HttpAddByteAsHex(i);
+ HttpAddChar('\t');
HttpAddInt32AsHex(MsTimerCount - records[i].elapsed);
+ HttpAddChar('\t');
HttpAddInt32AsHex(records[i].ip);
+ HttpAddChar('\t');
HttpAddChar(letterFromStateAndProtocol(records[i].state, records[i].protocol));
+ HttpAddChar('\t');
HttpAddText(records[i].name);
HttpAddChar('\n');
}
--- a/resolve/nr6.c Thu Apr 02 11:58:33 2020 +0000
+++ b/resolve/nr6.c Thu Apr 02 19:08:25 2020 +0000
@@ -316,9 +316,14 @@
if (records[i].state == STATE_EMPTY) continue;
if (!Ip6AddressIsEmpty(records[i].ip) || records[i].name[0])
{
+ HttpAddByteAsHex(i);
+ HttpAddChar('\t');
HttpAddInt32AsHex(MsTimerCount - records[i].elapsed);
+ HttpAddChar('\t');
for (int b = 0; b < 16; b++) HttpAddByteAsHex(records[i].ip[b]);
+ HttpAddChar('\t');
HttpAddChar(letterFromStateAndProtocol(records[i].state, records[i].protocol));
+ HttpAddChar('\t');
HttpAddText(records[i].name);
HttpAddChar('\n');
}