Add pcap command to capture from a PCAP file

This commit is contained in:
M. Mert Yildiran
2022-12-27 07:31:04 +03:00
parent 65cea05fad
commit afbd6963b8
12 changed files with 273 additions and 12 deletions

View File

@@ -23,9 +23,14 @@ const (
DebugLabel = "debug"
)
type WorkerConfig struct {
SrcPort uint16 `yaml:"src-port" default:"8897"`
DstPort uint16 `yaml:"dst-port" default:"8897"`
}
type HubConfig struct {
SrcPort uint16 `yaml:"src-port" default:"8898"`
DstPort uint16 `yaml:"dst-port" default:"80"`
DstPort uint16 `yaml:"dst-port" default:"8898"`
}
type FrontConfig struct {
@@ -34,6 +39,7 @@ type FrontConfig struct {
}
type TapConfig struct {
Worker WorkerConfig `yaml:"worker"`
Hub HubConfig `yaml:"hub"`
Front FrontConfig `yaml:"front"`
DockerRegistry string `yaml:"docker-registry" default:"docker.io/kubeshark"`