projects
/
rrq
/
rrqnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a131aa4
)
add log line for oddly small ignored packets
author
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Wed, 7 Oct 2020 12:14:09 +0000
(23:14 +1100)
committer
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Wed, 7 Oct 2020 12:14:09 +0000
(23:14 +1100)
rrqnet.c
patch
|
blob
|
history
diff --git
a/rrqnet.c
b/rrqnet.c
index ba5bb584dbf7dfd5d1560791847d57d294e448ed..85f609ebddee6851041be21cd1415cdd2805ac68 100644
(file)
--- a/
rrqnet.c
+++ b/
rrqnet.c
@@
-271,7
+271,7
@@
static char *inet_nmtoa(unsigned char *b,int w) {
b[8], b[9], b[10], b[11],
b[12], b[13], b[14], b[15] );
} else {
b[8], b[9], b[10], b[11],
b[12], b[13], b[14], b[15] );
} else {
- VERBOSE3OUT( "HEX data of %d bytes\n",
i
);
+ VERBOSE3OUT( "HEX data of %d bytes\n",
w
);
for ( ; i < w && i < 19000; i++, p += 3 ) {
sprintf( p, "%02x:", b[i] );
}
for ( ; i < w && i < 19000; i++, p += 3 ) {
sprintf( p, "%02x:", b[i] );
}
@@
-995,9
+995,13
@@
static struct Interface *input_check(
r = add_remote( src, a );
//r->rec_when = now; // Set activity stamp of new remote
}
r = add_remote( src, a );
//r->rec_when = now; // Set activity stamp of new remote
}
- if ( len <
=
12 ) {
+ if ( len < 12 ) {
// Ignore short data, but maintain channel
r->rec_when = now; // Update activity stamp touched remote
// Ignore short data, but maintain channel
r->rec_when = now; // Update activity stamp touched remote
+ if ( len > 0 ) {
+ VERBOSEOUT( "Ignoring %ld bytes from %s\n",
+ len, inet_stoa( src ) );
+ }
return 0;
}
// Now decrypt the data as needed
return 0;
}
// Now decrypt the data as needed