Commit Graph

313 Commits

Author SHA1 Message Date
Sukchan Lee 1b0536dca0 change all library from static to shared library 2017-11-05 17:13:50 +09:00
Sukchan Lee d2cf6821b8 fix the library dependency 2017-11-03 21:55:20 +09:00
Sukchan Lee 46b403c43d all running error is fixed 2017-10-31 09:32:18 +09:00
James Park b060ea1714 Add sleep so that server is ready to accept connection. 2017-10-30 15:26:30 -07:00
Sukchan Lee f627565696 Upload Launchpad PPA for Ubuntu 17.10 i386 2017-10-30 13:34:17 +00:00
Sukchan Lee badc1f2da3 fix compile error 2017-10-30 10:39:05 +00:00
Sukchan Lee 10cda2cfd7 exclude TCP test in testnetlib because sometimes this test is failed as
follows.

 OpenSUSE OBS
 - Ubuntu 17.04 i586 failed

[  542s] testnetlib          :  Line 262: expected <0>, but saw <-1>
[  542s] [10/30 07:48:38.730] ERRR: connect error(111:Connection refused)(proto:6 remote:127.0.0.1 dport:5121 lport:0) (net_lib.c:353)
[  542s] [10/30 07:48:38.730] ERRR: connect error(111:Connection refused)(proto:6 remote:127.0.0.1 dport:5121 lport:0) (net_lib.c:353)
[  542s] [10/30 07:48:38.730] ERRR: connect error(111:Connection refused)(proto:6 remote:127.0.0.1 dport:5121 lport:0) (net_lib.c:353)
[  542s] [10/30 07:48:38.730] ERRR: connect error(111:Connection refused)(proto:6 remote:127.0.0.1 dport:5121 lport:0) (net_lib.c:353)
[  542s] [10/30 07:48:38.730] ASSERT: !(net_sock && buffer). Invalid params
[  542s]  (net_lib.c:590)
[  542s] [10/30 07:48:38.730] ASSERT: !(net_sock). net_sock is NULL
[  542s]  (net_lib.c:408)
[  542s] [10/30 07:48:38.730] ASSERT: !(net_sock). net_sock is NULL
2017-10-30 10:37:33 +00:00
Sukchan Lee 9e27685cd0 disable test code. will be fixed later. 2017-10-30 02:14:33 +00:00
Sukchan Lee baf6af79d6 LOG configuration is changed.
We'll juse file log as a default log.
Older logger name is changed socket logger and default configuration is
disabled
2017-10-29 10:22:22 +00:00
Sukchan Lee 2d1983cfb0 /var/run bug is fixed
For systemd environment, we define runtime directory like the follwings
MME : /var/run/nextepc-mmed
SGW : /var/run/nextepc-sgwd
PGW : /var/run/nextepc-pgwd
HSS : /var/run/nextepc-hssd
PCRF : /var/run/nextepc-pcrfd

