libpcap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package libpcap is a minimal libpcap wrapper for the purposes of dumpy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

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

func DumpOpen

func DumpOpen(pcap *Pcap, filename string) (*Dumper, error)

func (*Dumper) Close

func (d *Dumper) Close()

func (*Dumper) Dump

func (d *Dumper) Dump(packet *Packet)

type Packet

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

func (*Packet) Seconds

func (p *Packet) Seconds() int64

type Pcap

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

func OpenOffline

func OpenOffline(filename string) (*Pcap, error)

func (*Pcap) Close

func (p *Pcap) Close()

func (*Pcap) CompileAndSetFilter

func (p *Pcap) CompileAndSetFilter(filter string) error

func (*Pcap) GetErr

func (p *Pcap) GetErr() string

func (*Pcap) Next

func (p *Pcap) Next() (*Packet, error)

Jump to

Keyboard shortcuts

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