network

package
v0.0.0-...-4fa4a51 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCPFlagsFrame = "tcpflags"
)

Variables

View Source
var Frames = []string{netSrcFrame, netDstFrame, transSrcFrame, transDstFrame, netProtoFrame, transProtoFrame, appProtoFrame, hostnameFrame, methodFrame, contentTypeFrame, userAgentFrame, packetSizeFrame, TCPFlagsFrame}
View Source
var TCPFlagMap = map[string]uint64{
	"FIN": uint64(FIN),
	"SYN": uint64(SYN),
	"RST": uint64(RST),
	"PSH": uint64(PSH),
	"ACK": uint64(ACK),
	"URG": uint64(URG),
	"ECE": uint64(ECE),
	"CWR": uint64(CWR),
	"NS":  uint64(NS),
}

Functions

This section is empty.

Types

type Main

type Main struct {
	Iface         string
	Filename      string
	Snaplen       int32
	Promisc       bool
	Timeout       time.Duration
	NumExtractors int
	PilosaHost    string
	Filter        string
	Index         string
	BindAddr      string
	BufSize       int

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

func NewMain

func NewMain(stdin io.Reader, stdout, stderr io.Writer) *Main

func (*Main) AddLength

func (m *Main) AddLength(num int)

func (*Main) Get

func (m *Main) Get(frame string, id uint64) interface{}

func (*Main) GetID

func (m *Main) GetID(frame string, ival interface{}) (uint64, error)

func (*Main) Run

func (m *Main) Run() error

func (*Main) Setup

func (m *Main) Setup() error

type Nexter

type Nexter struct {
	// contains filtered or unexported fields
}

func (*Nexter) Last

func (n *Nexter) Last() (lastID uint64)

func (*Nexter) Next

func (n *Nexter) Next() (nextID uint64)

type StringIDs

type StringIDs struct {
	// contains filtered or unexported fields
}

func NewStringIDs

func NewStringIDs() *StringIDs

func (*StringIDs) Get

func (s *StringIDs) Get(id uint64) string

func (*StringIDs) GetID

func (s *StringIDs) GetID(input string) uint64

type TCPFlag

type TCPFlag uint64
const (
	FIN TCPFlag = iota
	SYN
	RST
	PSH
	ACK
	URG
	ECE
	CWR
	NS
)

func (TCPFlag) String

func (f TCPFlag) String() string

Jump to

Keyboard shortcuts

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