projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
94ec8d3
)
sptps.c: Add missing newline to log message.
author
Sven-Haegar Koch
<haegar@sdinet.de>
Fri, 12 Oct 2012 15:08:01 +0000
(17:08 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 12 Oct 2012 15:19:56 +0000
(17:19 +0200)
src/sptps.c
patch
|
blob
|
history
diff --git
a/src/sptps.c
b/src/sptps.c
index
2a298ff
..
7800140
100644
(file)
--- a/
src/sptps.c
+++ b/
src/sptps.c
@@
-436,7
+436,7
@@
static bool sptps_receive_data_datagram(sptps_t *s, const char *data, size_t len
} else if (seqno < s->inseqno) {
// If the sequence number is farther in the past than the bitmap goes, or if the packet was already received, drop it.
if((s->inseqno >= s->replaywin * 8 && seqno < s->inseqno - s->replaywin * 8) || !(s->late[(seqno / 8) % s->replaywin] & (1 << seqno % 8))) {
} else if (seqno < s->inseqno) {
// If the sequence number is farther in the past than the bitmap goes, or if the packet was already received, drop it.
if((s->inseqno >= s->replaywin * 8 && seqno < s->inseqno - s->replaywin * 8) || !(s->late[(seqno / 8) % s->replaywin] & (1 << seqno % 8))) {
- fprintf(stderr, "Received late or replayed packet, seqno %d, last received %d", seqno, s->inseqno);
+ fprintf(stderr, "Received late or replayed packet, seqno %d, last received %d
\n
", seqno, s->inseqno);
return false;
}
} else {
return false;
}
} else {