MCPcopy Create free account

hub / github.com/40t/go-sniffer / functions

Functions56 in github.com/40t/go-sniffer

↓ 7 callersMethodAdd
Add adds an integer to a sequence and returns the resulting sequence.
core/assembly.go:53
↓ 5 callersMethodDifference
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 callersMethodaddNextFromConn
addNextFromConn pops the first page from a connection off and adds it to the return array.
core/assembly.go:731
↓ 3 callersMethodcloseConnection
(conn *connection)
core/assembly.go:637
↓ 2 callersMethodAssembleWithTimestamp
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 callersMethodNew
New should return a new stream for the given TCP key.
core/assembly.go:181
↓ 2 callersMethodRun
start
core/cmd.go:33
↓ 2 callersMethodString
()
core/assembly.go:267
↓ 2 callersMethodaddContiguous
addContiguous adds contiguous byte-sets to a connection.
core/assembly.go:607
↓ 2 callersFunctionbyteSpan
(expected, received Sequence, bytes []byte)
core/assembly.go:580
↓ 2 callersMethodconnections
()
core/assembly.go:184
↓ 2 callersMethodgrow
grow exponentially increases the size of our page cache as much as necessary.
core/assembly.go:112
↓ 2 callersMethodinsertIntoConn
(t *layers.TCP, conn *connection, ts time.Time)
core/assembly.go:683
↓ 2 callersMethodnext
next returns a clean, ready-to-use page object.
core/assembly.go:126
↓ 2 callersMethodprintDevice
print device
core/cmd.go:111
↓ 2 callersMethodprintHelpMessage
usage
core/cmd.go:78
↓ 2 callersMethodreplace
replace replaces a page into the pageCache.
core/assembly.go:147
↓ 2 callersMethodsendToConnection
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 callersMethodskipFlush
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 callersMethodBPFFilter
()
core/plug.go:34
↓ 1 callersMethodCapture
()
core/dispatch.go:27
↓ 1 callersMethodFlushOlderThan
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 callersMethodLoadExternalPlugList
()
core/plug.go:77
↓ 1 callersMethodLoadInternalPlugList
()
core/plug.go:58
↓ 1 callersFunctionNewAssembler
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 callersFunctionNewCmd
(p *Plug)
core/cmd.go:25
↓ 1 callersFunctionNewDispatch
(plug *Plug, cmd *Cmd)
core/dispatch.go:20
↓ 1 callersFunctionNewPlug
()
core/plug.go:47
↓ 1 callersFunctionNewStreamPool
NewStreamPool creates a new connection pool. Streams will be created as necessary using the passed-in StreamFactory.
core/assembly.go:311
↓ 1 callersMethodPrintList
()
core/plug.go:130
↓ 1 callersMethodReassembled
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 callersMethodReassemblyComplete
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 callersMethodResolveStream
(net gopacket.Flow, transport gopacket.Flow, r io.Reader)
core/plug.go:33
↓ 1 callersMethodSetFlag
([]string)
core/plug.go:35
↓ 1 callersMethodSetOption
(plugName string, plugParams []string)
core/plug.go:146
↓ 1 callersMethodgetConnection
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 callersMethodgrow
()
core/assembly.go:297
↓ 1 callersFunctionmin
(a, b int)
core/assembly.go:753
↓ 1 callersMethodnewConnection
(k key, s tcpassembly.Stream, ts time.Time)
core/assembly.go:452
↓ 1 callersFunctionnewPageCache
()
core/assembly.go:102
↓ 1 callersMethodpagesFromTCP
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 callersMethodparseInternalCmd
parse internal commend like --help, --env, --device
core/cmd.go:52
↓ 1 callersMethodparsePlugCmd
Parameters needed for plug-ins
core/cmd.go:129
↓ 1 callersMethodpushBetween
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 callersMethodremove
(conn *connection)
core/assembly.go:630
↓ 1 callersMethodreset
(k key, s tcpassembly.Stream, ts time.Time)
core/assembly.go:361
↓ 1 callersMethodtraverseConn
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
MethodAssemble
Assemble calls AssembleWithTimestamp with the current timestamp, useful for packets being read directly off the wire.
core/assembly.go:492
MethodChangePath
(dir string)
core/plug.go:126
MethodFlushAll
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
FunctionNew
()
core/core.go:9
MethodNew
(net, transport gopacket.Flow)
core/dispatch.go:85
MethodRun
()
core/core.go:16
MethodVersion
()
core/plug.go:36
Functionmain
()
main.go:7
MethodprintPlugList
print plug-in list
core/cmd.go:104