Commit Graph

1416 Commits

Author SHA1 Message Date
Harald Welte 4bce6df238 Add 'debian' subdirectory for building dpkg packages
Adding this 'debian' subdirectory will allow users to build
binary packages using 'dpkg-buildpackage' and related tools.

Tested so far on Debian unstable and 9 as well as Ubuntu 17.04
and 17.10 on OpenSuSE Build Service.
2017-10-18 12:27:49 +02: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 c3ffd52771 mme_enb_t context structure is changed using hash table.
I'll remove net_sock_t->app_index if poosible.
2017-10-18 14:05:22 +09:00
Harald Welte ec91b9e8da Fix directory mix-up. @prefix@ vs. @sysconfdir@ vs @libdir@ vs @localstatedir@
Installing to @prefix@/etc is wrong, this will end up in /usr/etc
on most linux distributions, where /etc (@sysconfdir@) would be correct.

The same is true for /var (@localstatedir@), we don't want log files
suddenly to be in /usr/var/log rather than /var/log

However, this is further complicated by the fact that @libdir@ is not
recursively resolved but could expand to "${prefix}/lib" which
of course makes no sense inside a config file.  So instead, let's
introduce adl_RECURSIVE_EVAL and define @LIB_DIR@ and @SYSCONF_DIR@
with recursively-expanded versions of those variables.
2017-10-17 23:43:51 +02:00
Harald Welte cd8f29aa59 Makefile.am: install_data_hook was missing $(DESTDIR)
When creating the /var/log directory, we must create it relative
to the $(DESTDIR) of the installation, and not at it's system-wide
default path without any DESTDIR.
2017-10-17 21:49:29 +02:00
Harald Welte bb74b173ca Add 'nextepc-' prefix to executables
'mmed' and the like all are a bit of a generic name. Let's prefix the
project name to ensure there will be no clashes with other programs that
also implement a 'MME daemon' or the like.
2017-10-17 21:28:29 +02: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 a020b587c1 Merge branch 'master' into r0.2 2017-10-17 16:19:20 +09:00
Sukchan Lee 0eb9ae4792 fix the compile error 2017-10-17 23:04:24 +09:00
Sukchan Lee f275617225 Merge pull request #1 from laf0rge/master
Add .gitingore file to have clean 'git status' output
2017-10-17 16:16:14 +09:00
Harald Welte 92ecad5118 Add .gitingore file to have clean 'git status' output 2017-10-17 08:12:58 +02:00
Sukchan Lee d486e84816 improve netconfig
modify GTP packet sending function interface
2017-10-17 13:53:55 +09:00
Sukchan Lee b287a3b022 fix the bug multiple tun driver 2017-10-17 13:14:10 +09:00
Sukchan Lee 83a21c5840 configuration is changed 2017-10-17 13:04:45 +09:00
Sukchan Lee b9f4dcf4ea MAC OSX is needed to enable IP fowwarding 2017-10-17 07:44:48 +09:00
Sukchan Lee a20c96bc21 fix the Makefile errata 2017-10-17 01:25:28 +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 86908cdbe9 ping src:45.45.0.2 dst:45.45.0.1 is only enabled in Linux platform
Linux Kernel reply the icmp message.
FreeBSD/MacOSX is not working.
More study is needed about TUN
2017-10-15 20:43:05 +09:00
Sukchan Lee 0f08c2a624 Ping loopback is added in Linux platform 2017-10-15 20:33:51 +09:00
Sukchan Lee 47bad3794e PGW IP assign rule is updated 2017-10-15 20:33:20 +09:00
Sukchan Lee fb566fd94c fix the compile error for high GCC version 2017-10-15 01:18:45 +09:00
Sukchan Lee 3bbbd1b5b1 fix the bug for One SGW IP assign 2017-10-15 01:07:27 +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 1f14b132c2 Merge branch 'r0.2' of https://github.com/acetcom/nextepc into r0.2 2017-10-13 21:51:50 +09:00
Sukchan Lee 3613b27ca7 MME/PGW Configuration is also changed to support One SGW IP assign
Control Plane Test Done.
Data Plan Test is Needed.
2017-10-13 21:31:49 +09:00
Sukchan Lee 4672ee559f One IP assign for SGW
Configuration is changed
Remove S11_XXXX, S1U_XXXX, S5C_XXXX, S5U_XXXX

Introduce GTPC_IPV4, GTPU_IPV4
2017-10-13 21:13:39 +09:00
Sukchan Lee 02773eff40 FreeBSD Porting done. 2017-10-13 18:12:15 +09:00
Sukchan Lee 5d6e63c20e Reduce SGW IP assign to One.
Initially, I've started to update Control Plane related to this issue.
Context Accessing is re-arraged based Thread for finding GTP Node Context.

[MME]
mme_sgw_t : SM thread(Control-Plane)

[SGW]
sgw_mme_t : Net thread(Data-Plane)
sgw_pgw_t : SM thread(Control-Plane)

[PGW]
pgw_sgw_t : Net thread(Data-Plane)
2017-10-13 14:41:55 +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
Sukchan Lee 8d343221d2 update VERSION to 0.2.0 2017-10-11 15:50:00 +09:00
Sukchan Lee 7c20ac5c64 update VERSION to 0.1.1 2017-10-11 15:46:45 +09:00
Sukchan Lee dac66d0b80 BUILT_SOURCE is missing.
fdd.tab.h is a file generated from lex & yacc. If we do not tell it to
automake, the dependency issue occurs in `make -j 8`.
2017-10-11 06:25:21 +00:00
Sukchan Lee 4245502ae2 Fix the bug under mongo c driver v1.5
I misunderstand the interface when querying with projection
when the version of Mongo C Driver is lower than 1.5.

For reference, in case of Ubuntu 16.04, Mongo C Driver v1.3.1
will be installed, so when using 'Dedicated Bearer', v0.1.1
should be used because it does not work normally.
2017-10-11 06:08:19 +00:00
Sukchan Lee 60d228a88c fix errta in README 2017-10-09 11:07:58 +09:00
Sukchan Lee d6bd86d6e7 update README 2017-10-09 11:03:15 +09:00
Sukchan Lee 2b38ff916f update it 2017-09-29 23:37:25 +09:00
Sukchan Lee 420171fc57 move INSTALL file and remove binary package 2017-09-29 23:33:01 +09:00
Sukchan Lee 2b67d325cf Update README.md 2017-09-29 23:30:24 +09:00
Sukchan Lee d40015eba9 update README.md 2017-09-29 23:28:01 +09:00
Sukchan Lee 460fafe071 update README 2017-09-29 23:25:45 +09:00
Lee Sukchan 7a28df160a fix the compile error for Ubuntu 17.04(Zesty) 2017-09-29 12:55:12 +00:00
Lee Sukchan 22ec19066b Porting Done for CentOS 2017-09-29 12:22:03 +00:00
Lee Sukchan 1cd496f158 add _DEFAULT_SOURCE for glibc >= 2.20 2017-09-29 10:12:42 +00:00
Sukchan Lee 1d13fcbb02 GLIBC >= 2.20, BSD_SOURCES is deprecated 2017-09-29 06:31:17 +00:00
Sukchan Lee ed50132064 fix the compile error for Ubuntu 17.04 2017-09-29 06:08:14 +00:00
Sukchan Lee e1948f572c update config 2017-09-29 10:57:00 +09:00