aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/btlib.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2019-04-05 12:47:58 +0200
committerLuca <deri@ntop.org>2019-04-05 12:47:58 +0200
commit4e7fa82affc876245ab7f008271a49bde80bcf9f (patch)
tree8653fd3892e119f106b5649192ef38b1be9e088a /src/lib/protocols/btlib.c
parent5656a41f696e8073de28be5bdbd909fda108ee78 (diff)
Fixed false positive with FTP_DATA protocol
Added coherency in application protol guess by exploiting the host server name Various protocol optimizations
Diffstat (limited to 'src/lib/protocols/btlib.c')
-rw-r--r--src/lib/protocols/btlib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/protocols/btlib.c b/src/lib/protocols/btlib.c
index 5992c1b28..ea06a6348 100644
--- a/src/lib/protocols/btlib.c
+++ b/src/lib/protocols/btlib.c
@@ -204,8 +204,7 @@ void cb_data(bt_parse_data_cb_t *cbd,int *ret) {
if(cbd->t == 0) return;
if(cbd->t == 1) {
-
- DEBUG_TRACE(printf("%s %lld\n",cbd->buf,cbd->v.i));
+ DEBUG_TRACE(printf("%s %lld\n",cbd->buf, (long long)cbd->v.i));
if(STREQ(cbd->buf,"a.port")) {
p->a.port = (u_int16_t)(cbd->v.i & 0xffff);
@@ -234,7 +233,7 @@ void cb_data(bt_parse_data_cb_t *cbd,int *ret) {
p->h_mint = 1;
return;
}
- DEBUG_TRACE(printf("UNKNOWN %s %lld\n",cbd->buf,cbd->v.i));
+ DEBUG_TRACE(printf("UNKNOWN %s %lld\n",cbd->buf, (long long)cbd->v.i));
return;
}
if(cbd->t != 2) {