httpd: send_counter(): Validate phys_port_idx and better error handling

This commit is contained in:
René van Dorst
2026-08-25 07:55:17 +02:00
parent 1212def799
commit beb14deba5
3 changed files with 26 additions and 17 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
#ifndef __PAGE_IMPL_H__
#define __PAGE_IMPL_H__
void send_counters(char port);
#include <stdbool.h>
bool send_counters(uint8_t phys_port_idx);
void send_status(void);
void send_vlan(uint16_t vlan);
void send_basic_info(void);