Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
fadd052f
Unverified
Commit
fadd052f
authored
3 years ago
by
David Levanon
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
init tls entries capture time (#1042)
parent
171b7283
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tap/tlstapper/tls_poller.go
+6
-1
tap/tlstapper/tls_poller.go
with
6 additions
and
1 deletion
+6
-1
tap/tlstapper/tls_poller.go
+
6
-
1
View file @
fadd052f
...
...
@@ -6,6 +6,7 @@ import (
"fmt"
"net"
"sync"
"time"
"encoding/binary"
"encoding/hex"
...
...
@@ -165,9 +166,13 @@ func (p *tlsPoller) startNewTlsReader(chunk *tlsChunk, ip net.IP, port uint16, k
func
dissect
(
extension
*
api
.
Extension
,
reader
*
tlsReader
,
isRequest
bool
,
tcpid
*
api
.
TcpID
,
tlsEmitter
*
tlsEmitter
,
options
*
api
.
TrafficFilteringOptions
,
reqResMatcher
api
.
RequestResponseMatcher
)
{
b
:=
bufio
.
NewReader
(
reader
)
timer
:=
api
.
SuperTimer
{
CaptureTime
:
time
.
Now
(),
}
err
:=
extension
.
Dissector
.
Dissect
(
b
,
reader
.
progress
,
api
.
Ebpf
,
isRequest
,
tcpid
,
&
api
.
CounterPair
{},
&
api
.
SuperT
imer
{}
,
&
api
.
SuperIdentifier
{},
tlsEmitter
,
options
,
reqResMatcher
)
&
t
imer
,
&
api
.
SuperIdentifier
{},
tlsEmitter
,
options
,
reqResMatcher
)
if
err
!=
nil
{
logger
.
Log
.
Warningf
(
"Error dissecting TLS %v - %v"
,
tcpid
,
err
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help