Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/40t/go-sniffer
/ functions
Functions
56 in github.com/40t/go-sniffer
⨍
Functions
56
◇
Types & classes
19
↓ 7 callers
Method
Add
Add adds an integer to a sequence and returns the resulting sequence.
core/assembly.go:53
↓ 5 callers
Method
Difference
Difference defines an ordering for comparing TCP sequences that's safe for roll-overs. It returns: > 0 : if t comes after s < 0 : if t comes before s
core/assembly.go:43
↓ 3 callers
Method
addNextFromConn
addNextFromConn pops the first page from a connection off and adds it to the return array.
core/assembly.go:731
↓ 3 callers
Method
closeConnection
(conn *connection)
core/assembly.go:637
↓ 2 callers
Method
AssembleWithTimestamp
AssembleWithTimestamp reassembles the given TCP packet into its appropriate stream. The timestamp passed in must be the timestamp the packet was seen
core/assembly.go:509
↓ 2 callers
Method
New
New should return a new stream for the given TCP key.
core/assembly.go:181
↓ 2 callers
Method
Run
start
core/cmd.go:33
↓ 2 callers
Method
String
()
core/assembly.go:267
↓ 2 callers
Method
addContiguous
addContiguous adds contiguous byte-sets to a connection.
core/assembly.go:607
↓ 2 callers
Function
byteSpan
(expected, received Sequence, bytes []byte)
core/assembly.go:580
↓ 2 callers
Method
connections
()
core/assembly.go:184
↓ 2 callers
Method
grow
grow exponentially increases the size of our page cache as much as necessary.
core/assembly.go:112
↓ 2 callers
Method
insertIntoConn
(t *layers.TCP, conn *connection, ts time.Time)
core/assembly.go:683
↓ 2 callers
Method
next
next returns a clean, ready-to-use page object.
core/assembly.go:126
↓ 2 callers
Method
printDevice
print device
core/cmd.go:111
↓ 2 callers
Method
printHelpMessage
usage
core/cmd.go:78
↓ 2 callers
Method
replace
replace replaces a page into the pageCache.
core/assembly.go:147
↓ 2 callers
Method
sendToConnection
sendToConnection sends the current values in a.ret to the connection, closing the connection if the last thing sent had End set.
core/assembly.go:595
↓ 2 callers
Method
skipFlush
skipFlush skips the first set of bytes we're waiting for and returns the first set of bytes we have. If we have no bytes pending, it closes the conne
core/assembly.go:616
↓ 1 callers
Method
BPFFilter
()
core/plug.go:34
↓ 1 callers
Method
Capture
()
core/dispatch.go:27
↓ 1 callers
Method
FlushOlderThan
FlushOlderThan finds any streams waiting for packets older than the given time, and pushes through the data they have (IE: tells them to stop waiting
core/assembly.go:216
↓ 1 callers
Method
LoadExternalPlugList
()
core/plug.go:77
↓ 1 callers
Method
LoadInternalPlugList
()
core/plug.go:58
↓ 1 callers
Function
NewAssembler
NewAssembler creates a new assembler. Pass in the StreamPool to use, may be shared across assemblers. This sets some sane defaults for the assembler
core/assembly.go:327
↓ 1 callers
Function
NewCmd
(p *Plug)
core/cmd.go:25
↓ 1 callers
Function
NewDispatch
(plug *Plug, cmd *Cmd)
core/dispatch.go:20
↓ 1 callers
Function
NewPlug
()
core/plug.go:47
↓ 1 callers
Function
NewStreamPool
NewStreamPool creates a new connection pool. Streams will be created as necessary using the passed-in StreamFactory.
core/assembly.go:311
↓ 1 callers
Method
PrintList
()
core/plug.go:130
↓ 1 callers
Method
Reassembled
Reassembled is called zero or more times. Assembly guarantees that the set of all Reassembly objects passed in during all calls are presented in the o
core/assembly.go:169
↓ 1 callers
Method
ReassemblyComplete
ReassemblyComplete is called when assembly decides there is no more data for this Stream, either because a FIN or RST packet was seen, or because the
core/assembly.go:174
↓ 1 callers
Method
ResolveStream
(net gopacket.Flow, transport gopacket.Flow, r io.Reader)
core/plug.go:33
↓ 1 callers
Method
SetFlag
([]string)
core/plug.go:35
↓ 1 callers
Method
SetOption
(plugName string, plugParams []string)
core/plug.go:146
↓ 1 callers
Method
getConnection
getConnection returns a connection. If end is true and a connection does not already exist, returns nil. This allows us to check for a connection wi
core/assembly.go:471
↓ 1 callers
Method
grow
()
core/assembly.go:297
↓ 1 callers
Function
min
(a, b int)
core/assembly.go:753
↓ 1 callers
Method
newConnection
(k key, s tcpassembly.Stream, ts time.Time)
core/assembly.go:452
↓ 1 callers
Function
newPageCache
()
core/assembly.go:102
↓ 1 callers
Method
pagesFromTCP
pagesFromTCP creates a page (or set of pages) from a TCP packet. Note that it should NEVER receive a SYN packet, as it doesn't handle sequences corre
core/assembly.go:705
↓ 1 callers
Method
parseInternalCmd
parse internal commend like --help, --env, --device
core/cmd.go:52
↓ 1 callers
Method
parsePlugCmd
Parameters needed for plug-ins
core/cmd.go:129
↓ 1 callers
Method
pushBetween
pushBetween inserts the doubly-linked list first-...-last in between the nodes prev-next in another doubly-linked list. If prev is nil, makes first t
core/assembly.go:667
↓ 1 callers
Method
remove
(conn *connection)
core/assembly.go:630
↓ 1 callers
Method
reset
(k key, s tcpassembly.Stream, ts time.Time)
core/assembly.go:361
↓ 1 callers
Method
traverseConn
traverseConn traverses our doubly-linked list of pages for the correct position to put the given sequence number. Note that it traverses backwards, s
core/assembly.go:654
Method
Assemble
Assemble calls AssembleWithTimestamp with the current timestamp, useful for packets being read directly off the wire.
core/assembly.go:492
Method
ChangePath
(dir string)
core/plug.go:126
Method
FlushAll
FlushAll flushes all remaining data into all remaining connections, closing those connections. It returns the total number of connections flushed/clo
core/assembly.go:252
Function
New
()
core/core.go:9
Method
New
(net, transport gopacket.Flow)
core/dispatch.go:85
Method
Run
()
core/core.go:16
Method
Version
()
core/plug.go:36
Function
main
()
main.go:7
Method
printPlugList
print plug-in list
core/cmd.go:104