nfp

package module
v0.0.0-...-aa6c621 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2017 License: GPL-3.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHTTP

func IsHTTP(prefix []byte) int

IsHTTP Returns 0 for not HTTP, 1 for HTTP Request, and 2 for HTTP Response

Types

type HTTPStreamFactory

type HTTPStreamFactory struct{}

HTTPStreamFactory implements tcpassembly.StreamFactory

func (*HTTPStreamFactory) New

func (h *HTTPStreamFactory) New(net, transport gopacket.Flow) tcpassembly.Stream

New - make a new instance of an httpStream

type HTTPStreamRecord

type HTTPStreamRecord struct {
	Net, Transport gopacket.Flow
	Dump           []byte
}

type NetMetrics

type NetMetrics struct {
	UnusablePacket uint64
	DNSPacket      uint64
	TCPPacket      uint64
	UDPPacket      uint64
	IPSecAHPacket  uint64
	IPSecESPPacket uint64

	DNSRequests     map[string]int
	HTTPStreams     *list.List
	TLSClientHellos *list.List
}

NetMetrics - counts network things

func Analyze

func Analyze(pcap *pcap.Handle, seconds uint64) NetMetrics

Analyze - run packet analysis on pcap handle for given duration

func (NetMetrics) Print

func (m NetMetrics) Print()

Print this struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址