aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtp.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-16Set pinfo->link_dir per message not in the IE dissection.Anders Broman1-1/+19
svn path=/trunk/; revision=48873
2013-03-29Rename value string (and similar) functions to use a consistent pattern. ThisEvan Huus1-1/+1
was done using textual search+replace, not anything syntax-aware, so presumably it got most comments as well (except where there were typos). Use a consistent coding style, and make proper use of the WS_DLL_* defines. Group the functions appropriately in the header. I ended up getting rid of most of the explanatory comments since many of them duplicated what was in the value_string.c file (and were out of sync with the recent updates I made to those in r48633). Presumably most of the comments should be in the .h file not the .c file, but there's enough churn ahead that it's not worth fixing yet. Part of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8467 svn path=/trunk/; revision=48634
2013-03-19From beroset:Anders Broman1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48426
2013-03-06Make the GTP and GTP' dissectors new-style dissectors, so that they canGuy Harris1-17/+45
reject packets that don't look enough like GTP/GTP' packets. This fixes bug 1706, and fixes some other cases where non-GTP/GTP' packets are being dissected as GTP/GTP'. svn path=/trunk/; revision=48118
2013-03-05Use hf_gtp_ext_hdr_next for all "next header" fields, and get rid ofGuy Harris1-20/+3
hf_gtp_next. Don't do "dummy" dissection of extension headers that we don't actually dissect - we label them by next extension header type, and dissect them in the default case, which should suffice (until somebody adds dissection for those types). svn path=/trunk/; revision=48075
2013-03-04If the length value is bad, an exception will be thrown; we don't needGuy Harris1-2/+2
the item for the length, as we aren't explicitly checking it and attaching expert info items to it. svn path=/trunk/; revision=48070
2013-03-04Give 3GPP TS numbers for GTP v0, GTP v1, and GTP'.Guy Harris1-234/+218
Give URLs for the 3gpp.org pages for all those specs. Add #defines for all the GTP v1 extension header types we handle. "gtp_prime" is a Boolean; make it a gboolean. Dissect the first 4 octets of the header one field at a time, so that if the packet is cut short by a snapshot length we at least dissect what's there. 32.295 isn't entirely clear on what the 20-byte header for GTP' v0 is; assume it's the same as the header for GTP v0. Once we've fetched the length field from the fixed-length portion of the header, set the length of the tvbuff to the sum of the offset past the fixed-length portion and the length field, to catch running past that value. Use GTP_E_MASK|GTP_S_MASK|GTP_PN_MASK as the mask for testing for the presence of those fields, to make it a bit clearer what's being checked for. Don't actually add those fields to the protocol tree unless the flag for the field is set. We only need one chunk of code to handle extension headers. Make that chunk a loop, and put the header in as an FT_NONE item, with the length, header data, and next header under it. Put the initial next header field in as well. (We treat this like IPv6 extension headers, with the next header field being part of the previous header, rather than like a set of TLVs, with the next header field being the type value of its header.) Fail if the extension header length is zero. Use the reported length when processing IEs or T-PDU payload. svn path=/trunk/; revision=48068
2013-03-02Fix a copy/paste error and factorize dissection of extension header length ↵Pascal Quantin1-25/+14
and next extension header svn path=/trunk/; revision=48007
2013-03-02From Lakshmi Narayana Madala :Anders Broman1-23/+56
GTP dissector enhanced to support UDP Port extension header. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8418 svn path=/trunk/; revision=48004
2013-01-24From Katrina Zhang sligtly modified.Anders Broman1-10/+13
- Add dissection of Selected PLMN ID. - Put enterpice id in the tree - Filter for UTRAN Transparent Field. svn path=/trunk/; revision=47252
2013-01-13Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8196 :Pascal Quantin1-0/+9
Add dissection of IPv4v6 type to End User Address IE svn path=/trunk/; revision=47047
2013-01-11Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8193 :Pascal Quantin1-8/+16
Add dissection of Dual Address Bearer Flag bit in Common Flags IE svn path=/trunk/; revision=47036
2013-01-08Only the private extension IE value part should go in the tvb.Anders Broman1-2/+2
svn path=/trunk/; revision=46996
2012-12-30From Katrina Zhang:Pretify dissection if a dissector exists for the private ↵Anders Broman1-6/+3
extension svn path=/trunk/; revision=46857
2012-12-14Copy-paste error.Anders Broman1-1/+1
svn path=/trunk/; revision=46538
2012-12-14From Martin Isaksson:Anders Broman1-9/+33
- Initiiate GTP header to zero. - Dont' load TEID unconditionaly, it might not be present. svn path=/trunk/; revision=46537
2012-12-07 Bug 3974 - wrong decoding of gtp.target identification.Anders Broman1-17/+41
Use the IE description from 3GPP TS 29.060 version 10.4.0 Release 10. - Fix bugs with RAI and LAC in other parts of the code. svn path=/trunk/; revision=46439
2012-11-01High light bytes including the first lenght byte in the APN name.Anders Broman1-1/+2
svn path=/trunk/; revision=45856
2012-10-31The GTP dissector can't handle long APN names, max is 100.Anders Broman1-20/+21
Bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7932 svn path=/trunk/; revision=45852
2012-10-08From Martin Isaksson:Anders Broman1-35/+39
Preparattions for GTP tap. svn path=/trunk/; revision=45377
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-7/+7
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-09-06Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7697 :Pascal Quantin1-2/+2
Fix dissection of release 98 and release 99 QoS profiles (bug introduced in r43312) svn path=/trunk/; revision=44792
2012-08-23Comment out all but first value_string array entries with dup values:Bill Meier1-8/+8
kept: first dup since that's the one which would be found with a linear search. svn path=/trunk/; revision=44642
2012-08-01remove unnecessary underscores from display filtersMichael Mann1-1/+1
svn path=/trunk/; revision=44181
2012-07-28Fix inverted dissection of Pre-emption Capability and Pre-emption VulnerabilityPascal Quantin1-4/+4
svn path=/trunk/; revision=44091
2012-07-13Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7474 :Pascal Quantin1-9/+78
Dissect LTE RADIUS AVP 3GPP-User-Location-Info svn path=/trunk/; revision=43700
2012-07-12Don't call subdissectors / expert...() / col...() under 'if (tree)'Bill Meier1-715/+718
Also: Remove some uneeded initializers; Do some whitespace cleanup and re-formatting. svn path=/trunk/; revision=43681
2012-07-09Dissect Release 8 CDR:sAnders Broman1-1/+5
svn path=/trunk/; revision=43624
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-06-17Allow future forward compatibilityPascal Quantin1-1/+1
svn path=/trunk/; revision=43312
2012-06-16Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7371 :Pascal Quantin1-46/+156
Add dissection of Release 8 or higher P-GW QoS profile svn path=/trunk/; revision=43280
2012-05-16From Pontus Andersson via ↵pascal1-1/+0
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7259 : GTP Extension headers are dissected incorrectly svn path=/trunk/; revision=42663
2012-05-07General minor cleanup including:Bill Meier1-816/+1238
- remove unneeded #includes; - use val_to_str_const() as appropriate; - reformat hf[] entries; - reformat long lines; - use #if 0/#endif to coment out code instead of /* ... */; - remove boilerplate comments; - whitespace & indentation svn path=/trunk/; revision=42487
2012-05-02From David Wei:Anders Broman1-10/+48
Change GTP and GTPv2 dissectors for pre-Rel7 UEs that do not support bitrates higher than 16 Mbps. svn path=/trunk/; revision=42381
2012-04-30Fix some clang warnings (dead assignment/increment, assigned value is ↵pascal1-5/+8
garbage or undefined) svn path=/trunk/; revision=42344
2012-04-26Fully dissect more IEsAnders Broman1-114/+132
svn path=/trunk/; revision=42259
2012-04-25Get rid of a few more of the explicitly defined ett:sAnders Broman1-107/+35
svn path=/trunk/; revision=42234
2012-04-22Fix a crash caused by an "off by one" defineBill Meier1-1/+1
svn path=/trunk/; revision=42199
2012-04-22Basic IE dissectoon for more IE:sAnders Broman1-78/+360
svn path=/trunk/; revision=42198
2012-04-20Add basic IE dissection for new IE:sAnders Broman1-123/+411
svn path=/trunk/; revision=42158
2012-04-20compile warning/error. flag unused argument with _U_Ronnie Sahlberg1-1/+1
svn path=/trunk/; revision=42152
2012-04-20Add the basic code to dissect IE APN Aggregate Maximum Bit Rate (APN-AMBR)Anders Broman1-4/+136
svn path=/trunk/; revision=42151
2012-04-14Cosmetic changesAnders Broman1-97/+103
svn path=/trunk/; revision=42066
2012-04-12Refactor to use dissect_gsm_map_msisdn().Anders Broman1-37/+13
svn path=/trunk/; revision=42036
2012-04-11Dissect IE Type = 106 fully.Anders Broman1-2/+29
svn path=/trunk/; revision=42023
2012-04-08As suggested by Jakub, always update the digit value when the nibble is ↵pascal1-4/+4
outside [0;9] range svn path=/trunk/; revision=41984
2012-04-08Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7042 :pascal1-1/+5
Handle properly filler and do not remove last digit svn path=/trunk/; revision=41979
2012-03-30From Claude LeFrancois: Support 2 new GTP Information Elements. The Fully ↵Anders Broman1-7/+92
Qualified Domain Name (FQDN) GTP IE and the Evolved Allocation/Retention Priority II GTP IE. svn path=/trunk/; revision=41861
2012-03-30From Liangfeng via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7012 :Jeff Morriss1-4/+4
According to 3GPP R7//R8/R9/R10/R11, AVP 'MBMS-Session-Duration' has 3 octets. First 17 bits indicate seconds, the rest of bits(7 bits) represents days. However, in the source file packet-gtp.c, it parse the AVP reversely -- taking first 7 bits as days, the rest of 17 bits as seconds. This patch fixes that. svn path=/trunk/; revision=41849