Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Files at this revision

API Documentation at this revision

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

resolve/ar4.c Show annotated file Show diff for this revision Revisions of this file
resolve/ar6.c Show annotated file Show diff for this revision Revisions of this file
resolve/nr4.c Show annotated file Show diff for this revision Revisions of this file
resolve/nr6.c Show annotated file Show diff for this revision Revisions of this file
--- 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');
         }