Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
b8778efa
Commit
b8778efa
authored
Apr 11, 2016
by
Andreas Schmidt
Browse files
Expired packets are noted as forwarded to application layer.
parent
72358d9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/prrt/processes/dataReceiver.c
View file @
b8778efa
...
@@ -109,6 +109,7 @@ void handle_data_packet(PrrtSocket *sock_ptr, PrrtPacket *packet, struct sockadd
...
@@ -109,6 +109,7 @@ void handle_data_packet(PrrtSocket *sock_ptr, PrrtPacket *packet, struct sockadd
prrtTimestamp_t
now
=
PrrtClock_get_prrt_time_us
(
sock_ptr
->
clock
);
prrtTimestamp_t
now
=
PrrtClock_get_prrt_time_us
(
sock_ptr
->
clock
);
if
(
now
>
payload
->
packetTimeout_us
)
{
if
(
now
>
payload
->
packetTimeout_us
)
{
PrrtForwardPacketTable_test_set_is_number_relevant
(
sock_ptr
->
forwardPacketTable
,
packet
->
sequenceNumber
);
// TODO: note this as loss
// TODO: note this as loss
PrrtPacket_destroy
(
packet
);
PrrtPacket_destroy
(
packet
);
}
}
...
...
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