summaryrefslogtreecommitdiff
path: root/extcap/ciscodump.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-04-07 15:47:17 +0200
committerJaap Keuter <jaap.keuter@xs4all.nl>2016-04-14 20:47:37 +0000
commita7e04fcca9d5a1e344947a9f12b29288332b9a3c (patch)
tree09110edbe3889d18639ca511cf759269696dce34 /extcap/ciscodump.c
parente206d608e5229b9c7390c27f478cd1c59cfc3b15 (diff)
downloadwireshark-a7e04fcca9d5a1e344947a9f12b29288332b9a3c.tar.gz
ciscodump: bugfix
Change-Id: I4b2012fd23524485b24064707316d4e58a838660 Reviewed-on: https://code.wireshark.org/review/14914 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Diffstat (limited to 'extcap/ciscodump.c')
-rw-r--r--extcap/ciscodump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap/ciscodump.c b/extcap/ciscodump.c
index 23a8d1b35c..5ca4581910 100644
--- a/extcap/ciscodump.c
+++ b/extcap/ciscodump.c
@@ -228,7 +228,7 @@ static int parse_line(char* packet _U_, unsigned* offset, char* line, int status
while(*part) {
if (strlen(*part) > 1) {
value = (guint32)strtoul(*part, NULL, 16);
- value = htonl(value);
+ value = ntohl(value);
size = strlen(*part) / 2;
memcpy(packet + *offset, &value, size);
*offset += (guint32)size;