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

Ethereal-dev: Re: [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: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 5 Dec 2002 14:37:31 -0800
On Thu, Dec 05, 2002 at 02:14:48PM -0800, Budiyanto Fritz wrote:
> missing g_ntohs() for flow_label on gtpv0 decoder.
> Here I include the patch

Checked in (with the indentation:

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

fixed).