Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] packet-gtp.c: flow_label is in network order

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Budiyanto Fritz <fritzb88@xxxxxxxxx>
Date: Thu, 5 Dec 2002 14:14:48 -0800 (PST)
missing g_ntohs() for flow_label on gtpv0 decoder.
Here I include the patch



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
Index: packet-gtp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-gtp.c,v
retrieving revision 1.47
diff -u -r1.47 packet-gtp.c
--- packet-gtp.c	2002/11/13 09:01:08	1.47
+++ packet-gtp.c	2002/12/05 22:06:36
@@ -4855,6 +4855,7 @@
 
 		gtpv0_hdr.length = g_ntohs(gtpv0_hdr.length);
 		gtpv0_hdr.seq_no = g_ntohs(gtpv0_hdr.seq_no);
+        gtpv0_hdr.flow_label = g_ntohs(gtpv0_hdr.flow_label);
 		proto_tree_add_uint(gtpv0_tree, hf_gtpv0_message_type, tvb, 1, 1, gtpv0_hdr.message);
 		proto_tree_add_uint(gtpv0_tree, hf_gtpv0_length, tvb, 2, 2, gtpv0_hdr.length);
 		proto_tree_add_uint(gtpv0_tree, hf_gtpv0_seq_number, tvb, 4, 2, gtpv0_hdr.seq_no);