SYMBOL INDEX (622 symbols across 54 files) FILE: capture/capture.go type Handle (line 38) | type Handle interface FILE: capture/file/capture.go type Handle (line 44) | type Handle struct method LinkType (line 144) | func (h *Handle) LinkType() packet.Type { method SetMTU (line 149) | func (h *Handle) SetMTU(mtu int) error { method SetPromiscMode (line 154) | func (h *Handle) SetPromiscMode(promisc bool) error { method SetMonitorMode (line 159) | func (h *Handle) SetMonitorMode(monitor bool) error { method ApplyFilter (line 165) | func (h *Handle) ApplyFilter(filter *filter.Filter) error { method Activate (line 177) | func (h *Handle) Activate() error { method Capture (line 184) | func (h *Handle) Capture() ([]byte, error) { method Inject (line 221) | func (h *Handle) Inject(buf []byte) error { method Close (line 243) | func (h *Handle) Close() { function Open (line 59) | func Open(file_name string) (*Handle, error) { function create_file (line 115) | func create_file(file_name string) (*os.File, error) { function open_file (line 133) | func open_file(file_name string) (*os.File, error) { FILE: capture/file/capture_test.go function TestCapture (line 39) | func TestCapture(t *testing.T) { function TestCaptureFilter (line 65) | func TestCaptureFilter(t *testing.T) { function TestInject (line 102) | func TestInject(t *testing.T) { function ExampleCapture (line 139) | func ExampleCapture() { function ExampleInject (line 170) | func ExampleInject() { FILE: capture/pcap/capture.go type Handle (line 46) | type Handle struct method LinkType (line 74) | func (h *Handle) LinkType() packet.Type { method SetMTU (line 78) | func (h *Handle) SetMTU(mtu int) error { method SetPromiscMode (line 88) | func (h *Handle) SetPromiscMode(promisc bool) error { method SetMonitorMode (line 107) | func (h *Handle) SetMonitorMode(monitor bool) error { method ApplyFilter (line 126) | func (h *Handle) ApplyFilter(filter *filter.Filter) error { method Activate (line 148) | func (h *Handle) Activate() error { method Capture (line 159) | func (h *Handle) Capture() ([]byte, error) { method Inject (line 187) | func (h *Handle) Inject(buf []byte) error { method Close (line 200) | func (h *Handle) Close() { method get_error (line 204) | func (h *Handle) get_error() error { function Open (line 53) | func Open(dev_name string) (*Handle, error) { FILE: capture/pcap/capture_test.go function ExampleCapture (line 37) | func ExampleCapture() { function ExampleInject (line 64) | func ExampleInject() { FILE: examples/arp/main.go function main (line 46) | func main() { FILE: examples/dump/main.go function main (line 44) | func main() { FILE: examples/ping/main.go function main (line 49) | func main() { FILE: examples/route/main.go function main (line 40) | func main() { FILE: examples/syn_scan/main.go function main (line 53) | func main() { FILE: examples/tracereply/main.go function main (line 18) | func main() { FILE: examples/traceroute/main.go function main (line 55) | func main() { FILE: filter/bpf_builder.go type Builder (line 37) | type Builder struct method Build (line 60) | func (b *Builder) Build() *Filter { method Label (line 94) | func (b *Builder) Label(name string) *Builder { method LD (line 104) | func (b *Builder) LD(s Size, m Mode, val uint32) *Builder { method LDX (line 115) | func (b *Builder) LDX(s Size, m Mode, val uint32) *Builder { method ST (line 123) | func (b *Builder) ST(off uint32) *Builder { method STX (line 130) | func (b *Builder) STX(off uint32) *Builder { method ADD (line 139) | func (b *Builder) ADD(s Src, val uint32) *Builder { method SUB (line 149) | func (b *Builder) SUB(s Src, val uint32) *Builder { method MUL (line 159) | func (b *Builder) MUL(s Src, val uint32) *Builder { method DIV (line 169) | func (b *Builder) DIV(s Src, val uint32) *Builder { method OR (line 179) | func (b *Builder) OR(s Src, val uint32) *Builder { method AND (line 189) | func (b *Builder) AND(s Src, val uint32) *Builder { method LSH (line 199) | func (b *Builder) LSH(s Src, val uint32) *Builder { method RSH (line 209) | func (b *Builder) RSH(s Src, val uint32) *Builder { method NEG (line 216) | func (b *Builder) NEG() *Builder { method MOD (line 226) | func (b *Builder) MOD(s Src, val uint32) *Builder { method XOR (line 236) | func (b *Builder) XOR(s Src, val uint32) *Builder { method JA (line 244) | func (b *Builder) JA(j string) *Builder { method JEQ (line 255) | func (b *Builder) JEQ(s Src, jt, jf string, cmp uint32) *Builder { method JGT (line 267) | func (b *Builder) JGT(s Src, jt, jf string, cmp uint32) *Builder { method JGE (line 279) | func (b *Builder) JGE(s Src, jt, jf string, cmp uint32) *Builder { method JSET (line 289) | func (b *Builder) JSET(s Src, jt, jf string, cmp uint32) *Builder { method RET (line 302) | func (b *Builder) RET(s Src, bytes uint32) *Builder { method TAX (line 310) | func (b *Builder) TAX() *Builder { method TXA (line 318) | func (b *Builder) TXA() *Builder { method AppendInstruction (line 325) | func (b *Builder) AppendInstruction(code Code, jt, jf uint8, k uint32)... function NewBuilder (line 47) | func NewBuilder() *Builder { FILE: filter/bpf_builder_test.go function TestEmpty (line 38) | func TestEmpty(t *testing.T) { function TestARP (line 53) | func TestARP(t *testing.T) { function TestARPcBPF (line 67) | func TestARPcBPF(t *testing.T) { function TestDNS (line 95) | func TestDNS(t *testing.T) { function TestALUOps (line 121) | func TestALUOps(t *testing.T) { function ExampleBuilder (line 159) | func ExampleBuilder() { FILE: filter/bpf_filter.c function u_int (line 76) | u_int function bpf_validate (line 366) | int function bpf_append_insn (line 422) | int function bpf_get_len (line 438) | int type bpf_insn (line 444) | struct bpf_insn type bpf_program (line 445) | struct bpf_program FILE: filter/bpf_filter.go type Filter (line 46) | type Filter struct method Match (line 91) | func (f *Filter) Match(buf []byte) bool { method Filter (line 103) | func (f *Filter) Filter(buf []byte) uint { method Validate (line 113) | func (f *Filter) Validate() bool { method Cleanup (line 122) | func (f *Filter) Cleanup() { method Len (line 132) | func (f *Filter) Len() int { method Program (line 139) | func (f *Filter) Program() unsafe.Pointer { method String (line 143) | func (f *Filter) String() string { method append_insn (line 163) | func (f *Filter) append_insn(code Code, jt, jf uint8, k uint32) { type Code (line 50) | type Code constant LD (line 53) | LD Code = syscall.BPF_LD constant LDX (line 54) | LDX = syscall.BPF_LDX constant ST (line 55) | ST = syscall.BPF_ST constant STX (line 56) | STX = syscall.BPF_STX constant ALU (line 57) | ALU = syscall.BPF_ALU constant JMP (line 58) | JMP = syscall.BPF_JMP constant RET (line 59) | RET = syscall.BPF_RET constant MISC (line 60) | MISC = syscall.BPF_MISC type Size (line 63) | type Size constant Word (line 66) | Word Size = syscall.BPF_W constant Half (line 67) | Half = syscall.BPF_H constant Byte (line 68) | Byte = syscall.BPF_B type Mode (line 71) | type Mode constant IMM (line 74) | IMM Mode = syscall.BPF_IMM constant ABS (line 75) | ABS = syscall.BPF_ABS constant IND (line 76) | IND = syscall.BPF_IND constant MEM (line 77) | MEM = syscall.BPF_MEM constant LEN (line 78) | LEN = syscall.BPF_LEN constant MSH (line 79) | MSH = syscall.BPF_MSH type Src (line 82) | type Src constant Const (line 85) | Const Src = syscall.BPF_K constant Index (line 86) | Index = syscall.BPF_X constant Acc (line 87) | Acc = syscall.BPF_A FILE: filter/bpf_filter.h type bpf_u_int32 (line 40) | typedef unsigned int bpf_u_int32; type u_char (line 41) | typedef unsigned char u_char; type bpf_program (line 43) | struct bpf_program { type bpf_insn (line 110) | struct bpf_insn { type bpf_insn (line 128) | struct bpf_insn type bpf_insn (line 131) | struct bpf_insn type bpf_program (line 133) | struct bpf_program type bpf_program (line 136) | struct bpf_program type bpf_insn (line 138) | struct bpf_insn type bpf_program (line 138) | struct bpf_program FILE: filter/bpf_filter_test.go function TestMatch (line 76) | func TestMatch(t *testing.T) { function BenchmarkMatch (line 134) | func BenchmarkMatch(b *testing.B) { function ExampleFilter (line 142) | func ExampleFilter() { FILE: filter/pcap.go function Compile (line 44) | func Compile(filter string, link_type packet.Type, optimize bool) (*Filt... FILE: layers/layers.go function Compose (line 55) | func Compose(pkts ...packet.Packet) (packet.Packet, error) { function Pack (line 74) | func Pack(pkts ...packet.Packet) ([]byte, error) { function Unpack (line 112) | func Unpack(buf []byte, pkts ...packet.Packet) (packet.Packet, error) { function UnpackAll (line 153) | func UnpackAll(buf []byte, link_type packet.Type) (packet.Packet, error) { function FindLayer (line 210) | func FindLayer(p packet.Packet, layer packet.Type) packet.Packet { FILE: layers/layers_test.go function TestPackEthArp (line 61) | func TestPackEthArp(t *testing.T) { function TestUnpackEthArp (line 82) | func TestUnpackEthArp(t *testing.T) { function BenchmarkUnpackEthArp (line 89) | func BenchmarkUnpackEthArp(bn *testing.B) { function TestUnpackAllEthArp (line 98) | func TestUnpackAllEthArp(t *testing.T) { function BenchmarkUnpackAllEthArp (line 113) | func BenchmarkUnpackAllEthArp(bn *testing.B) { function TestPackEthVLANArp (line 126) | func TestPackEthVLANArp(t *testing.T) { function TestUnpackEthVLANArp (line 150) | func TestUnpackEthVLANArp(t *testing.T) { function BenchmarkUnpackEthVLANArp (line 157) | func BenchmarkUnpackEthVLANArp(bn *testing.B) { function TestUnpackAllEthVLANArp (line 167) | func TestUnpackAllEthVLANArp(t *testing.T) { function BenchmarkUnpackAllEthVLANArp (line 188) | func BenchmarkUnpackAllEthVLANArp(bn *testing.B) { function TestPackEthIPv4UDP (line 201) | func TestPackEthIPv4UDP(t *testing.T) { function TestUnpackEthUPv4UDP (line 224) | func TestUnpackEthUPv4UDP(t *testing.T) { function BenchmarkUnpackEthUPv4UDP (line 235) | func BenchmarkUnpackEthUPv4UDP(bn *testing.B) { function TestUnpackAllEthIPv4UDP (line 245) | func TestUnpackAllEthIPv4UDP(t *testing.T) { function BenchmarkUnpackAllEthIPv4UDP (line 266) | func BenchmarkUnpackAllEthIPv4UDP(bn *testing.B) { function TestPackEthIPv4UDPRaw (line 282) | func TestPackEthIPv4UDPRaw(t *testing.T) { function TestUnpackEthUPv4UDPRaw (line 316) | func TestUnpackEthUPv4UDPRaw(t *testing.T) { function BenchmarkUnpackEthUPv4UDPRaw (line 329) | func BenchmarkUnpackEthUPv4UDPRaw(bn *testing.B) { function TestUnpackAllEthIPv4UDPRaw (line 341) | func TestUnpackAllEthIPv4UDPRaw(t *testing.T) { function BenchmarkUnpackAllEthIPv4UDPRaw (line 367) | func BenchmarkUnpackAllEthIPv4UDPRaw(bn *testing.B) { function TestPackEthIPv4TCP (line 381) | func TestPackEthIPv4TCP(t *testing.T) { function TestUnpackEthUPv4TCP (line 406) | func TestUnpackEthUPv4TCP(t *testing.T) { function BenchmarkUnpackEthUPv4TCP (line 417) | func BenchmarkUnpackEthUPv4TCP(bn *testing.B) { function TestUnpackAllEthIPv4TCP (line 427) | func TestUnpackAllEthIPv4TCP(t *testing.T) { function BenchmarkUnpackAllEthIPv4TCP (line 448) | func BenchmarkUnpackAllEthIPv4TCP(bn *testing.B) { function TestPackEthIPv4TCPRaw (line 465) | func TestPackEthIPv4TCPRaw(t *testing.T) { function TestUnpackEthUPv4TCPRaw (line 501) | func TestUnpackEthUPv4TCPRaw(t *testing.T) { function BenchmarkUnpackEthUPv4TCPRaw (line 514) | func BenchmarkUnpackEthUPv4TCPRaw(bn *testing.B) { function TestUnpackAllEthIPv4TCPRaw (line 526) | func TestUnpackAllEthIPv4TCPRaw(t *testing.T) { function BenchmarkUnpackAllEthIPv4TCPRaw (line 552) | func BenchmarkUnpackAllEthIPv4TCPRaw(bn *testing.B) { function TestFindLayer (line 558) | func TestFindLayer(t *testing.T) { function ExamplePack (line 580) | func ExamplePack() { function ExampleUnpack (line 602) | func ExampleUnpack() { FILE: network/network.go function Send (line 50) | func Send(c capture.Handle, pkts ...packet.Packet) error { function Recv (line 71) | func Recv(c capture.Handle) (packet.Packet, error) { function SendRecv (line 88) | func SendRecv(c capture.Handle, t time.Duration, pkts ...packet.Packet) ... function NextHopMAC (line 121) | func NextHopMAC(c capture.Handle, t time.Duration, r *routing.Route, add... FILE: packet/arp/pkt.go type Packet (line 39) | type Packet struct method GetType (line 72) | func (p *Packet) GetType() packet.Type { method GetLength (line 76) | func (p *Packet) GetLength() uint16 { method Equals (line 80) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 84) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 97) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 115) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 133) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 137) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 141) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 145) | func (p *Packet) InitChecksum(csum uint32) { method String (line 148) | func (p *Packet) String() string { type Operation (line 53) | type Operation method String (line 152) | func (o Operation) String() string { constant Request (line 56) | Request Operation = 1 constant Reply (line 57) | Reply = 2 function Make (line 60) | func Make() *Packet { FILE: packet/arp/pkt_test.go function MakeTestSimple (line 52) | func MakeTestSimple() *arp.Packet { function TestPack (line 73) | func TestPack(t *testing.T) { function BenchmarkPack (line 89) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 100) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 118) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/buffer.go type Buffer (line 41) | type Buffer struct method Init (line 48) | func (b *Buffer) Init(buf []byte) { method Bytes (line 55) | func (b *Buffer) Bytes() []byte { method Buffer (line 60) | func (b *Buffer) Buffer() []byte { method Len (line 65) | func (b *Buffer) Len() int { method SetOffset (line 70) | func (b *Buffer) SetOffset(off int) { method NewLayer (line 75) | func (b *Buffer) NewLayer() { method LayerBytes (line 80) | func (b *Buffer) LayerBytes() []byte { method LayerLen (line 85) | func (b *Buffer) LayerLen() int { method Write (line 90) | func (b *Buffer) Write(p []byte) (n int, err error) { method WriteN (line 97) | func (b *Buffer) WriteN(data interface{}) error { method WriteL (line 102) | func (b *Buffer) WriteL(data interface{}) error { method PutUint16N (line 108) | func (b *Buffer) PutUint16N(off int, data uint16) { method Read (line 113) | func (b *Buffer) Read(p []byte) (n int, err error) { method ReadN (line 120) | func (p *Buffer) ReadN(data interface{}) error { method ReadL (line 125) | func (p *Buffer) ReadL(data interface{}) error { method ReadLAligned (line 130) | func (p *Buffer) ReadLAligned(data interface{}, width uintptr) error { method Next (line 138) | func (b *Buffer) Next(n int) []byte { FILE: packet/eth/pkt.go type Packet (line 40) | type Packet struct method Equals (line 71) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 75) | func (p *Packet) Answers(other packet.Packet) bool { method GetType (line 91) | func (p *Packet) GetType() packet.Type { method GetLength (line 95) | func (p *Packet) GetLength() uint16 { method Pack (line 103) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 116) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 130) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 134) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 138) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 149) | func (p *Packet) InitChecksum(csum uint32) { method String (line 152) | func (p *Packet) String() string { type EtherType (line 48) | type EtherType method String (line 196) | func (t EtherType) String() string { constant None (line 51) | None EtherType = 0x0000 constant ARP (line 52) | ARP = 0x0806 constant IPv4 (line 53) | IPv4 = 0x0800 constant IPv6 (line 54) | IPv6 = 0x86dd constant LLC (line 55) | LLC = 0x0001 constant LLDP (line 56) | LLDP = 0x088cc constant QinQ (line 57) | QinQ = 0x88a8 constant TRILL (line 58) | TRILL = 0x22f3 constant VLAN (line 59) | VLAN = 0x8100 constant WoL (line 60) | WoL = 0x0842 function Make (line 63) | func Make() *Packet { function EtherTypeToType (line 170) | func EtherTypeToType(ethertype EtherType) packet.Type { function TypeToEtherType (line 181) | func TypeToEtherType(pkttype packet.Type) EtherType { FILE: packet/eth/pkt_test.go function MakeTestSimple (line 48) | func MakeTestSimple() *eth.Packet { function TestPack (line 59) | func TestPack(t *testing.T) { function BenchmarkPack (line 75) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 86) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 104) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/icmpv4/pkt.go type Packet (line 39) | type Packet struct method GetType (line 79) | func (p *Packet) GetType() packet.Type { method GetLength (line 83) | func (p *Packet) GetLength() uint16 { method Equals (line 91) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 95) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 111) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 124) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 136) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 140) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 149) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 158) | func (p *Packet) InitChecksum(csum uint32) { method String (line 161) | func (p *Packet) String() string { type Type (line 48) | type Type method String (line 165) | func (t Type) String() string { type Code (line 49) | type Code method String (line 186) | func (c Code) String() string { constant EchoReply (line 52) | EchoReply Type = iota constant Reserved1 (line 53) | Reserved1 constant Reserved2 (line 54) | Reserved2 constant DstUnreachable (line 55) | DstUnreachable constant SrcQuench (line 56) | SrcQuench constant RedirectMsg (line 57) | RedirectMsg constant Reserved3 (line 58) | Reserved3 constant Reserved4 (line 59) | Reserved4 constant EchoRequest (line 60) | EchoRequest constant RouterAdv (line 61) | RouterAdv constant RouterSol (line 62) | RouterSol constant TimeExceeded (line 63) | TimeExceeded constant ParamProblem (line 64) | ParamProblem constant Timestamp (line 65) | Timestamp constant TimestampReply (line 66) | TimestampReply constant InfoRequest (line 67) | InfoRequest constant InfoReply (line 68) | InfoReply constant AddrMaskRequest (line 69) | AddrMaskRequest constant AddrMaskReply (line 70) | AddrMaskReply function Make (line 73) | func Make() *Packet { FILE: packet/icmpv4/pkt_test.go function MakeTestSimple (line 43) | func MakeTestSimple() *icmpv4.Packet { function TestPack (line 52) | func TestPack(t *testing.T) { function BenchmarkPack (line 68) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 79) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 98) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/icmpv6/pkt.go type Packet (line 39) | type Packet struct method GetType (line 70) | func (p *Packet) GetType() packet.Type { method GetLength (line 74) | func (p *Packet) GetLength() uint16 { method Equals (line 82) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 86) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 98) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 112) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 123) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 127) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 136) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 145) | func (p *Packet) InitChecksum(csum uint32) { method String (line 149) | func (p *Packet) String() string { type Type (line 48) | type Type method String (line 153) | func (t Type) String() string { type Code (line 49) | type Code method String (line 165) | func (c Code) String() string { constant DstUnreachable (line 52) | DstUnreachable Type = 1 constant PacketTooBig (line 53) | PacketTooBig = 2 constant TimeExceeded (line 54) | TimeExceeded = 3 constant ParamProblem (line 55) | ParamProblem = 4 constant Private1 (line 56) | Private1 = 100 constant Private2 (line 57) | Private2 = 101 constant Reserved1 (line 58) | Reserved1 = 127 constant EchoRequest (line 59) | EchoRequest = 128 constant EchoReply (line 60) | EchoReply = 129 function Make (line 64) | func Make() *Packet { FILE: packet/icmpv6/pkt_test.go function MakeTestSimple (line 45) | func MakeTestSimple() *icmpv6.Packet { function TestPack (line 51) | func TestPack(t *testing.T) { function BenchmarkPack (line 67) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 78) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 96) | func BenchmarkUnpack(bn *testing.B) { function TestPackWithIPv6 (line 113) | func TestPackWithIPv6(t *testing.T) { function TestUnpackWithIPv6 (line 135) | func TestUnpackWithIPv6(t *testing.T) { FILE: packet/ipv4/pkt.go type Packet (line 40) | type Packet struct method GetType (line 94) | func (p *Packet) GetType() packet.Type { method GetLength (line 98) | func (p *Packet) GetLength() uint16 { method Equals (line 106) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 110) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 133) | func (p *Packet) Pack(buf *packet.Buffer) error { method checksum (line 151) | func (p *Packet) checksum(raw_bytes []byte) { method pseudo_checksum (line 162) | func (p *Packet) pseudo_checksum() uint32 { method Unpack (line 175) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 205) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 209) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 213) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 223) | func (p *Packet) InitChecksum(csum uint32) { method String (line 226) | func (p *Packet) String() string { type Flags (line 56) | type Flags method String (line 230) | func (f Flags) String() string { constant Evil (line 59) | Evil Flags = 1 << 2 constant DontFragment (line 60) | DontFragment = 1 << 1 constant MoreFragments (line 61) | MoreFragments = 1 << 0 type Protocol (line 64) | type Protocol method String (line 301) | func (p Protocol) String() string { constant None (line 67) | None Protocol = 0x00 constant GRE (line 68) | GRE = 0x2F constant ICMPv4 (line 69) | ICMPv4 = 0x01 constant ICMPv6 (line 70) | ICMPv6 = 0x3A constant IGMP (line 71) | IGMP = 0x02 constant IPSecAH (line 72) | IPSecAH = 0x33 constant IPSecESP (line 73) | IPSecESP = 0x32 constant IPv6 (line 74) | IPv6 = 0x29 constant ISIS (line 75) | ISIS = 0x7C constant L2TP (line 76) | L2TP = 0x73 constant OSPF (line 77) | OSPF = 0x59 constant SCTP (line 78) | SCTP = 0x84 constant TCP (line 79) | TCP = 0x06 constant UDP (line 80) | UDP = 0x11 constant UDPLite (line 81) | UDPLite = 0x88 function Make (line 84) | func Make() *Packet { function CalculateChecksum (line 248) | func CalculateChecksum(raw_bytes []byte, csum uint32) uint16 { function ProtocolToType (line 280) | func ProtocolToType(proto Protocol) packet.Type { function TypeToProtocol (line 291) | func TypeToProtocol(pkttype packet.Type) Protocol { FILE: packet/ipv4/pkt_test.go function MakeTestSimple (line 48) | func MakeTestSimple() *ipv4.Packet { function TestPack (line 63) | func TestPack(t *testing.T) { function BenchmarkPack (line 79) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 90) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 109) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/ipv6/pkt.go type Packet (line 40) | type Packet struct method GetType (line 61) | func (p *Packet) GetType() packet.Type { method GetLength (line 65) | func (p *Packet) GetLength() uint16 { method Equals (line 73) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 77) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 96) | func (p *Packet) Pack(buf *packet.Buffer) error { method pseudo_checksum (line 111) | func (p *Packet) pseudo_checksum() uint32 { method Unpack (line 127) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 153) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 157) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 161) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 171) | func (p *Packet) InitChecksum(csum uint32) { method String (line 174) | func (p *Packet) String() string { type Flags (line 52) | type Flags function Make (line 54) | func Make() *Packet { FILE: packet/ipv6/pkt_test.go function MakeTestSimple (line 51) | func MakeTestSimple() *ipv6.Packet { function TestPack (line 64) | func TestPack(t *testing.T) { function BenchmarkPack (line 80) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 91) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 109) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/llc/pkt.go type Packet (line 36) | type Packet struct method GetType (line 48) | func (p *Packet) GetType() packet.Type { method GetLength (line 52) | func (p *Packet) GetLength() uint16 { method Equals (line 60) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 64) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 68) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 81) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 97) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 101) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 109) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 115) | func (p *Packet) InitChecksum(csum uint32) { method String (line 118) | func (p *Packet) String() string { function Make (line 44) | func Make() *Packet { FILE: packet/llc/pkt_test.go function MakeTestSimple (line 43) | func MakeTestSimple() *llc.Packet { function TestPack (line 51) | func TestPack(t *testing.T) { function BenchmarkPack (line 67) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 78) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 96) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/packet.go type Type (line 42) | type Type method ToLinkType (line 131) | func (pkttype Type) ToLinkType() uint32 { method String (line 141) | func (t Type) String() string { constant None (line 45) | None Type = iota constant ARP (line 46) | ARP constant Bluetooth (line 47) | Bluetooth constant Eth (line 48) | Eth constant GRE (line 49) | GRE constant ICMPv4 (line 50) | ICMPv4 constant ICMPv6 (line 51) | ICMPv6 constant IGMP (line 52) | IGMP constant IPSec (line 53) | IPSec constant IPv4 (line 54) | IPv4 constant IPv6 (line 55) | IPv6 constant ISIS (line 56) | ISIS constant L2TP (line 57) | L2TP constant LLC (line 58) | LLC constant LLDP (line 59) | LLDP constant OSPF (line 60) | OSPF constant RadioTap (line 61) | RadioTap constant Raw (line 62) | Raw constant SCTP (line 63) | SCTP constant SLL (line 64) | SLL constant SNAP (line 65) | SNAP constant TCP (line 66) | TCP constant TRILL (line 67) | TRILL constant UDP (line 68) | UDP constant UDPLite (line 69) | UDPLite constant VLAN (line 70) | VLAN constant WiFi (line 71) | WiFi constant WoL (line 72) | WoL type Packet (line 77) | type Packet interface function LinkType (line 120) | func LinkType(link_type uint32) Type { function Compare (line 175) | func Compare(a, b Packet) bool { function compare_value (line 203) | func compare_value(a, b reflect.Value) bool { function Stringify (line 259) | func Stringify(p Packet) string { function stringify_value (line 293) | func stringify_value(key string, val reflect.Value) string { FILE: packet/radiotap/pkt.go type Packet (line 38) | type Packet struct method GetType (line 71) | func (p *Packet) GetType() packet.Type { method GetLength (line 75) | func (p *Packet) GetLength() uint16 { method Equals (line 83) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 87) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 91) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 103) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 118) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 122) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 126) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 133) | func (p *Packet) InitChecksum(csum uint32) { method String (line 136) | func (p *Packet) String() string { type Present (line 46) | type Present method String (line 140) | func (p Present) String() string { constant TSFT (line 49) | TSFT Present = 1 << iota constant Flags (line 50) | Flags constant Rate (line 51) | Rate constant Channel (line 52) | Channel constant FHSS (line 53) | FHSS constant DbmAntSignal (line 54) | DbmAntSignal constant DbmAntNoise (line 55) | DbmAntNoise constant LockQuality (line 56) | LockQuality constant TXAttenuation (line 57) | TXAttenuation constant DbTXAttenuation (line 58) | DbTXAttenuation constant DbmTXPower (line 59) | DbmTXPower constant Antenna (line 60) | Antenna constant DbAntSignal (line 61) | DbAntSignal constant DbAntNoise (line 62) | DbAntNoise constant EXT (line 63) | EXT function Make (line 66) | func Make() *Packet { FILE: packet/radiotap/pkt_test.go function MakeTestSimple (line 45) | func MakeTestSimple() *radiotap.Packet { function TestPack (line 57) | func TestPack(t *testing.T) { function BenchmarkPack (line 73) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 84) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 102) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/raw/pkt.go type Packet (line 38) | type Packet struct method GetType (line 46) | func (p *Packet) GetType() packet.Type { method GetLength (line 50) | func (p *Packet) GetLength() uint16 { method Equals (line 54) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 58) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 62) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 68) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 74) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 78) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 82) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 86) | func (p *Packet) InitChecksum(csum uint32) { method String (line 89) | func (p *Packet) String() string { function Make (line 42) | func Make() *Packet { FILE: packet/raw/pkt_test.go function MakeTestSimple (line 44) | func MakeTestSimple() *raw.Packet { function TestPack (line 50) | func TestPack(t *testing.T) { function BenchmarkPack (line 66) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 77) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 95) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/sll/pkt.go type Packet (line 39) | type Packet struct method GetType (line 66) | func (p *Packet) GetType() packet.Type { method GetLength (line 70) | func (p *Packet) GetLength() uint16 { method Equals (line 78) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 82) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 86) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 101) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 114) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 118) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 122) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 129) | func (p *Packet) InitChecksum(csum uint32) { method String (line 132) | func (p *Packet) String() string { type Type (line 48) | type Type method String (line 136) | func (t Type) String() string { constant Host (line 51) | Host Type = 0 constant Broadcast (line 52) | Broadcast Type = 1 constant Multicast (line 53) | Multicast Type = 2 constant OtherHost (line 54) | OtherHost Type = 3 constant Outgoing (line 55) | Outgoing Type = 4 function Make (line 58) | func Make() *Packet { FILE: packet/sll/pkt_test.go function MakeTestSimple (line 48) | func MakeTestSimple() *sll.Packet { function TestPack (line 60) | func TestPack(t *testing.T) { function BenchmarkPack (line 76) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 87) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 105) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/snap/pkt.go type Packet (line 37) | type Packet struct method GetType (line 48) | func (p *Packet) GetType() packet.Type { method GetLength (line 52) | func (p *Packet) GetLength() uint16 { method Equals (line 60) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 64) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 68) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 75) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 82) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 86) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 94) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 101) | func (p *Packet) InitChecksum(csum uint32) { method String (line 104) | func (p *Packet) String() string { function Make (line 44) | func Make() *Packet { FILE: packet/snap/pkt_test.go function MakeTestSimple (line 44) | func MakeTestSimple() *snap.Packet { function TestPack (line 50) | func TestPack(t *testing.T) { function BenchmarkPack (line 66) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 77) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 95) | func BenchmarkUnpack(bn *testing.B) { FILE: packet/tcp/pkt.go type Packet (line 39) | type Packet struct method GetType (line 94) | func (p *Packet) GetType() packet.Type { method GetLength (line 98) | func (p *Packet) GetLength() uint16 { method Equals (line 106) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 110) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 123) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 194) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 278) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 282) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 286) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 292) | func (p *Packet) InitChecksum(csum uint32) { method String (line 296) | func (p *Packet) String() string { type Flags (line 54) | type Flags method String (line 300) | func (f Flags) String() string { constant Syn (line 57) | Syn Flags = 1<<1 constant Fin (line 58) | Fin = 1<<2 constant Rst (line 59) | Rst = 1<<3 constant PSH (line 60) | PSH = 1<<4 constant Ack (line 61) | Ack = 1<<5 constant Urg (line 62) | Urg = 1<<6 constant ECE (line 63) | ECE = 1<<7 constant Cwr (line 64) | Cwr = 1<<8 constant NS (line 65) | NS = 1<<9 type Option (line 68) | type Option struct type OptType (line 74) | type OptType constant End (line 77) | End OptType = 0x00 constant Nop (line 78) | Nop = 0x01 constant MSS (line 79) | MSS = 0x02 constant WindowScale (line 80) | WindowScale = 0x03 constant SAckOk (line 81) | SAckOk = 0x04 constant SAck (line 82) | SAck = 0x05 constant Timestamp (line 83) | Timestamp = 0x08 function Make (line 86) | func Make() *Packet { FILE: packet/tcp/pkt_test.go function MakeTestSimple (line 46) | func MakeTestSimple() *tcp.Packet { function TestPack (line 59) | func TestPack(t *testing.T) { function BenchmarkPack (line 75) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 86) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 104) | func BenchmarkUnpack(bn *testing.B) { function TestPackWithIPv4 (line 122) | func TestPackWithIPv4(t *testing.T) { function TestUnpackWithIPv4 (line 144) | func TestUnpackWithIPv4(t *testing.T) { function TestPackOptions (line 170) | func TestPackOptions(t *testing.T) { function TestUnpackOptions (line 225) | func TestUnpackOptions(t *testing.T) { FILE: packet/udp/pkt.go type Packet (line 37) | type Packet struct method GetType (line 52) | func (p *Packet) GetType() packet.Type { method GetLength (line 56) | func (p *Packet) GetLength() uint16 { method Equals (line 64) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 68) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 81) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 96) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 105) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 109) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 113) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 120) | func (p *Packet) InitChecksum(csum uint32) { method String (line 124) | func (p *Packet) String() string { function Make (line 46) | func Make() *Packet { FILE: packet/udp/pkt_test.go function MakeTestSimple (line 45) | func MakeTestSimple() *udp.Packet { function TestPack (line 53) | func TestPack(t *testing.T) { function BenchmarkPack (line 69) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 80) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 98) | func BenchmarkUnpack(bn *testing.B) { function TestPackWithIPv4 (line 115) | func TestPackWithIPv4(t *testing.T) { function TestUnpackWithIPv4 (line 141) | func TestUnpackWithIPv4(t *testing.T) { FILE: packet/vlan/pkt.go type Packet (line 37) | type Packet struct method GetType (line 49) | func (p *Packet) GetType() packet.Type { method GetLength (line 53) | func (p *Packet) GetLength() uint16 { method Equals (line 61) | func (p *Packet) Equals(other packet.Packet) bool { method Answers (line 65) | func (p *Packet) Answers(other packet.Packet) bool { method Pack (line 82) | func (p *Packet) Pack(buf *packet.Buffer) error { method Unpack (line 94) | func (p *Packet) Unpack(buf *packet.Buffer) error { method Payload (line 107) | func (p *Packet) Payload() packet.Packet { method GuessPayloadType (line 111) | func (p *Packet) GuessPayloadType() packet.Type { method SetPayload (line 115) | func (p *Packet) SetPayload(pl packet.Packet) error { method InitChecksum (line 122) | func (p *Packet) InitChecksum(csum uint32) { method String (line 125) | func (p *Packet) String() string { function Make (line 45) | func Make() *Packet { FILE: packet/vlan/pkt_test.go function MakeTestSimple (line 44) | func MakeTestSimple() *vlan.Packet { function TestPack (line 52) | func TestPack(t *testing.T) { function BenchmarkPack (line 68) | func BenchmarkPack(bn *testing.B) { function TestUnpack (line 79) | func TestUnpack(t *testing.T) { function BenchmarkUnpack (line 97) | func BenchmarkUnpack(bn *testing.B) { FILE: routing/routing.go type Route (line 41) | type Route struct method GetIfaceIPv4Addr (line 109) | func (r *Route) GetIfaceIPv4Addr() (net.IP, error) { method GetIfaceIPv6Addr (line 129) | func (r *Route) GetIfaceIPv6Addr() (net.IP, error) { method String (line 148) | func (r *Route) String() string { type route_slice (line 49) | type route_slice method Len (line 51) | func (r route_slice) Len() int { method Swap (line 55) | func (r route_slice) Swap(i, j int) { method Less (line 59) | func (r route_slice) Less(i, j int) bool { function RouteTo (line 81) | func RouteTo(dst net.IP) (*Route, error) { FILE: routing/routing_linux.go type rtmsg (line 38) | type rtmsg struct function Routes (line 51) | func Routes() ([]*Route, error) {