Ethereal

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

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: December 2002


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);

Powered by MHonArc 2.6.10