Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
adam
dns-probe
Commits
95303cbc
Verified
Commit
95303cbc
authored
Dec 16, 2020
by
Pavel Doležal
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'devel'
parents
f2926b51
50400432
Pipeline
#73773
passed with stage
in 3 minutes and 19 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CMakeLists.txt
CMakeLists.txt
+1
-1
src/core/DnsTcpConnection.cpp
src/core/DnsTcpConnection.cpp
+1
-0
src/utils/Time.h
src/utils/Time.h
+1
-1
No files found.
CMakeLists.txt
View file @
95303cbc
cmake_minimum_required
(
VERSION 3.5
)
project
(
"DNS Probe"
VERSION 0.7.
0
)
project
(
"DNS Probe"
VERSION 0.7.
1
)
set
(
AF_PACKET_BACKEND ON CACHE BOOL
"Define backend for packet processing"
)
set
(
DPDK_BACKEND OFF CACHE BOOL
"Define backend for packet processing"
)
...
...
src/core/DnsTcpConnection.cpp
View file @
95303cbc
...
...
@@ -167,6 +167,7 @@ bool DDP::DnsTcpConnection::update_connection(DnsRecord& record, const Packet& p
// Received FIN to close connection
if
(
header
->
fin
)
{
m_rtt
=
m_state
==
TcpConnectionState
::
ESTABLISHED
?
m_rtt
:
Time
(
Time
::
Clock
::
MONOTONIC
)
-
m_rtt
;
m_state
=
TcpConnectionState
::
FIN1
;
m_fin
[
conn_side
]
=
true
;
}
...
...
src/utils/Time.h
View file @
95303cbc
...
...
@@ -148,7 +148,7 @@ namespace DDP {
friend
Time
operator
-
(
Time
first
,
const
Time
&
second
)
{
if
(
first
.
m_timespec
.
tv_nsec
-
second
.
m_timespec
.
tv_nsec
<
0
)
{
first
.
m_timespec
.
tv_sec
-
=
second
.
m_timespec
.
tv_sec
-
1
;
first
.
m_timespec
.
tv_sec
=
first
.
m_timespec
.
tv_sec
-
second
.
m_timespec
.
tv_sec
-
1
;
first
.
m_timespec
.
tv_nsec
=
first
.
m_timespec
.
tv_nsec
+
1000000000
-
second
.
m_timespec
.
tv_nsec
;
}
else
{
...
...
Write
Preview
Markdown
is supported
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