test af_packet mode on bridges
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user