aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/libglouglou.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-12 19:46:54 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-12 19:46:54 +0100
commitd4007615cbb19313a9ccee1bdedbdc3778e448e4 (patch)
treed875eb95e1c5e0b06d37a11c970929496fa8e4d1 /libglouglou/libglouglou.c
parentdo not use id=1 for coloration of egraph blobs (diff)
downloadglouglou-d4007615cbb19313a9ccee1bdedbdc3778e448e4.tar.xz
glouglou-d4007615cbb19313a9ccee1bdedbdc3778e448e4.zip
fix connection ID decoding
Diffstat (limited to 'libglouglou/libglouglou.c')
-rw-r--r--libglouglou/libglouglou.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libglouglou/libglouglou.c b/libglouglou/libglouglou.c
index ad1009c..921daad 100644
--- a/libglouglou/libglouglou.c
+++ b/libglouglou/libglouglou.c
@@ -539,17 +539,17 @@ pkt_decode(char **buf, int *buf_len)
newpkt.type = pkt->type;
switch(pkt->type) {
case PACKET_NEWCONN:
- newpkt.newconn_id = pkt->newconn_id;
+ newpkt.newconn_id = ntohs(pkt->newconn_id);
newpkt.newconn_src = ntohl(pkt->newconn_src);
newpkt.newconn_dst = ntohl(pkt->newconn_dst);
newpkt.newconn_proto = pkt->newconn_proto;
newpkt.newconn_size = pkt->newconn_size;
break;
case PACKET_DELCONN:
- newpkt.delconn_id = pkt->delconn_id;
+ newpkt.delconn_id = ntohs(pkt->delconn_id);
break;
case PACKET_DATA:
- newpkt.data_connid = pkt->data_connid;
+ newpkt.data_connid = ntohs(pkt->data_connid);
newpkt.data_size = pkt->data_size;
break;
case PACKET_NAME: