Add Linux TAP

This commit is contained in:
2026-09-03 20:18:59 +03:00
parent 948ae56f77
commit 9fce687690
29 changed files with 815 additions and 118 deletions
+7 -3
View File
@@ -3,6 +3,7 @@
#include "ping.h"
#include "esp_http_server.h"
#include "esp_log.h"
#include <stdio.h>
static const char *TAG = "web_server";
@@ -88,7 +89,7 @@ static esp_err_t main_page_handler(httpd_req_t *req)
return err;
}
return httpd_resp_sendstr_chunk(req, NULL);;
return httpd_resp_sendstr_chunk(req, NULL);
}
static esp_err_t send_page_header(httpd_req_t *req)
@@ -123,6 +124,9 @@ static esp_err_t send_device_table(httpd_req_t *req)
"</tr>"
);
if (err != ESP_OK)
return err;
for (size_t index = 0; index < device_list_count(); index++)
{
const device_info_t *current_device;
@@ -156,7 +160,7 @@ static esp_err_t send_device_row(httpd_req_t *req, const device_info_t *device)
"<tr>"
"<td>"
"<input type=\"checkbox\" name=\"mac\" value=\"%02X:%02X:%02X:%02X:%02X:%02X\">"
"<input type=\"checkbox\" name=\"mac\" value=\"%02X%02X%02X%02X%02X%02X\">"
"</td>"
"<td>%u.%u.%u.%u</td>"
"<td>%02X:%02X:%02X:%02X:%02X:%02X</td>"
@@ -210,4 +214,4 @@ static esp_err_t ping_handler(httpd_req_t *req)
}
return main_page_handler(req);
}
}