Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akrennmair/gopcap
/ functions
Functions
71 in github.com/akrennmair/gopcap
⨍
Functions
71
◇
Types & classes
18
↓ 18 callers
Method
String
(addr addrHdr)
decode.go:61
↓ 8 callers
Method
Decode
Decode decodes the headers of a Packet.
decode.go:73
↓ 7 callers
Method
Close
()
pcap.go:120
↓ 6 callers
Function
asUint32
(data []byte, flip bool)
io.go:194
↓ 5 callers
Method
Geterror
()
pcap.go:124
↓ 5 callers
Method
read
(data []byte)
io.go:117
↓ 4 callers
Method
DestAddr
()
decode.go:56
↓ 4 callers
Method
Next
()
pcap.go:52
↓ 4 callers
Method
SrcAddr
()
decode.go:55
↓ 4 callers
Function
decodemac
(pkt []byte)
decode.go:64
↓ 4 callers
Method
readUint32
()
io.go:131
↓ 3 callers
Method
NextEx
()
pcap.go:100
↓ 3 callers
Method
decodeIp
()
decode.go:216
↓ 2 callers
Method
Setfilter
(expr string)
pcap.go:141
↓ 2 callers
Method
Write
Writer writes a packet to the underlying writer.
io.go:182
↓ 2 callers
Method
decodeArp
()
decode.go:172
↓ 2 callers
Method
decodeIcmp
()
decode.go:432
↓ 2 callers
Method
decodeIp6
()
decode.go:491
↓ 2 callers
Method
decodeTcp
()
decode.go:331
↓ 2 callers
Method
decodeUdp
()
decode.go:399
↓ 2 callers
Method
readUint16
()
io.go:147
↓ 2 callers
Function
sockaddr_to_IP
(rsa *syscall.RawSockaddr)
pcap.go:233
↓ 1 callers
Function
Dumpline
(addr uint32, line []byte)
tools/tcpdump/tcpdump.go:97
↓ 1 callers
Method
FlagsString
()
decode.go:360
↓ 1 callers
Function
Hexdump
(pkt *pcap.Packet)
tools/tcpdump/tcpdump.go:91
↓ 1 callers
Method
Len
()
decode.go:57
↓ 1 callers
Method
Next
Next returns the next packet or nil if no more packets can be read.
io.go:94
↓ 1 callers
Function
asUint16
(data []byte, flip bool)
io.go:201
↓ 1 callers
Function
check
(dest, src string)
tools/pass/pass.go:57
↓ 1 callers
Function
copyPcap
(dest, src string)
tools/pass/pass.go:19
↓ 1 callers
Method
decodeVlan
()
decode.go:279
↓ 1 callers
Function
findalladdresses
(addresses *_Ctype_struct_pcap_addr)
pcap.go:216
↓ 1 callers
Method
headerString
(headers []interface{})
decode.go:98
↓ 1 callers
Function
min
(a, b int)
tools/tcpdump/tcpdump.go:84
↓ 1 callers
Method
readInt32
()
io.go:139
Function
BenchmarkDecodeSimpleTcpPacket
(b *testing.B)
decode_test.go:50
Method
Datalink
()
pcap.go:162
Function
DatalinkValueToDescription
(dlt int)
pcap.go:180
Function
DatalinkValueToName
(dlt int)
pcap.go:173
Method
DestAddr
()
decode.go:265
Method
DestAddr
()
decode.go:526
Function
Findalldevs
()
pcap.go:187
Method
Getstats
()
pcap.go:128
Method
Inject
(data []byte)
pcap.go:254
Method
Len
()
decode.go:266
Method
Len
()
decode.go:527
Function
NewReader
NewReader reads pcap data from an io.Reader.
io.go:66
Function
NewWriter
NewWriter creates a Writer that stores output in an io.Writer. The FileHeader is written immediately.
io.go:163
Function
Openlive
Openlive opens a device and returns a *Pcap handler
pcap.go:58
Function
Openoffline
(file string)
pcap.go:81
Method
Setdatalink
(dlt int)
pcap.go:166
Method
SrcAddr
()
decode.go:264
Method
SrcAddr
()
decode.go:525
Method
String
String prints a one-line representation of the packet header. The output is suitable for use in a tcpdump program.
decode.go:134
Method
String
()
decode.go:155
Method
String
()
decode.go:275
Method
String
(hdr addrHdr)
decode.go:354
Method
String
(hdr addrHdr)
decode.go:417
Method
String
(hdr addrHdr)
decode.go:449
Function
TestDecodeFuzzFallout
(t *testing.T)
decode_test.go:197
Function
TestDecodeSimpleTcpPacket
(t *testing.T)
decode_test.go:56
Function
TestDecodeSmallTcpPacketHasEmptyPayload
Makes sure packet payload doesn't display the 6 trailing null of this packet as part of the payload. They're actually the ethernet trailer.
decode_test.go:147
Function
TestDecodeVlanPacket
(t *testing.T)
decode_test.go:167
Method
Time
Convert the PacketTime to a go Time struct.
io.go:28
Method
TypeString
()
decode.go:454
Function
Version
()
pcap.go:158
Function
main
()
tools/pass/pass.go:91
Function
main
()
tools/benchmark/benchmark.go:13
Function
main
()
tools/pcaptest/pcaptest.go:18
Function
main
()
tools/tcpdump/tcpdump.go:26
Function
min
(x uint32, y uint32)
tools/pcaptest/pcaptest.go:11