restructure frontend and add network settings
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 1m41s

This commit is contained in:
2025-12-18 20:38:27 +01:00
parent b0de61fd9d
commit 9afe49857a
15 changed files with 1479 additions and 696 deletions

View File

@@ -0,0 +1,58 @@
export interface InterfaceAddress {
family: "ipv4" | "ipv6";
address: string;
prefixlen: number;
}
export interface InterfaceInfo {
ifindex: number;
name: string;
state: string;
mac?: string | null;
mtu: number;
flags: string[];
addresses: InterfaceAddress[];
}
export interface RouteInfo {
dst?: string | null;
gateway?: string | null;
prefsrc?: string | null;
oif?: number | null;
ifname?: string | null;
table: number;
proto?: number | null;
scope?: number | null;
type?: number | null;
}
export interface BridgeInterfaceInfo {
ifindex: number;
ifname: string;
state?: string | null;
mtu?: number | null;
}
export interface BridgeInfo {
ifindex: number;
ifname: string;
state?: string | null;
mtu?: number | null;
stp_state?: number | null;
members: BridgeInterfaceInfo[];
}
export interface BridgeCreateRequest {
name: string;
interfaces: string[];
}
export interface BridgeRemoveRequest {
name: string;
}
// full-state response shape
export interface FullState {
interfaces: InterfaceInfo[];
routes: RouteInfo[];
bridges: BridgeInfo[];
}