Projects
osmocom:latest
osmo-ggsn
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
osmo-ggsn.spec
Changed
@@ -18,13 +18,13 @@ Name: osmo-ggsn Requires: osmocom-latest -Version: 1.10.2 +Version: 1.11.0 Release: 0 Summary: GPRS Support Node License: GPL-2.0-only AND LGPL-2.1-or-later Group: Productivity/Telephony/Servers URL: https://osmocom.org/projects/openggsn -Source: osmo-ggsn_1.10.2.tar.xz +Source: osmo-ggsn_1.11.0.tar.xz Source1: rpmlintrc BuildRequires: libtool >= 2 BuildRequires: pkgconfig >= 0.20
View file
osmo-ggsn_1.10.2.dsc -> osmo-ggsn_1.11.0.dsc
Changed
@@ -2,7 +2,7 @@ Source: osmo-ggsn Binary: osmo-ggsn, libgtp6, gtp-echo-responder, libgtp-dev, osmo-ggsn-dbg, gtp-echo-responder-dbg, libgtp-dbg, osmo-ggsn-doc Architecture: any all -Version: 1.10.2 +Version: 1.11.0 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://projects.osmocom.org/projects/openggsn Standards-Version: 3.9.6 @@ -19,8 +19,8 @@ osmo-ggsn-dbg deb debug extra arch=any osmo-ggsn-doc deb doc optional arch=all Checksums-Sha1: - e9ec9a86bca4b4921d64b503db9717efa5ee7630 192296 osmo-ggsn_1.10.2.tar.xz + 9fff59db2fea9eab86d185e0daae5dc0222592e9 191780 osmo-ggsn_1.11.0.tar.xz Checksums-Sha256: - 9db79e853bbe2d9a4f0c96b0fa80ea9521cb5e007a3dcdf975040d6a975c1c26 192296 osmo-ggsn_1.10.2.tar.xz + ae25f3cb4e48fdc0e8b2ea075d162b3157383bfae7e92e50528f50b8c62986f8 191780 osmo-ggsn_1.11.0.tar.xz Files: - 70adfd0daa2817f5776d78a8b812eb7d 192296 osmo-ggsn_1.10.2.tar.xz + 5aa172e1fb46d4a0cb4b3a6d23964e70 191780 osmo-ggsn_1.11.0.tar.xz
View file
osmo-ggsn_1.10.2.tar.xz/.tarball-version -> osmo-ggsn_1.11.0.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.10.2 +1.11.0
View file
osmo-ggsn_1.10.2.tar.xz/debian/changelog -> osmo-ggsn_1.11.0.tar.xz/debian/changelog
Changed
@@ -1,3 +1,10 @@ +osmo-ggsn (1.11.0) unstable; urgency=medium + + Daniel Willmann + * gtp: Add net GTP cause values and a function to check for success + + -- Oliver Smith <osmith@sysmocom.de> Tue, 28 Nov 2023 13:38:29 +0100 + osmo-ggsn (1.10.2) unstable; urgency=medium Vadim Yanitskiy
View file
osmo-ggsn_1.10.2.tar.xz/gtp/Makefile.am -> osmo-ggsn_1.11.0.tar.xz/gtp/Makefile.am
Changed
@@ -2,7 +2,7 @@ # Please read chapter "Library interface versions" of the libtool documentation # before making any modifications: https://www.gnu.org/software/libtool/manual/html_node/Versioning.html # If major=current-age is increased, remember to update the dh_strip line in debian/rules! -LIBVERSION=9:0:3 +LIBVERSION=9:1:3 lib_LTLIBRARIES = libgtp.la
View file
osmo-ggsn_1.10.2.tar.xz/gtp/gtp.c -> osmo-ggsn_1.11.0.tar.xz/gtp/gtp.c
Changed
@@ -995,7 +995,7 @@ /* Now send off a reply to the peer */ gtp_create_pdp_resp(gsn, pdp->version, pdp, cause); - if (cause != GTPCAUSE_ACC_REQ) + if (!gtp_cause_successful(cause)) gtp_freepdp(gsn, pdp); return 0; @@ -1011,7 +1011,7 @@ gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_CAUSE, cause); - if (cause == GTPCAUSE_ACC_REQ) { + if (gtp_cause_successful(cause)) { if (version == 0) gtpie_tv0(&packet, &length, GTP_MAX, GTPIE_QOS_PROFILE0, @@ -1445,7 +1445,7 @@ } /* Check all conditional information elements */ - if (GTPCAUSE_ACC_REQ == cause) { + if (gtp_cause_successful(cause)) { if (version == 0) { if (gtpie_gettv0(ie, GTPIE_QOS_PROFILE0, 0, @@ -1667,7 +1667,7 @@ gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_CAUSE, cause); - if (cause == GTPCAUSE_ACC_REQ) { + if (gtp_cause_successful(cause)) { if (version == 0) gtpie_tv0(&packet, &length, GTP_MAX, GTPIE_QOS_PROFILE0, @@ -1997,7 +1997,7 @@ /* Check all conditional information elements */ /* TODO: This does not handle GGSN-initiated update responses */ - if (cause == GTPCAUSE_ACC_REQ) { + if (gtp_cause_successful(cause)) { if (version == 0) { if (gtpie_gettv0(ie, GTPIE_QOS_PROFILE0, 0, &pdp->qos_neg0, @@ -2172,7 +2172,7 @@ gtp_resp(version, gsn, pdp, &packet, length, peer, fd, get_seq(pack), get_tid(pack)); - if (cause == GTPCAUSE_ACC_REQ) { + if (gtp_cause_successful(cause)) { if ((teardown) || (version == 0)) { /* Remove all contexts */ gtp_freepdp_teardown(gsn, linked_pdp); } else { @@ -2198,7 +2198,6 @@ } } } - /* if (cause == GTPCAUSE_ACC_REQ) */ return 0; } @@ -2350,7 +2349,7 @@ } /* Check the cause value (again) */ - if ((GTPCAUSE_ACC_REQ != cause) && (GTPCAUSE_NON_EXIST != cause)) { + if (!gtp_cause_successful(cause) && (GTPCAUSE_NON_EXIST != cause)) { rate_ctr_inc2(gsn->ctrg, GSN_CTR_ERR_UNEXPECTED_CAUSE); GTP_LOGPKG(LOGL_ERROR, peer, pack, len, "Unexpected cause value received: %d\n", cause);
View file
osmo-ggsn_1.10.2.tar.xz/gtp/gtp.h -> osmo-ggsn_1.11.0.tar.xz/gtp/gtp.h
Changed
@@ -103,7 +103,9 @@ #define GTPCAUSE_049 49 /* Cause values reserved for GPRS charging protocol use (See GTP' in GSM 12.15) 49-63 */ #define GTPCAUSE_064 64 /* For future use 64-127 */ #define GTPCAUSE_ACC_REQ 128 /* Request accepted */ -#define GTPCAUSE_129 129 /* For future use 129-176 */ +#define GTPCAUSE_NEW_PDP_NET_PREF 129 /* New PDP type due to network preference */ +#define GTPCAUSE_NEW_PDP_ADDR_BEAR 130 /* New PDP type due to single address bearer only */ +#define GTPCAUSE_131 131 /* For future use 131-176 */ #define GTPCAUSE_177 177 /* Cause values reserved for GPRS charging protocol use (See GTP' In GSM 12.15) 177-191 */ #define GTPCAUSE_NON_EXIST 192 /* Non-existent */ #define GTPCAUSE_INVALID_MESSAGE 193 /* Invalid message format */ @@ -137,6 +139,13 @@ #define GTPCAUSE_221 221 /* For Future Use 221-240 */ #define GTPCAUSE_241 241 /* Cause Values Reserved For Gprs Charging Protocol Use (See Gtp' In Gsm 12.15) 241-255 */ +static inline bool gtp_cause_successful(uint8_t cause) +{ + return cause == GTPCAUSE_ACC_REQ || + cause == GTPCAUSE_NEW_PDP_NET_PREF || + cause == GTPCAUSE_NEW_PDP_ADDR_BEAR; +} + struct ul66_t; struct ul16_t; struct pdp_t;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.