Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Main ¶
type Main struct {
Iface string `help:"Interface on which to listen."`
Filename string `help:"File containing pcap data to read."`
Snaplen int32 `help:"Maximum number of bytes to capture per packet."`
Promisc bool `help:"Put capture interface into promiscuous mode."`
Timeout time.Duration `help:"Timeout for capturing packets."`
Concurrency int `help:"Number of goroutines parsing packets."`
PilosaHosts []string `help:"Comma separated list of pilosa host:port"`
Filter string `help:"BPF style filter for packet capture."`
Index string `help:"Pilosa index name."`
BindAddr string `help:"Local address for mapping proxy to bind."`
BufSize int `help:"Buffer size for Pilosa importer."`
MappingDir string `help:"Directory to store mapping data. Empty string uses a temp dir."`
Debug bool `help:"Turn on debug logging."`
Translator string `help:"How to store mappings. In memory(mem) or LevelDB(level)."`
}
func (*Main) NewNetSource ¶
type Packet ¶
type Packet struct {
Length int
NetProto string
NetSrc string
NetDst string
TransProto string
TransSrc string
TransDst string
TCP struct {
FIN bool
SYN bool
RST bool
PSH bool
ACK bool
URG bool
ECE bool
CWR bool
NS bool
}
AppProto string
HTTP struct {
Hostname string
UserAgent string
Method string
}
}
Click to show internal directories.
Click to hide internal directories.