In each directory, PID File is created as follows.
MME : /var/run/nextepc-mmed/pid
SGW : /var/run/nextepc-sgwd/pid
PGW : /var/run/nextepc-pgwd/pid
HSS : /var/run/nextepc-hssd/pid
PCRF : /var/run/nextepc-pcrfd/pid
2017-10-29 10:57:15 +09:00
Sukchan Lee 5c4c4498d2 logging disunite to each individual 2017-10-29 00:44:09 +09:00
Sukchan Lee 6f5ec19388 PID file is created for logrotate 2017-10-24 15:55:28 +09:00
Sukchan Lee adcc473d6e 'make check` before 'make install'
checkepc.sh script is created.
this script generates necessary configuration file before `make
install`. And then, execute `./testepc -f ./etc/nextepc.conf`
2017-10-24 01:03:25 +09:00
Sukchan Lee 7b1949da6c Merge branch 'r0.2' of https://github.com/acetcom/nextepc into r0.2 2017-10-20 13:19:20 +09:00
Sukchan Lee da1a50e9d3 Merge branch 'master' into r0.2 2017-10-19 10:15:13 +09:00
Harald Welte 1c64000431 net_accept(): Inherit PPID from listening socket
When we call accept() on a listening socket, we need to inherit
the sctp PPID from the master socket to the new socket of the
just-accepted connection.  Otherwise any sent packets (such as S1AP)
will be sent to PPID=0 rather than the configured PPID (e.g. 18 for
S1AP).
2017-10-18 23:18:53 +02:00
Sukchan Lee 1df4fc9a41 continue to porting Userland SCTP
connection is done.
will implement send/recv function
2017-10-19 01:09:06 +09:00
Sukchan Lee bb806e492e Finally, I've remove net_sock_t->app_index in core_net.h
Now, we are done to porting SCTP using Userland SCTP
2017-10-18 14:36:12 +09:00
Sukchan Lee 10b23bb64e fix compile error for usrsctp 2017-10-17 22:18:48 +09:00
Sukchan Lee ea253016fc autoconf update for supporting Userland SCTP(libusrsctp) 2017-10-17 20:44:05 +09:00
Sukchan Lee 291a5ce514 merge MacOSX and FreeBSD code related tun ip config 2017-10-17 01:03:34 +09:00
Sukchan Lee cdbc8d1ab0 MAC OSX ping loopback test done 2017-10-17 00:56:00 +09:00
Sukchan Lee 689c3b95e7 routing table is automatically added in FreeBSD 2017-10-17 08:24:30 +09:00
Sukchan Lee b8a37b0ea1 net_tun library is updated for supporting FreeBSD and MacOSX
In FreeBSD and MacOSX, tun driver is automatically configured.
2017-10-17 07:03:37 +09:00
Sukchan Lee 172266b0c5 GTP Loopback Test Module is Added.
1. ping(src:45.45.0.1, dst:45.45.0.1)
2. MME emulates GTP-U instead of eNB, and send GTP-U to the SGW
3. SGW relay to PGW using GTP-U
4. PGW TUN reponse ping reply
5. PGW sends GTP-U to the SGW
6. SGW sends GTP-U to the MME
7. GTP-U decapsulates and sends ping packet to the kernel
2017-10-15 00:45:49 +09:00
Sukchan Lee ee4dd7732e Porting to FreeBSD (Stage-1)
I'd just fix the compile error at this point.
2017-10-12 23:01:51 +09:00
Lee Sukchan 22ec19066b Porting Done for CentOS 2017-09-29 12:22:03 +00:00
Sukchan Lee 3375325436 fix the warning-error in Ubuntu 64 bit 2017-09-25 10:45:09 +00:00
Sukchan Lee 8862741a8d change s1ap_send_ue_release_command with delay parameter 2017-09-18 19:30:03 +09:00
Sukchan Lee 5663f64cbb timer library update 2017-09-18 16:18:01 +09:00
Sukchan Lee 7a324ec8e9 delete indirect tunnel done.. 2017-09-14 14:18:47 +09:00
Sukchan Lee b65256152c add 32768 packet buffer for create indirect data forward message 2017-09-13 12:46:51 +09:00
Sukchan Lee 5b2728babd STORE/CLEAR_DATA is introduced to move data betwwen NAS and GTP 2017-09-06 20:29:55 +09:00
Sukchan Lee af4cf2a4e1 improve EMM SM 2017-09-04 13:04:35 +09:00
Sukchan Lee 87b0897602 design EMM state machine initially. 2017-09-04 00:06:39 +09:00
Sukchan Lee 1dddde1d74 fix the bug core_buffer_to_bcd 2017-09-01 22:03:52 +09:00
Sukchan Lee 0e7196c9c1 GX-CCR message build done 2017-08-23 00:51:57 +09:00
Sukchan Lee 3a36d458e5 initial code for CCR/CCA for Diameter Gx 2017-08-19 13:29:09 +09:00
Sukchan Lee f6636453b6 add initial code for PCRF 2017-08-17 14:15:08 +09:00
Sukchan Lee 7aa1ff55f0 warn -> error for memory pool 2017-08-11 13:11:13 +09:00
Sukchan Lee 772aefec7d initial routine re-architecture to remove memory leak and improve
stability
2017-08-04 21:29:49 +09:00
Sukchan Lee 08f260f6d9 Logger changes from process to thread 2017-08-04 18:02:19 +09:00
Sukchan Lee 9a91870324 add memory check tool 2017-08-04 12:06:56 +09:00
Sukchan Lee 2e6f9f7a34 suppress pkbuf memory leak log 2017-08-04 00:09:28 +09:00
Sukchan Lee d1d223b815 fix the memory leak for proc library 2017-08-03 23:54:36 +09:00
Sukchan Lee 18739296fa initialize/terminate done..
let me know if you have found zombie process.
2017-08-03 00:11:09 +09:00
Sukchan Lee 8fdb177c04 mostly done..initialize/terminate.
more test is needed.
2017-08-02 23:03:34 +09:00
Sukchan Lee fae9cad5dc update it 2017-08-02 21:11:22 +09:00
Sukchan Lee 13175e9e41 Merge branch 'master' of https://github.com/acetcom/cellwire 2017-08-02 20:04:02 +09:00
Sukchan Lee 4c124cb540 update trace code 2017-08-02 19:33:57 +09:00
Sukchan Lee 432626628c add s6a trace for message context
And this is a changed.
  TRACE.CONTEXT, TRACE.SM is removed in configuration files
  TRACE.OTHERS is added

