Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
97d2b26f
Commit
97d2b26f
authored
May 26, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the code
parent
6ce8b49a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
packet-exchange/src/send_packet.c
packet-exchange/src/send_packet.c
+0
-27
No files found.
packet-exchange/src/send_packet.c
View file @
97d2b26f
...
...
@@ -219,33 +219,6 @@ static void print_timestamps(struct msghdr *msg) {
struct
timespec
*
stamp
=
(
struct
timespec
*
)
CMSG_DATA
(
cmsg
);
printf
(
"SO_TIMESTAMPING "
);
printf
(
"SW %ld.%09ld "
,
(
long
)
stamp
->
tv_sec
,
(
long
)
stamp
->
tv_nsec
);
stamp
++
;
printf
(
"HW transformed %ld.%09ld "
,
(
long
)
stamp
->
tv_sec
,
(
long
)
stamp
->
tv_nsec
);
stamp
++
;
printf
(
"HW raw %ld.%09ld"
,
(
long
)
stamp
->
tv_sec
,
(
long
)
stamp
->
tv_nsec
);
break
;
}
default:
printf
(
"type %d"
,
cmsg
->
cmsg_type
);
break
;
}
break
;
case
IPPROTO_IP
:
printf
(
"IPPROTO_IP "
);
switch
(
cmsg
->
cmsg_type
)
{
case
IP_RECVERR
:
{
struct
sock_extended_err
*
err
=
(
struct
sock_extended_err
*
)
CMSG_DATA
(
cmsg
);
printf
(
"IP_RECVERR ee_errno '%s' ee_origin %d => %s"
,
strerror
(
err
->
ee_errno
),
err
->
ee_origin
,
"probably SO_EE_ORIGIN_TIMESTAMPING"
);
break
;
}
case
IP_PKTINFO
:
{
struct
in_pktinfo
*
pktinfo
=
(
struct
in_pktinfo
*
)
CMSG_DATA
(
cmsg
);
printf
(
"IP_PKTINFO interface index %u"
,
pktinfo
->
ipi_ifindex
);
break
;
}
default:
...
...
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