test af_packet mode on bridges
All checks were successful
Build and Deploy MITM Webserver / traffic_target (push) Successful in 0s
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-04-12 17:58:19 +02:00
parent 9ee47284e0
commit 4521b9d99e
5 changed files with 131 additions and 36 deletions

View File

@@ -5,6 +5,7 @@
export interface SnifferStartRequest {
bridge?: string;
interface?: string;
bridge_capture_mode?: 'tc_ebpf' | 'af_packet';
}
/**
@@ -15,6 +16,7 @@ export interface SnifferStartResponse {
session_id: string;
target: string;
target_type: 'bridge' | 'interface';
capture_mode: 'tc_ebpf' | 'af_packet';
}
/**
@@ -26,7 +28,7 @@ export interface SnifferStopRequest {
}
/**
* Response returned when stopping sniffer(s).
* Response returned when stopping capture session(s).
*/
export interface SnifferStopResponse {
stopped: boolean;
@@ -36,7 +38,7 @@ export interface SnifferStopResponse {
}
/**
* Per-interface sniffer status (now includes owning session info).
* Per-interface capture status (now includes owning session info).
*/
export interface InterfaceSnifferStatus {
running: boolean;
@@ -44,6 +46,7 @@ export interface InterfaceSnifferStatus {
up: boolean;
session_id?: string | null;
session_label?: string | null;
capture_mode?: 'tc_ebpf' | 'af_packet' | null;
}
/**