Commit Graph

185 Commits

Author SHA1 Message Date
Sukchan Lee a7690e395b refine it 2017-12-05 20:39:15 +09:00
Sukchan Lee c4c03da77f refine 2017-12-05 14:27:24 +09:00
Sukchan Lee fe921e0c2f refine ipv6 2017-12-05 10:50:31 +09:00
Sukchan Lee 63fb6625b3 multiple addresss is added 2017-12-05 00:16:34 +09:00
Sukchan Lee 410133bf68 core_copyaddrinfo is introduced 2017-12-04 19:45:02 +09:00
Sukchan Lee 17b6a013b8 parameter.prefer_ipv4 is implemented 2017-12-03 16:31:53 +09:00
Sukchan Lee ce5b65b4df gtp node is added 2017-12-02 14:17:32 +09:00
Sukchan Lee 4a2604b52c name changes 2017-12-02 10:50:24 +09:00
Sukchan Lee 8287db900c update it 2017-12-01 22:04:51 +09:00
Sukchan Lee 7e0ce073fb mme gtp config is added 2017-12-01 21:47:15 +09:00
Sukchan Lee b6b39c9dad socknode_filter_family is added 2017-12-01 20:27:56 +09:00
Sukchan Lee 71b58e7724 tcp/udp interface is changed 2017-12-01 17:39:28 +09:00
Sukchan Lee d874ec5b48 remove type 2017-12-01 16:30:14 +09:00
Sukchan Lee 5cebb48bc6 socknode_getifaddrs_to_list is added 2017-12-01 15:56:56 +09:00
Sukchan Lee fee05d3764 socknode is added 2017-12-01 11:34:34 +09:00
Sukchan Lee 4baf7ece46 core_getifaddrs is introduced.
IP address of all interfaces is automatically retrived.
But, some interface will be discarded.
 - unspcified IP address
 - loopback address
 - IPv6 multicast
 - IPv6 link-local
 - IPv6 site-local
2017-11-29 22:04:56 +09:00
Sukchan Lee aaa57d3008 name changes 2017-11-27 15:45:33 +09:00
Sukchan Lee 40c99a8c13 name changes done 2017-11-25 23:41:00 +09:00
Sukchan Lee 92fc35861f name changes 2017-11-25 23:28:34 +09:00
Sukchan Lee 23fa36bc23 name changes 2017-11-24 15:04:45 +00:00
Sukchan Lee 5a8d169ba1 remove AI_PASSIVE if hostname is NULL 2017-11-24 20:45:51 +09:00
Sukchan Lee 685272fce8 improve usrsctp 2017-11-23 23:01:49 +09:00
Sukchan Lee 65b7008378 fix the tun driver bugs 2017-11-23 00:42:28 +09:00
Sukchan Lee 2f49e6024d gtp's net_sock_t to sock_id. GTP-U is failed 2017-11-23 00:19:28 +09:00
Sukchan Lee cfc352ea0d remove c_sa_len 2017-11-22 22:55:28 +09:00
Sukchan Lee a27f294f74 TUN driver is added 2017-11-22 22:32:57 +09:00
Sukchan Lee 1928da0557 c_sa_len, c_sa_family, c_sa_port is introduced 2017-11-22 06:21:26 +00:00
Sukchan Lee 0fb47c499f fix the freebsd segmenation fault error 2017-11-22 01:56:51 +09:00
Sukchan Lee 5bf84f3b62 local_addr/remote_addr is added 2017-11-21 15:28:23 +09:00
Sukchan Lee 5778fb6cbc core_inet_pton is added 2017-11-19 12:56:48 +00:00
Sukchan Lee ef3bb2e368 sctp_connect is added 2017-11-19 07:21:29 +00:00
Sukchan Lee 376f7c1304 udp connect function is added for bind & connect behavior 2017-11-19 08:27:20 +09:00
Sukchan Lee f186ec93dd previous archi is failed in FreeBSD OS
re-architecture socket library
2017-11-18 12:55:44 +00:00
Sukchan Lee 113cbd0e9e minor fix 2017-11-16 13:45:49 +00:00
Sukchan Lee 6db21f54c1 c_sockaddr_t is created for supporting both IPv4 and IPv6 address. 2017-11-16 12:49:07 +00:00
Sukchan Lee a4d1bae083 SCTP library is initially added 2017-11-16 10:46:25 +00:00
Sukchan Lee 7c505f917a minor update 2017-11-16 01:51:05 +00:00
Sukchan Lee 221fd81bb2 fix the linux compile error 2017-11-15 14:38:51 +00:00
Sukchan Lee 068d049a9f IPv6 project is started.
1. Remove thread lock in select loop.
2. Nonblocking will be used in select loop for good performance.
3. Connection mode for UDP socket & SCTP(SEQPACKET)

More test is needed.
2017-11-15 22:59:30 +09:00
Sukchan Lee 12ae140185 reduant code 2017-11-10 11:23:55 +09:00
Sukchan Lee f839fd93b7 Control Plane and Data Plane Thread is merged to One thread in SGW/PGW
- for protecting context, SGW/PGW is implemented with only one thread.
- In PGW, processing control plane could be delayed +10ms when diameter
thread sends message queue to the PGW control plane.
- In other case, all performance may be same with previous architecture.
2017-11-10 00:38:05 +00:00
Sukchan Lee cd59df5011 just minor update 2017-11-09 14:56:03 +09:00
Sukchan Lee 11df912058 remove jsmn library.
jsmn library is very simple, but it is difficult to handle configuration
josn.
I changed json to libbson library. I think it is more maintainable.
2017-11-09 00:05:18 +09: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 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 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 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 5663f64cbb timer library update 2017-09-18 16:18:01 +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 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 772aefec7d initial routine re-architecture to remove memory leak and improve
stability
2017-08-04 21:29:49 +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 13175e9e41 Merge branch 'master' of https://github.com/acetcom/cellwire 2017-08-02 20:04:02 +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 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 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 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 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 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 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 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 6cc5e486d1 update it 2017-03-22 11:33:40 +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