See the support/nextepc.conf.in

Even though, you don't have to apply this changes to your current
configuration. TRACE.CONTEXT/SM/OTHERS will be ignored.
2017-08-02 15:11:08 +09:00
Sukchan Lee 341dc3d1f5 add process management library 2017-08-01 23:43:05 +09:00
Sukchan Lee 7646eb7e93 refine trace message 2017-08-01 10:16:06 +09:00
Sukchan Lee f7ec3c7c6e Configuration for TRACE is added 2017-07-31 22:35:25 +09:00
Sukchan Lee eee1537f5f update it 2017-07-28 23:07:57 +09:00
Sukchan Lee fb6519721a update it 2017-07-21 17:12:02 +09:00
Sukchan Lee 2e33ece64f update it 2017-07-14 14:09:31 +09:00
Sukchan Lee a7cd93f39e update it 2017-07-13 14:12:30 +09:00
Sukchan Lee 6a98afbb1a update it 2017-07-13 13:36:16 +09:00
Sukchan Lee e9cee2b420 update it 2017-07-13 10:31:07 +09:00
Sukchan Lee a9c3e2f8ad update it 2017-07-12 23:41:43 +09:00
Sukchan Lee aea8814bdb add config library : jsmn 2017-07-12 21:25:10 +09:00
Sukchan Lee e186436098 For testing, the following command is needed for the first time
- sudo ip tuntap add name pgwtun mode tun
 - sudo ./scripts/netconfig.sh

After then,
 - ./test/testcellwire

