Ethereal-dev: [Ethereal-dev] Bug in GTP dissector - GTP-U PPP not recognized

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

From: Marcus Haebler <haeblerm@xxxxxxxxx>
Date: Fri, 23 Aug 2002 19:19:25 -0700 (PDT)
There is a bug in the GTP-U code of the GTP dissector.
When dissecting a tunnel with PPP payload, the
dissector hands off to IP. I have attached a patch to
fix this.

Cheers,

Marcus

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
474d473
< #define GTP_PPP_0x00			0x00
4998,5004d4996
< 			case GTP_PPP_0x00:
< 				next_tvb = tvb_new_subset(tvb, GTPv1_HDR_LENGTH - hdr_offset, -1, -1);
< 				call_dissector(ppp_handle, next_tvb, pinfo, tree);
< 				if (check_col(pinfo->cinfo, COL_PROTOCOL))
< 					col_append_str_gtp(pinfo->cinfo, COL_PROTOCOL, "PPP");
< 				break;
< 
5029,5035d5020
< 					case GTP_PPP_0x00:
< 						next_tvb = tvb_new_subset(tvb, GTPv1_HDR_LENGTH - hdr_offset+2, -1, -1);
< 						call_dissector(ppp_handle, next_tvb, pinfo, tree);
< 						if (check_col(pinfo->cinfo, COL_PROTOCOL))
< 							col_append_str_gtp(pinfo->cinfo, COL_PROTOCOL, "PPP");
< 						break;
<