ubus/uci/datastorage: add iface and hostname

The network overview now displays the interface name and hostname.
This commit is contained in:
Polynomialdivision 2020-06-09 10:24:04 +02:00
parent 050c1d7fed
commit ffa08dbccd
5 changed files with 62 additions and 2 deletions

View file

@ -8,6 +8,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <limits.h>
#ifndef ETH_ALEN
#define ETH_ALEN 6
@ -183,6 +184,7 @@ void print_auth_entry(auth_entry entry);
/* AP, Client */
#define SIGNATURE_LEN 1024
#define MAX_INTERFACE_NAME 64
// ---------------- Structs ----------------
typedef struct client_s {
@ -221,6 +223,8 @@ typedef struct ap_s {
uint32_t collision_domain;
uint32_t bandwidth;
uint32_t ap_weight;
char iface[MAX_INTERFACE_NAME];
char hostname[HOST_NAME_MAX];
} ap;
// ---------------- Defines ----------------