The above regression test is executed with 10.1.35.215 ip
2017-04-18 20:21:53 +09:00
Sukchan Lee c2d5ab0d20 remove LINUX==1 macro in the pgw directory 2017-04-18 16:06:44 +09:00
Sukchan Lee 7dc8afd70c port to OSX 2017-04-18 14:16:32 +09:00
Sukchan Lee a332d46800 fix to compile other OS 2017-04-18 14:01:43 +09:00
James Park 4b9e499ea7 Add tuntap interface to PGW 2017-04-18 10:22:55 +09:00
Sukchan Lee dbcee4966f fix the pkbuf test code since core_realloc function is changed
from : if (size > (p->clbuf->size - headroom))
to : if (size >= (p->clbuf->size - headroom))
2017-04-14 21:39:07 +09:00
Sukchan Lee 12a12fb222 update it 2017-04-13 17:18:46 +09:00
Sukchan Lee 2b2b34027c update it 2017-04-13 14:46:27 +09:00
Sukchan Lee 3244b08f2a fix the bug 2017-04-11 10:40:31 +09:00
Sukchan Lee 38d9df9fd9 update it 2017-04-11 09:19:33 +09:00
Sukchan Lee e4f52d6ba6 update it 2017-04-10 23:00:06 +09:00
Sukchan Lee e4c6c8cf56 index_pool is introduced to access context memory safely 2017-04-10 22:48:07 +09:00
Sukchan Lee b6ffaf6312 update it 2017-04-10 11:29:46 +09:00
Sukchan Lee 4d749f41f5 update it 2017-04-09 23:06:59 +09:00
Sukchan Lee 8c2c204278 update it 2017-04-09 17:24:24 +09:00
Sukchan Lee 06ee730d60 update it 2017-04-06 21:17:36 +09:00
Sukchan Lee 677ffa480f update it 2017-04-06 20:44:52 +09:00
Sukchan Lee 213ca35724 update it 2017-04-06 09:57:56 +09:00
Sukchan Lee 0b458ba53f update it 2017-04-05 15:21:41 +09:00
Sukchan Lee 409812e9c2 update it 2017-04-05 15:20:43 +09:00
Sukchan Lee 56ea49ed4e add hash list library 2017-04-05 15:11:48 +09:00
Sukchan Lee 3ee227328b update it 2017-04-04 14:00:02 +09:00
Sukchan Lee 138b4d46b9 update it 2017-03-27 20:22:44 +09:00
Sukchan Lee 1ee084c58b update it 2017-03-27 19:12:45 +09:00
Sukchan Lee 5cef8ad7e0 update it 2017-03-27 11:22:03 +09:00
Sukchan Lee 5fdc359bec update it 2017-03-27 10:22:30 +09:00
Sukchan Lee 126475b83d update it 2017-03-27 02:04:33 +09:00
Sukchan Lee 0f2f802dbf update it 2017-03-27 01:50:01 +09:00
Sukchan Lee 466222cb43 GTP encoder test 2017-03-26 01:19:44 +09:00
Sukchan Lee 6146e33a51 update it 2017-03-25 12:10:08 +09:00
Sukchan Lee 18e78913b6 interface changes 2017-03-25 10:45:49 +09:00
Sukchan Lee 54a8efdca6 SGW is added 2017-03-24 18:47:05 +09:00
Sukchan Lee 84a369aa42 move event library to core 2017-03-24 15:31:35 +09:00
Sukchan Lee 7caa06110d update it 2017-03-24 14:18:30 +09:00
Sukchan Lee de64d18861 update it 2017-03-22 18:53:18 +09:00
Sukchan Lee f2c865f133 update it 2017-03-22 13:41:21 +09:00
Sukchan Lee 6cc5e486d1 update it 2017-03-22 11:33:40 +09:00
Sukchan Lee 4b6f9355fe update it 2017-03-22 07:52:47 +09:00
Sukchan Lee b489a6e50f fix the bug 2017-03-21 20:23:36 +09:00
Sukchan Lee ed0ef3bcbf update it 2017-03-19 22:47:49 +09:00
Sukchan Lee ef14471e0f GCC builtin atomic function is added 2017-03-19 21:50:43 +09:00
Sukchan Lee ed67ec6c1b atomic is added 2017-03-19 21:37:09 +09:00
Sukchan Lee 7e1b469c3d therad_join, thread_exit, thread_yeild is added 2017-03-19 20:40:37 +09:00
Sukchan Lee 631b3f8e31 refine trace message in gtpv2c build/paser 2017-03-15 23:07:31 +09:00
Sukchan Lee 0574623286 update it 2017-03-15 21:20:26 +09:00
Sukchan Lee d448a92d49 update it 2017-03-15 20:37:54 +09:00
Sukchan Lee a18612e186 update it 2017-03-15 20:14:43 +09:00
Sukchan Lee fbafeaec99 update it 2017-03-15 17:12:41 +09:00
Sukchan Lee bd851d320c change sctp parameter 2017-03-15 00:13:39 +09:00
Sukchan Lee 0c8fb5db6e update it 2017-03-13 15:21:33 +09:00
Sukchan Lee 6299883af7 fix my mistake 2017-03-13 13:14:27 +09:00
Sukchan Lee 0261f4c018 add test code for tlv_more, instance 2017-03-13 13:02:42 +09:00
Sukchan Lee aa83604ccc update it 2017-03-13 11:32:21 +09:00
Sukchan Lee d5d9566f4b update it 2017-03-12 23:25:56 +09:00
Sukchan Lee b20e29c390 update it 2017-03-12 23:20:33 +09:00
Sukchan Lee cec3dfbdbd update it 2017-03-12 23:19:08 +09:00
Sukchan Lee cc73a4ebe4 update it 2017-03-12 23:13:03 +09:00
Sukchan Lee a9b6bb2c34 udpate it 2017-03-12 23:07:17 +09:00
Sukchan Lee a14970c2e0 TLV library updated to support GTPv2-C instanec 2017-03-11 20:25:23 +09:00
Sukchan Lee 497fa49ac9 update it 2017-03-11 20:15:52 +09:00
Sukchan Lee 7e2ee9f00e update it 2017-03-11 19:43:33 +09:00
Sukchan Lee ec01895b5f update it 2017-03-11 19:20:25 +09:00
Sukchan Lee 2dcc5e985b update it 2017-03-11 18:44:05 +09:00
Sukchan Lee 922f0249d1 update it 2017-03-11 17:43:23 +09:00
Sukchan Lee 4d91be1790 update it 2017-03-11 17:36:48 +09:00
Sukchan Lee 9dae88ec0d update it 2017-03-11 17:25:06 +09:00
Sukchan Lee b998837e17 TLV library updated 2017-03-11 14:31:49 +09:00
Sukchan Lee ff3ebab8ba update it 2017-03-10 15:40:45 +09:00
Sukchan Lee d62a467057 nas security wrapper is added 2017-03-08 15:27:48 +09:00
Sukchan Lee d188863cdf improve performance for aes-ctr128 2017-03-08 12:18:47 +09:00
Sukchan Lee ae2b415c6d aes ctr128 is verified 2017-03-08 12:10:39 +09:00
Sukchan Lee c589a196f1 update it 2017-03-07 20:43:37 +09:00
Sukchan Lee 6ddd15f1bd update it 2017-03-05 23:36:17 +09:00
Sukchan Lee 235c2212ae rename it 2017-03-05 11:29:15 +09:00
Sukchan Lee f6f5a45b21 update it 2017-03-04 10:22:41 +09:00
Sukchan Lee 4882496313 auth-vector verified 2017-03-03 23:35:17 +09:00
Sukchan Lee 1159b49bda update it 2017-03-03 22:23:21 +09:00
Sukchan Lee b489fa4b46 update it 2017-03-03 22:05:05 +09:00
Sukchan Lee f6652e69a9 move plmn_id structure to 3gpp 2017-03-03 17:33:41 +09:00
Sukchan Lee 32d1d630bc update it 2017-03-02 22:47:43 +09:00
Sukchan Lee 604817869f k, op, opc, amf is added 2017-03-02 14:18:24 +09:00
Sukchan Lee 713d786f0c add test vector for security 2017-03-02 11:43:26 +09:00
Sukchan Lee 0bd56d0e49 PRNG(pseudo random number generator) is added 2017-03-01 22:49:12 +09:00
Sukchan Lee 95857bc9bc update it 2017-02-27 14:55:35 +09:00
Sukchan Lee ad44d2ab58 update it 2017-02-27 14:25:37 +09:00
Sukchan Lee f7d116ef40 signal handler updated 2017-02-26 13:09:40 +09:00
Sukchan Lee 66c9a25f67 AC_CHECK_LIB is added 2017-02-20 20:20:31 +09:00
Sukchan Lee 4da3365767 msgq empty status is checked when thread needs to be stopped 2017-02-15 09:05:34 +09:00
Sukchan Lee 4889d0162a test code is refiend 2017-02-14 22:58:02 +09:00
Sukchan Lee f653e4ad78 64 eNB connection is tested 2017-02-13 21:56:03 +09:00
Sukchan Lee 053adfacf6 malloc changes to core_malloc 2017-02-12 21:01:33 +09:00
Sukchan Lee 1691a69bae pkbuf_show bug is fixed 2017-02-12 19:31:32 +09:00
Sukchan Lee aa31d54b2f fix the memory leak bug in the unit test module(abts) 2017-02-12 19:26:11 +09:00
Sukchan Lee 084c256bbe fix memory leak in the abts unit test library 2017-02-12 19:00:06 +09:00
Sukchan Lee 8abce6113b malloc/free is changed to core_malloc/core_free 2017-02-10 22:37:32 +09:00
Sukchan Lee 3d778225d8 fix the bug 2017-02-10 16:32:26 +09:00
Sukchan Lee 9d0d988ac8 missing file 2017-02-10 16:14:37 +09:00
Sukchan Lee b50afc0e45 OS-like malloc/free function is added 2017-02-10 15:57:24 +09:00
Sukchan Lee d1cecfb589 pkbuf leak is fixed 2017-02-10 13:26:48 +09:00
Sukchan Lee 9640a8a0fe ASN test code is added initially 2017-02-03 17:00:22 +09:00
Sukchan Lee fdf97f47bb add build system using Core Library 2017-02-02 20:34:37 +09:00