aboutsummaryrefslogtreecommitdiffstats
path: root/gtp/gtpie.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-14gtpie_{encaps,encaps2}(): RAI is a fixe 6-byte length field, not 8 bytesHarald Welte1-2/+6
gtpie_decaps() always had this right, but the encapsulation functions treated it as 8-byte fixed length IE. I hope we had a chance to convert all of this to the normal libosmogsm tlv_parser one day. This would have one description table for all TLV types which then is used from encoder and decoder. Change-Id: I48471f2735511806ac424b5ffc1929e85bb156f3
2017-10-14gtpie.h: Add IE identifier definitions up to 29.60 v11.8.0 Release 11Harald Welte1-5/+205
Change-Id: I6ab7bfb31f93f52f9f6b1b5880dcb2c232bba794
2017-10-14Allow Common flags 0x94 and ignore them in PDP activationHarald Welte1-0/+3
extended from https://github.com/osmocom/openggsn/pull/2 Change-Id: I31b3e4b378e74bb5a0a2f54af6d2a15b629876cf
2017-10-13gtpie_decaps: const-ify pointer to input packet dataHarald Welte1-3/+3
Change-Id: Ia048abcd80f29581c6ac02cd7f534f2617005671
2017-10-13gtpie: Add doxygen API documentationHarald Welte1-0/+110
libgtp should have proper API documentation, let's start with the gtpie.[ch] parts. Change-Id: I97df5bd3c8dcc5c97a114c8c6abadabf33147b05
2017-10-13gtpie_tlv() gtpie_tv0(): const-ify read-only input argumentHarald Welte1-2/+2
Change-Id: Ide487e34884c8356694246f43c3f1f562357304c
2017-09-06Rename OpenGGSN to OsmoGGSNHarald Welte1-1/+1
Osmocom has maintained this program since about 7 years now, while the original author / copyright holder has completely disappeared. With the introduction of Osmocom-style CTRL and VTY interfaces, the way how the program is used and configured has substantially changed. In order to avoid confusion in terms of configuration file format etc, let's rename it to OsmoGGSN. Change-Id: I2da30f7d4828e185bfac1a4e2d8414b01cbe4f9d
2016-09-15Add 'Bearer Control Mode' IEBJovke1-0/+3
This IE is known to be sent by a Cisco GGSN, and was added in ETSI TS 129 060 V7.17.0 (2011-10) / 3GPP TS 29.060 version 7.17.0 Release 7 See https://lists.osmocom.org/pipermail/osmocom-net-gprs/2016-September/000711.html Subject "sgsnemu failing to create PDP context with Cisco GGSN" Tue Sep 13 08:00:37 UTC 2016 Tweaked-by: Neels Hofmeyr <nhofmeyr@sysmocom.de>
2016-05-12gtp: fix several compilation warningsPablo Neira Ayuso1-4/+0
CC gtpie.lo gtpie.c: In function 'gtpie_encaps': gtpie.c:437:22: warning: variable 'm' set but not used [-Wunused-but-set-variable] union gtpie_member *m; ^ gtpie.c: In function 'gtpie_encaps2': gtpie.c:537:22: warning: variable 'm' set but not used [-Wunused-but-set-variable] union gtpie_member *m; ^ lookup.c: In function ‘lookup’: lookup.c:40:24: warning: typedef ‘ub1’ locally defined but not used [-Wunused-local-typedefs] typedef unsigned char ub1; /* unsigned 1-byte quantities */ ^ Still one compilation warning left in cmdline.c, but that code is autogenerated.
2011-11-02Convert all code to Linux coding styleHarald Welte1-480/+549
After so many years of silence, we don't expect the original author to return to the project. To make things a bit simpler for us, we convert the coding style to what we are used to (Linux style). The conversion was made using the 'Lindent' script which is part of the Linux kernel.
2011-10-07RAI fixYann BONNAMY1-3/+11
fix ggsn handling of create pdp context when RAI is included and Recovery field is absent Signed-off-by: Yann BONNAMY <yann_bonnamy@yahoo.fr>
2010-10-29Add support for GTP IE's from 3GPP R7Yann BONNAMY1-0/+4
This adds support for the followng new GTP Information Elements: RAT_TYPE, USER_LOC, MS_TZ, IMEI_SV Furthermore, it allows to specify those fields as sgsnemu command line arguments.
2010-05-16[libgtp] Fix GTPIE parsing segfault on 64bit architecturesHarald Welte1-1/+1
Pointers are not always 4 bytes in size...
2010-05-04Fix various compiler warnings throughout the codeHarald Welte1-10/+10
Mostly signed/unsigned and typecasting issues Taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1811517&group_id=68956&atid=522957
2010-05-04[SECURITY] Fix GTPIE parsing DoSHarald Welte1-1/+5
This is taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1811511&group_id=68956&atid=522957 and http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg402969.html and addresses a DoS: The problem lies in the parsing of information elements in GTP messages, which is implemented in the gtpie_decaps function of gtp/gtpie.c file. The implementation has a bug that does not check if there are too many information elements in the message thus causing the software to loop infinitely in the while-loop. In addition, handling routine for the error situation had to be implemented outside the while-loop.
2004-09-17qos length bugfix and apple support plus header cleanupjjako1-5/+6
2004-01-09Rename u_int to uintjjako1-6/+6
2003-10-13First attempt at a GTP1 implementationjjako1-8/+39
2002-12-16Initial revisionjjako1-0/+513