Compare commits

..

72 Commits

Author SHA1 Message Date
Sukchan Lee
10d9159dc5 rename pkgconfig 2019-07-11 22:45:43 +09:00
Sukchan Lee
e03c1436fb Release v0.5.0 2019-07-11 22:26:56 +09:00
Sukchan Lee
aa4ea44c2c [OGSLIB] Use NEW Version v1.1.0 2019-07-11 22:25:20 +09:00
Sukchan Lee
e023be67e7 [OGSLIB] Use NEW version v1.1.0 2019-07-11 22:24:20 +09:00
Sukchan Lee
0a96d446b8 [Indentation] All source code changed 2019-07-11 22:22:22 +09:00
Sukchan Lee
97afc2db60 fix identation in HSS 2019-07-11 22:16:32 +09:00
Sukchan Lee
27d5208ea3 fix indentation in PGW 2019-07-11 22:09:30 +09:00
Sukchan Lee
7e08f7fc45 fix indentation in SGW 2019-07-11 22:01:52 +09:00
Sukchan Lee
19a01bdda4 Add CSFB TestSuite 2019-07-11 21:56:34 +09:00
Sukchan Lee
cb369daaea fix indentation in MME 2019-07-11 21:53:54 +09:00
Sukchan Lee
cd814afcff [CSFB] MT-Active-Test done 2019-07-11 21:39:44 +09:00
Sukchan Lee
de59488e2e [CSFB] MT-Active-Mode (Not Done) 2019-07-11 18:14:32 +09:00
Sukchan Lee
d9b7e966e1 [CSFB] Add MO in Active-mode 2019-07-10 22:04:52 +09:00
Sukchan Lee
9dbca85c1f [CSFB] Idle-mode done 2019-07-09 09:27:45 +09:00
Sukchan Lee
87cdd71582 Add Cause in Bearer IE (#215) 2019-07-08 23:08:15 +09:00
Sukchan Lee
0e1bd64646 fix indentation 2019-07-08 22:58:41 +09:00
Sukchan Lee
346e67b7de more sleep is needed in the test code 2019-07-08 22:42:10 +09:00
Sukchan Lee
ecfac8fe3b Add Delay for testcode 2019-07-08 22:20:25 +09:00
Sukchan Lee
40ae23aca4 Paging rollback 2019-07-08 21:44:03 +09:00
Sukchan Lee
979fd96a84 [CSFB] Fix the MacOSX 2019-07-08 21:03:39 +09:00
Sukchan Lee
16a8bea96b [CSFB] MT in idle-mode 2019-07-08 18:15:19 +09:00
Sukchan Lee
5e0c10bcb4 [CSFB] Rename test-name 2019-07-08 09:18:17 +09:00
Sukchan Lee
9863635342 [SGsAP] Add SGsAP-RESET-INDCIATON/ACK 2019-07-07 10:16:21 +09:00
Sukchan Lee
bc9cf078a5 [CSFB] Add MO-CSFB-Indication 2019-07-07 09:47:32 +09:00
Sukchan Lee
65cb21ce05 [SGsAP] clarify P_TMSI availablity 2019-07-06 23:30:05 +09:00
Sukchan Lee
0bbc5124e7 rename filename 2019-07-06 22:52:09 +09:00
Sukchan Lee
89ed2dda88 [SGsAP] TestCode for CS fallback in idle-mode 2019-07-06 22:45:15 +09:00
Sukchan Lee
a6eb646b76 [SGsAP] MO CS fallback in idle-mode 2019-07-06 22:16:13 +09:00
Sukchan Lee
5164b51607 [SGsAP] waiting for running the SCTP test server 2019-07-05 18:16:58 +09:00
Sukchan Lee
cc83c6a586 [SGsAP] DETACH-INDICATOIN/ACK is done 2019-07-05 18:13:32 +09:00
Sukchan Lee
a372bd2949 [SGsAP] Start to implement XXX-DETACH-INDICATION 2019-07-05 17:25:12 +09:00
Sukchan Lee
4f7aa2d5b7 [SGsAP] Location Update Reject 2019-07-05 15:55:07 +09:00
Sukchan Lee
334c678995 Fix the Security Command Reject (#214) 2019-07-04 22:48:26 +09:00
Sukchan Lee
0717b57465 Debian package name changed 2019-07-04 13:12:09 +00:00
Sukchan Lee
b440d59ce7 Update documentation 2019-07-04 20:30:58 +09:00
Nick
770d1cdba6 Reordered and updated MME details 2019-07-04 21:10:25 +10:00
Nick
cd2b420470 Created doc "NextEPC Splitting Network Elements"
Outlining basic requirements of each network element and interfaces and how to break up the network.
2019-07-04 21:09:05 +10:00
Sukchan Lee
f9f1ac7aac fix the docker-compose build error (#211) 2019-07-02 22:02:43 +09:00
Sukchan Lee
fd66c4023e Merge pull request #209 from laf0rge/master
freeDiameter: Fix compilation on Linux without SCTP_SEND_FAILED_EVENT
2019-07-02 15:15:52 +09:00
Harald Welte
6fc412dba7 fix 'no rule to make target "-L/usr/local/lib" compilation errors
When building (at least) on Debian unstable, I get the following type of errors:

make[4]: Entering directory '/space/home/laforge/projects/git/nextepc/lib/base'
make[4]: *** No rule to make target '-L/usr/local/lib', needed by 'libbase.la'.  Stop.

The cause seems to be that some target_DEPENDENCIES includes
@OGSCORE_LIBS@ or @OGSCRYPT_LIBS@, whcih both expand to "-L${libdir}
-lpthread -logscore-1.0" as per the pkg-config files.

I believe DEPENDENCIES should not list external library dependencies,
but only dependencies inside the repository.

Closes: #210
2019-07-02 13:58:40 +08:00
Harald Welte
95091210ff freeDiameter: Fix compilation on Linux without SCTP_SEND_FAILED_EVENT
The fallback to the old SCTP API must be made if either SCTP_SEND_FAILED_EVENT
or SCTP_NOTIFICATIONS_STOPPED_EVENT are undeclared.

This fixes building nextepc on e.g. Debian unstable.

Closes: #208
2019-07-02 13:42:33 +08:00
Sukchan Lee
9abc8575f6 fix the testcase error 2019-07-01 10:00:50 +09:00
Sukchan Lee
3ebe749bb2 Merge branch 'master' of https://github.com/open5gs/nextepc 2019-06-30 22:58:48 +09:00
Sukchan Lee
baa35843fc Update document for v0.4.4 2019-06-30 22:58:30 +09:00
Sukchan Lee
d9e0b0eeaf Release v0.4.4 in Ubuntu(bionic) 2019-06-30 13:24:00 +00:00
Sukchan Lee
6e5ab199af Release v0.4.4 in Ubuntu(xenial) 2019-06-30 13:22:19 +00:00
Sukchan Lee
e2af4473dd Release v0.4.4 2019-06-30 12:05:30 +00:00
Sukchan Lee
e704295811 fix the testsuite 2019-06-30 20:48:51 +09:00
Sukchan Lee
8e53e82913 fix identation 2019-06-30 20:46:15 +09:00
Sukchan Lee
db348156e2 fix indentation 2019-06-30 20:29:25 +09:00
Sukchan Lee
de8ae9823a Create Multiple Session for same IMSI (#203) 2019-06-30 12:46:02 +09:00
Sukchan Lee
16fdc0d989 Update identation 2019-06-30 12:14:04 +09:00
Sukchan Lee
971f41d951 Missing file (#203) 2019-06-29 16:04:25 +09:00
Sukchan Lee
7747a4e32a Change MME-UE-S1AP-ID and eNB-UE-S1AP-ID (#203) 2019-06-29 15:51:42 +09:00
Sukchan Lee
44710d3f63 Add simulator to solve (#203) problem 2019-06-29 15:40:52 +09:00
Sukchan Lee
a4d18c2d96 Move enb_ostream_id from mme_ue to enb_ue (#206) 2019-06-28 18:11:16 +09:00
Sukchan Lee
6901278816 Fix the setting of the SCTP ostream-id (#206) 2019-06-26 23:06:31 +09:00
Sukchan Lee
7492ec734b Oops! change github_username 2019-06-26 21:38:33 +09:00
Sukchan Lee
4af3fea81b Fix the MME crash (#205) 2019-06-26 20:52:28 +09:00
Sukchan Lee
148c109d05 Fix the SGW crash for "context not found" (#204) 2019-06-25 23:04:41 +09:00
Sukchan Lee
acd77a8ad6 Fix the MME crash (#203) 2019-06-25 10:55:00 +09:00
Sukchan Lee
f380af44c3 Fix the service reject handling (#201) 2019-06-24 09:44:05 +09:00
Sukchan Lee
5f8d609d0c Handle SR and TAU in security-mode state (#202) 2019-06-23 21:15:59 +09:00
Sukchan Lee
db83b1e004 fix identation 2019-06-23 20:43:23 +09:00
Sukchan Lee
fe15600e02 Remove S1 check in Downlink NAS transport (#201) 2019-06-23 20:17:44 +09:00
Sukchan Lee
9177ad4ee0 When STCP send failed, clear related context (#200) 2019-06-23 13:39:44 +09:00
Sukchan Lee
660ebc823f mme_sctp_event_push() interface introduced 2019-06-23 04:22:22 +00:00
Sukchan Lee
9d0b419085 Create new interface : s1ap_event_push() 2019-06-23 12:47:22 +09:00
Sukchan Lee
79cbd8fb24 Update document for Release v0.4.3 2019-06-22 16:51:28 +09:00
Sukchan Lee
f9ea5a9136 OGSLIB Version check >= 1.0.2 2019-06-22 07:10:23 +00:00
Sukchan Lee
6f65f9b5ec Release v0.4.3 in Ubuntu(Xenial) 2019-06-22 06:57:30 +00:00
Sukchan Lee
e688667b9f Release v0.4.3 in Ubuntu(Bionic) 2019-06-22 06:56:10 +00:00
233 changed files with 7519 additions and 3772 deletions

View File

@@ -119,8 +119,8 @@ if test x$have_srclib == xyes; then
AC_SUBST(OGSCRYPT_CFLAGS, '-I$(top_srcdir)/lib/ogslib/src') AC_SUBST(OGSCRYPT_CFLAGS, '-I$(top_srcdir)/lib/ogslib/src')
AC_SUBST(OGSCRYPT_LIBS, '$(top_srcdir)/lib/ogslib/src/crypt/libogscrypt-1.0.la') AC_SUBST(OGSCRYPT_LIBS, '$(top_srcdir)/lib/ogslib/src/crypt/libogscrypt-1.0.la')
else else
PKG_CHECK_MODULES(OGSCORE, ogscore-1.0 >= 1.0.0) PKG_CHECK_MODULES(OGSCORE, ogscore-1.0 >= 1.1.0)
PKG_CHECK_MODULES(OGSCRYPT, ogscrypt-1.0 >= 1.0.0) PKG_CHECK_MODULES(OGSCRYPT, ogscrypt-1.0 >= 1.1.0)
fi fi
AM_CONDITIONAL([WITH_SRCLIB], [test x$have_srclib = xyes]) AM_CONDITIONAL([WITH_SRCLIB], [test x$have_srclib = xyes])

37
debian/changelog vendored
View File

@@ -1,3 +1,40 @@
nextepc (0.5.0) unstable; urgency=medium
* CSFB Supported
* OGSLib package name changed
-- Sukchan Lee <acetcom@gmail.com> Thu, 11 Jul 2019 22:26:35 +0900
nextepc (0.4.4~bionic) bionic; urgency=medium
* Bug Fixed
-- Sukchan Lee <acetcom@gmail.com> Sun, 30 Jun 2019 13:23:15 +0000
nextepc (0.4.4~xenial) xenial; urgency=medium
* Bug Fixed
-- Sukchan Lee <acetcom@gmail.com> Sun, 30 Jun 2019 13:21:59 +0000
nextepc (0.4.4) unstable; urgency=medium
* Bug Fixed
-- Sukchan Lee <acetcom@gmail.com> Sun, 30 Jun 2019 12:05:12 +0000
nextepc (0.4.3~xenial) xenial; urgency=medium
* Bug Fixed
-- Sukchan Lee <acetcom@gmail.com> Sat, 22 Jun 2019 06:57:10 +0000
nextepc (0.4.3~bionic) bionic; urgency=medium
* Bug Fixed
-- Sukchan Lee <acetcom@gmail.com> Sat, 22 Jun 2019 06:55:56 +0000
nextepc (0.4.3) unstable; urgency=medium nextepc (0.4.3) unstable; urgency=medium
* Bug Fixed * Bug Fixed

2
debian/control vendored
View File

@@ -12,7 +12,7 @@ Build-Depends: debhelper (>= 9),
libtool, libtool,
flex, flex,
bison, bison,
ogslib-dev (>= 1.0.0), libogslib-dev (>= 1.1.0),
libgnutls28-dev, libgnutls28-dev,
libgcrypt-dev, libgcrypt-dev,
libssl-dev, libssl-dev,

View File

@@ -8,10 +8,10 @@ MAINTAINER Sukchan Lee <acetcom@gmail.com>
WORKDIR /root WORKDIR /root
COPY setup.sh /root COPY setup.sh /root
ARG USER=acetcom ARG USER=open5gs
ARG REPO=nextepc ARG REPO=nextepc
ARG BRANCH=master ARG BRANCH=master
RUN git clone https://github.com/$USER/$REPO RUN git clone --recursive https://github.com/$USER/$REPO
ADD https://api.github.com/repos/$USER/$REPO/git/refs/heads/$BRANCH /root/nextepc-ver.json ADD https://api.github.com/repos/$USER/$REPO/git/refs/heads/$BRANCH /root/nextepc-ver.json
RUN cd nextepc && \ RUN cd nextepc && \

View File

@@ -21,7 +21,7 @@ description: >- # this means to ignore newlines until "baseurl:"
baseurl: "/nextepc" # the subpath of your site, e.g. /blog baseurl: "/nextepc" # the subpath of your site, e.g. /blog
url: "https://open5gs.org" # the base hostname & protocol for your site, e.g. http://example.com url: "https://open5gs.org" # the base hostname & protocol for your site, e.g. http://example.com
author: "Sukchan Lee" author: "Sukchan Lee"
github_username: acetcom github_username: open5gs
google_analytics: UA-139225646-2 google_analytics: UA-139225646-2
# Build settings # Build settings

View File

@@ -0,0 +1,189 @@
---
title: NextEPC Splitting Network Elements
head_inline: "<style> .blue { color: blue; } </style>"
---
In a production network network elements would typically not all be on the same machine, as is the default example that ships with NextEPC.
NextEPC is designed to be standards compliant, so in theory you can connect any core network element (MME, PGW, SGW, PCRF, HSS) from NextEPC or any other vendor to form a functioning network, so long as they are 3GPP compliant.
To demonstrate this we will cover isolating each network element onto it's on machine and connect each network element to the other. For some interfaces specifying multiple interfaces is supported to allow connection to multiple
In these examples we'll be connecting NextEPC elements together, but it could just as easily be EPC elements from a different vendor in the place of any NextEPC network element.
| Service | IP | Identity |
| ------------- |:-------------:|:-------------:|
| P-GW | 10.0.1.121 | pgw.localdomain |
| S-GW | 10.0.1.122 | |
| PCRF | 10.0.1.123 | pcrf.localdomain |
| MME | 10.0.1.124 | mme.localdomain |
| HSS | 10.0.1.118 | hss.localdomain |
# External P-GW
In it's simplest from the P-GW has 3 interfaces:
* S5 - Connection to home network S-GW (GTP-C)
* Gx - Connection to PCRF (Diameter)
* Sgi - Connection to external network (Generally the Internet via standard TCP/IP)
### S5 Interface Configuration
Edit ```/etc/nextepc/pgw.conf```and change the address to IP of the server running the P-GW for the listener on GTP-C and GTP-U interfaces.
```
pgw:
freeDiameter: pgw.conf
gtpc:
addr:
- 10.0.1.121
gtpu:
addr:
- 10.0.1.121
```
### Gx Interface Configuration
Edit ```/etc/nextepc/freeDiameter/pgwd.conf```
Update ```ListenOn``` address to IP of the server running the P-GW:
``` ListenOn = "10.0.1.121"; ```
Update ConnectPeer to connect to the PCRF on it's IP.
```ConnectPeer = "pcrf.localdomain" { ConnectTo = "10.0.1.123"; No_TLS; };```
### Restart Services
Restart NextEPC PGW Daemon:
``` $ sudo systemctl restart nextepc-pgwd ```
# External S-GW
In it's simplest form the S-GW has 2 interfaces:
* S11 - Connection to MME (GTP-C)
* S5 - Connection to the home network P-GW (GTP-C)
### S5 Interface Configuration
Edit ```/etc/nextepc/sgw.conf```and change the address to IP of the server running the S-GW for the listener on GTP-C interface.
```
sgw:
freeDiameter: pgw.conf
gtpc:
addr:
- 10.0.1.122
```
Restart NextEPC SGW Daemon:
``` $ sudo systemctl restart nextepc-sgwd ```
# External PCRF
In it's simplest from the PCRF has 1 network interface:
* Gx - Connection to P-GW (Diameter)
### Gx Interface Configuration
Edit ```/etc/nextepc/freeDiameter/hss.conf```
Update ```ListenOn``` address to IP of the server running the HSS on it's IP:
``` ListenOn = "10.0.1.123"; ```
Update ConnectPeer to connect to the MME.
```ConnectPeer = "pgw.localdomain" { ConnectTo = "10.0.1.121"; No_TLS; };```
### MongoDB Interface Configuration (NextEPC HSS only)
Edit ```/etc/nextepc/freeDiameter/hss.conf``` and change the ```db_uri:``` to point at the HSS: ```db_uri: mongodb://10.0.1.118/nextepc```
Restart NextEPC PCRF Daemon:
``` $ sudo systemctl restart nextepc-pcrfd ```
# External HSS
In it's simplest form the HSS has 1 network interface:
* S6a - Connection to MME (Diameter)
### S6a Interface Configuration
Edit ```/etc/nextepc/freeDiameter/hss.conf```
Update ```ListenOn``` address to IP of the server running the HSS on it's IP:
``` ListenOn = "10.0.1.118"; ```
Update ConnectPeer to connect to the MME.
```ConnectPeer = "mme.localdomain" { ConnectTo = "10.0.1.124"; No_TLS; };```
Restart NextEPC HSS Daemon:
``` $ sudo systemctl restart nextepc-hssd ```
### MongoDB Interface Configuration (NextEPC specific)
If you are using NextEPC's HSS you may need to enable MongoDB access from the PCRF. This is done by editing ''/etc/mongodb.conf'' and changing the bind IP to:
``` bind_ip = 0.0.0.0 ```
Restart MongoDB for changes to take effect.
``` $ /etc/init.d/mongodb restart ```
# External MME
In it's simplest form the MME has 3 interfaces:
* S1AP - Connections from eNodeBs
* S6a - Connection to HSS (Diameter)
* S11 - Connection to S-GW (GTP-C)
### S11 Interface Configuration
Edit ```/etc/nextepc/mme.conf```, filling the IP address of the S-GW and P-GW servers.
```
sgw:
gtpc:
addr: 10.0.1.122
pgw:
gtpc:
addr:
- 10.0.1.121
```
### S6a Interface Configuration
Edit ```/etc/nextepc/freeDiameter/mme.conf```
Update ```ListenOn``` address to IP of the server running the MME:
``` ListenOn = "10.0.1.124"; ```
Update ConnectPeer to connect to the PCRF on it's IP.
```ConnectPeer = "hss.localdomain" { ConnectTo = "10.0.1.118"; No_TLS; };```
### Restart Services
Restart NextEPC MME Daemon:
``` $ sudo systemctl restart nextepc-mmed ```

View File

@@ -8,6 +8,7 @@ head_inline: "<style> ul { padding-bottom: 1em; } </style>"
- User's Guide - User's Guide
- [Quickstart](guide/01-quickstart) - [Quickstart](guide/01-quickstart)
- [Building nextepc from Sources](guide/02-building-nextepc-from-sources) - [Building nextepc from Sources](guide/02-building-nextepc-from-sources)
- [Splitting Network Elements](guide/03-splitting-network-elements)
- Tutorials - Tutorials
- [Your First LTE](tutorial/01-your-first-lte) - [Your First LTE](tutorial/01-your-first-lte)

View File

@@ -1,5 +1,5 @@
--- ---
title: "v0.4.2 - Stable version of v0.4.x" title: "v0.4.2 - Support a different APN for each PGW"
date: 2019-05-28 21:13:00 +0900 date: 2019-05-28 21:13:00 +0900
categories: categories:
- Release - Release

View File

@@ -0,0 +1,21 @@
---
title: "v0.4.3 - Enable SCTP_NODELAY"
date: 2019-06-22 16:42:00 +0900
categories:
- Release
tags:
- News
- Release
head_inline: "<style> ul { padding-bottom: 1em; } </style>"
---
#### Enhancement
- Adjust the size of memory pool for SGW buffering ([#190](https://github.com/open5gs/nextepc/issues/190)) -- [lezixiao](https://github.com/lezixiao)
#### Bug fixes
- Enable SCTP_NODELAY and Fix the assertion ([#198](https://github.com/open5gs/nextepc/issues/198)) -- [lezixiao](https://github.com/lezixiao)
- Fix the assertion of handling a freeDiameter session ([#195](https://github.com/open5gs/nextepc/issues/195)) -- [lezixiao](https://github.com/lezixiao)
- Fix PGW coredump when GTP-U packet cannot find BEARER by TEID ([#194](https://github.com/open5gs/nextepc/issues/194)) -- [lezixiao](https://github.com/lezixiao)
Download -- [v0.4.3.tar.gz](https://github.com/open5gs/nextepc/archive/v0.4.3.tar.gz)
{: .notice--info}

View File

@@ -0,0 +1,22 @@
---
title: "v0.4.4 - The Multiple Attachment for same IMSI"
date: 2019-06-30 22:48:00 +0900
categories:
- Release
tags:
- News
- Release
head_inline: "<style> ul { padding-bottom: 1em; } </style>"
---
#### Bug fixes
- Move enb_ostream_id from mme_ue to enb_ue context ([#206](https://github.com/open5gs/nextepc/issues/206)) -- [lezixiao](https://github.com/lezixiao)
- Fix the MME crash EMM status following Initial Context Setup Response ([#205](https://github.com/open5gs/nextepc/issues/205)) -- [lezixiao](https://github.com/lezixiao)
- Fix the SGW crash for "Context Not Found" ([#204](https://github.com/open5gs/nextepc/issues/204)) -- [lezixiao](https://github.com/lezixiao)
- Fix the Multiple Attachment for same IMSI ([#203](https://github.com/open5gs/nextepc/issues/203)) -- [lezixiao](https://github.com/lezixiao)
- Add Handler of the Service Request and TAU Request in Security-mode state ([#202](https://github.com/open5gs/nextepc/issues/202)) -- [lezixiao](https://github.com/lezixiao)
- Fix Service reject handler ([#201](https://github.com/open5gs/nextepc/issues/201)) -- [lezixiao](https://github.com/lezixiao)
- Clear resources when SCTP-send failed ([#200](https://github.com/open5gs/nextepc/issues/200)) -- [lezixiao](https://github.com/lezixiao)
Download -- [v0.4.4.tar.gz](https://github.com/open5gs/nextepc/archive/v0.4.4.tar.gz)
{: .notice--info}

View File

@@ -1132,7 +1132,6 @@ libasn1c_la_SOURCES= \
$(NULL) $(NULL)
libasn1c_la_DEPENDENCIES = \ libasn1c_la_DEPENDENCIES = \
@OGSCORE_LIBS@ \
$(top_srcdir)/lib/base/libbase.la \ $(top_srcdir)/lib/base/libbase.la \
$(NULL) $(NULL)

View File

@@ -9,7 +9,6 @@ libbase_la_SOURCES = \
$(NULL) $(NULL)
libbase_la_DEPENDENCIES = \ libbase_la_DEPENDENCIES = \
@OGSCORE_LIBS@ \
$(NULL) $(NULL)
libbase_la_LIBADD = \ libbase_la_LIBADD = \

View File

@@ -60,6 +60,7 @@ extern "C" {
#define MAX_APN_LEN 100 #define MAX_APN_LEN 100
#define MAX_PCO_LEN 251 #define MAX_PCO_LEN 251
#define MAX_FILEPATH_LEN 256 #define MAX_FILEPATH_LEN 256
#define MAX_FQDN_LEN 256
#define NEXT_ID(__id, __min, __max) \ #define NEXT_ID(__id, __min, __max) \
((__id) = ((__id) == (__max) ? (__min) : ((__id) + 1))) ((__id) = ((__id) == (__max) ? (__min) : ((__id) + 1)))

View File

@@ -32,7 +32,6 @@ libfd_la_SOURCES = \
$(NULL) $(NULL)
libfd_la_DEPENDENCIES = \ libfd_la_DEPENDENCIES = \
@OGSCORE_LIBS@ \
$(top_srcdir)/lib/@FREEDIAMETER_DIR@/libfdcore/libfdcore.la \ $(top_srcdir)/lib/@FREEDIAMETER_DIR@/libfdcore/libfdcore.la \
$(top_srcdir)/lib/@FREEDIAMETER_DIR@/libfdproto/libfdproto.la \ $(top_srcdir)/lib/@FREEDIAMETER_DIR@/libfdproto/libfdproto.la \
$(top_srcdir)/lib/base/libbase.la \ $(top_srcdir)/lib/base/libbase.la \

View File

@@ -48,7 +48,8 @@
/* #define OLD_SCTP_SOCKET_API */ /* #define OLD_SCTP_SOCKET_API */
/* Automatically fallback to old API if some of the new symbols are not defined */ /* Automatically fallback to old API if some of the new symbols are not defined */
#if (!defined(SCTP_CONNECTX_4_ARGS) || (!defined(SCTP_RECVRCVINFO)) || (!defined(SCTP_SNDINFO))) #if (!defined(SCTP_CONNECTX_4_ARGS) || (!defined(SCTP_RECVRCVINFO)) || (!defined(SCTP_SNDINFO)) || \
(!defined(SCTP_SEND_FAILED_EVENT)) || (!defined(SCTP_NOTIFICATIONS_STOPPED_EVENT)) )
# define OLD_SCTP_SOCKET_API # define OLD_SCTP_SOCKET_API
#endif #endif

View File

@@ -25,7 +25,6 @@ libgtp_la_SOURCES = \
$(NULL) $(NULL)
libgtp_la_DEPENDENCIES = \ libgtp_la_DEPENDENCIES = \
@OGSCORE_LIBS@ \
$(top_srcdir)/lib/base/libbase.la \ $(top_srcdir)/lib/base/libbase.la \
$(NULL) $(NULL)

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by gtp-tlv.py script v0.1.0 * This file had been created by gtp-tlv.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-11 17:35:40.953361 by acetcom * Created on: 2019-07-06 22:50:27.017552 by acetcom
* from 29274-d80.docx * from 29274-d80.docx
******************************************************************************/ ******************************************************************************/

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by gtp-tlv.py script v0.1.0 * This file had been created by gtp-tlv.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-11 17:35:40.936758 by acetcom * Created on: 2019-07-06 22:50:27.011335 by acetcom
* from 29274-d80.docx * from 29274-d80.docx
******************************************************************************/ ******************************************************************************/

View File

@@ -161,7 +161,7 @@ else:
d_error("Cannot find file : " + filename) d_error("Cannot find file : " + filename)
d_info("[Message List]") d_info("[Message List]")
cachefile = cachedir + 'tlv_msg_list.py' cachefile = cachedir + 'tlv-msg-list.py'
if os.path.isfile(cachefile) and os.access(cachefile, os.R_OK): if os.path.isfile(cachefile) and os.access(cachefile, os.R_OK):
execfile(cachefile) execfile(cachefile)
print "Read from " + cachefile print "Read from " + cachefile
@@ -238,7 +238,7 @@ else:
type_list['MM Context'] = { "type": "107", "max_instance" : "0" } type_list['MM Context'] = { "type": "107", "max_instance" : "0" }
d_info("[Group IE List]") d_info("[Group IE List]")
cachefile = cachedir + 'tlv_group_list.py' cachefile = cachedir + 'tlv-group-list.py'
if os.path.isfile(cachefile) and os.access(cachefile, os.R_OK): if os.path.isfile(cachefile) and os.access(cachefile, os.R_OK):
execfile(cachefile) execfile(cachefile)
print "Read from " + cachefile print "Read from " + cachefile
@@ -334,7 +334,7 @@ msg_list["Modify Access Bearers Response"]["table"] = 87
for key in msg_list.keys(): for key in msg_list.keys():
if "table" in msg_list[key].keys(): if "table" in msg_list[key].keys():
d_info("[" + key + "]") d_info("[" + key + "]")
cachefile = cachedir + "tlv_msg_" + msg_list[key]["type"] + ".py" cachefile = cachedir + "tlv-msg-" + msg_list[key]["type"] + ".py"
if os.path.isfile(cachefile) and os.access(cachefile, os.R_OK): if os.path.isfile(cachefile) and os.access(cachefile, os.R_OK):
execfile(cachefile) execfile(cachefile)
print "Read from " + cachefile print "Read from " + cachefile

View File

@@ -23,7 +23,6 @@ libnas_la_SOURCES = \
$(NULL) $(NULL)
libnas_la_DEPENDENCIES = \ libnas_la_DEPENDENCIES = \
@OGSCORE_LIBS@ \
$(top_srcdir)/lib/base/libbase.la \ $(top_srcdir)/lib/base/libbase.la \
$(NULL) $(NULL)

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by nas-message.py script v0.1.0 * This file had been created by nas-message.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-21 14:10:51.931135 by acetcom * Created on: 2019-07-06 22:48:01.560467 by acetcom
* from 24301-d80.docx * from 24301-d80.docx
******************************************************************************/ ******************************************************************************/

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by nas-message.py script v0.1.0 * This file had been created by nas-message.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-21 14:10:51.957409 by acetcom * Created on: 2019-07-06 22:48:01.570057 by acetcom
* from 24301-d80.docx * from 24301-d80.docx
******************************************************************************/ ******************************************************************************/

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by nas-message.py script v0.1.0 * This file had been created by nas-message.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-21 14:10:51.889878 by acetcom * Created on: 2019-07-06 22:48:01.547045 by acetcom
* from 24301-d80.docx * from 24301-d80.docx
******************************************************************************/ ******************************************************************************/
@@ -214,8 +214,6 @@ int nas_decode_mobile_identity(nas_mobile_identity_t *mobile_identity, ogs_pkbuf
if (mobile_identity->tmsi.type == NAS_MOBILE_IDENTITY_TMSI) if (mobile_identity->tmsi.type == NAS_MOBILE_IDENTITY_TMSI)
{ {
if (mobile_identity->tmsi.spare != 0xf)
ogs_warn("Spec warning : mobile_identity->tmsi.spare = 0x%x", mobile_identity->tmsi.spare);
mobile_identity->tmsi.tmsi = ntohl(mobile_identity->tmsi.tmsi); mobile_identity->tmsi.tmsi = ntohl(mobile_identity->tmsi.tmsi);
} }
@@ -507,8 +505,6 @@ int nas_decode_eps_mobile_identity(nas_eps_mobile_identity_t *eps_mobile_identit
if (eps_mobile_identity->guti.type == NAS_EPS_MOBILE_IDENTITY_GUTI) if (eps_mobile_identity->guti.type == NAS_EPS_MOBILE_IDENTITY_GUTI)
{ {
if (eps_mobile_identity->guti.spare != 0xf)
ogs_warn("Spec warning : eps_mobile_identy->spare = 0x%x", eps_mobile_identity->guti.spare);
eps_mobile_identity->guti.mme_gid = ntohs(eps_mobile_identity->guti.mme_gid); eps_mobile_identity->guti.mme_gid = ntohs(eps_mobile_identity->guti.mme_gid);
eps_mobile_identity->guti.m_tmsi = ntohl(eps_mobile_identity->guti.m_tmsi); eps_mobile_identity->guti.m_tmsi = ntohl(eps_mobile_identity->guti.m_tmsi);
} }

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by nas-message.py script v0.1.0 * This file had been created by nas-message.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-21 14:10:51.884139 by acetcom * Created on: 2019-07-06 22:48:01.544954 by acetcom
* from 24301-d80.docx * from 24301-d80.docx
******************************************************************************/ ******************************************************************************/

View File

@@ -20,7 +20,7 @@
/******************************************************************************* /*******************************************************************************
* This file had been created by nas-message.py script v0.1.0 * This file had been created by nas-message.py script v0.1.0
* Please do not modify this file but regenerate it via script. * Please do not modify this file but regenerate it via script.
* Created on: 2019-06-21 14:10:51.908774 by acetcom * Created on: 2019-07-06 22:48:01.552798 by acetcom
* from 24301-d80.docx * from 24301-d80.docx
******************************************************************************/ ******************************************************************************/

View File

@@ -377,6 +377,7 @@ ED3(uint8_t cn_specific_drx_cycle_length_coefficient_and_drx_value_for_s1_mode:4
* A.1 Causes related to UE identification */ * A.1 Causes related to UE identification */
#define EMM_CAUSE_IMSI_UNKNOWN_IN_HSS 2 #define EMM_CAUSE_IMSI_UNKNOWN_IN_HSS 2
#define EMM_CAUSE_ILLEGAL_UE 3 #define EMM_CAUSE_ILLEGAL_UE 3
#define EMM_CAUSE_IMSI_UNKNOWN_IN_VLR 4
#define EMM_CAUSE_ILLEGAL_ME 6 #define EMM_CAUSE_ILLEGAL_ME 6
#define EMM_CAUSE_UE_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK 9 #define EMM_CAUSE_UE_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK 9
#define EMM_CAUSE_IMPLICITLY_DETACHED 10 #define EMM_CAUSE_IMPLICITLY_DETACHED 10
@@ -728,9 +729,9 @@ ED4(uint8_t type:4;,
* M V 1/2 * M V 1/2
* 9.9.3.21 NAS key set identifier * 9.9.3.21 NAS key set identifier
* M V 1/2 */ * M V 1/2 */
#define NAS_SERVICE_TYPE_CS_FALLBACK_OR_1XCS_FALLBACK_FROM_UE 0 #define NAS_SERVICE_TYPE_CS_FALLBACK_FROM_UE 0
#define NAS_SERVICE_TYPE_CS_FALLBACK_OR_1XCS_FALLBACK_TO_UE 1 #define NAS_SERVICE_TYPE_CS_FALLBACK_TO_UE 1
#define NAS_SERVICE_TYPE_CS_FALLBACK_EMERGENCY_CALL_OR_1XCS_FALLBACK_EMERGENCY_CALL_FROM_UE 2 #define NAS_SERVICE_TYPE_CS_FALLBACK_EMERGENCY_CALL_FROM_UE 2
typedef struct nas_service_type_s { typedef struct nas_service_type_s {
ED3(uint8_t tsc:1;, ED3(uint8_t tsc:1;,
uint8_t nas_key_set_identifier:3;, uint8_t nas_key_set_identifier:3;,

Some files were not shown because too many files have changed in this diff Show More