Commit Graph

16 Commits

Author SHA1 Message Date
Harald Welte f9bb1777c7 dameon: Handle multiple coalesced SIGCHLD
It turns out signalfd is much less useful than one would assume:
https://ldpreload.com/blog/signalfd-is-useless

Change-Id: I16bc5b7de72843c2ae18b982bfd967a7105313e4
2020-04-21 22:46:34 +02:00
Harald Welte 8e2ad14487 debian/control: Add dependency to libsctp-dev
[  337s] main.c:33:10: fatal error: netinet/sctp.h: No such file or directory
[  337s]  #include <netinet/sctp.h>
[  337s]           ^~~~~~~~~~~~~~~~

Change-Id: Iaec1c688ac136bd146dbc9527804c238245cac47
2020-04-20 16:59:56 +02:00
Harald Welte 2eb161dad4 debian: add dependency to autoconf-archive
configure: 8901: error: Please install autoconf-archive; re-run 'autoreconf -fi' for it to take effect.
Change-Id: I7a7c4680678cc68b0b81f71af7687386a09afdb5
2020-04-20 16:41:40 +02:00
Harald Welte 75a7a5c010 debian packaging
Change-Id: Ib86883b99a4650e984146b0d036d0c14dbec3d14
2020-04-20 13:21:12 +02:00
Harald Welte 681f119da5 migrate to autotools
Change-Id: Icb1a0a2e39f291ceac5c868d76445799d0ce31f1
2020-04-20 13:21:12 +02:00
Harald Welte f23abd74cf work around bogus compiler warnings
Change-Id: I9170e4de857c1f3e003a480b12dd16fe796ec763
2020-04-20 13:21:12 +02:00
Harald Welte f2be0995f5 daemon: Work around old libnl3 failing to include linux/netlink.h
In file included from /usr/include/libnl3/netlink/socket.h:16:0,
                 from netdev.c:19:
/usr/include/libnl3/netlink/handlers.h:51:15: warning: ‘struct nlmsgerr’
declared inside parameter list will not be visible outside of this
definition or declaration
        struct nlmsgerr *nlerr, void *arg);

Change-Id: Ia2d1b0d5ccf427895feb80298d9b5c3aef1c6c9d
2020-04-20 13:21:12 +02:00
Harald Welte 27dc4c4772 daemon: rename default config file to osmo-uecups-daemon.cfg
Change-Id: Icd1e5f2d62fa46029cfe55878a84166ef76a4e91
2020-04-20 13:21:12 +02:00
Harald Welte a932e4e1ec daemon: set msgb talloc context
Change-Id: Id16952e7c65a1691bbfed8bbfc4f597ae13b10a0
2020-04-20 13:21:12 +02:00
Harald Welte 933dec7d68 Add support for SIGUSR1 talloc report + SIGHUP logfile re-open
Change-Id: I8bfce39443fd29b6acab9a88c9fa5da54c46e824
2020-04-18 21:43:24 +02:00
Harald Welte 0174469247 Add support for UeCUPS_ResetAllState
This allows the controlling entity (testsuite) to reset all
state in the daemon.

Change-Id: I18c952b3874324a9efafb26b5f2c64f8396ff36a
2020-04-18 21:15:34 +02:00
Harald Welte 24557a76b7 add "start_program" support
This allows the controlling instance (ttcn3 test case) to start
a process (shell command) within the namespace of a given tunnel
/ tun device.

The controlling instance is informed of the success/failure
of starting the process, as well as the exit code at time of
termination.

Change-Id: I94db625de9f5968e53bf67ce2f941673d9a15fbc
Depends: libosmocore.git If1431f930f72a8d6c1d102426874a11b7a2debd9
Depends: libosmocore.git If8d89dd1f6989e1cd9b9367fad954d65f91ada30
2020-04-18 21:15:29 +02:00
Harald Welte 432a130e39 move VTY and SCTP UECUPS sockets to port 4268
This is the port number listed on http://osmocom.org/projects/cellular-infrastructure/wiki/Port_Numbers

Change-Id: Ifd8a9418184147e1bb3d74192167207c981453de
2020-04-17 15:08:06 +02:00
Harald Welte 7dadaa921f jenkins.sh: Fix PKG_CONFIG_DIR
Change-Id: Ie2391ca00e588ddc9b7920dbf28ac69ddd7173e0
2020-04-17 15:08:06 +02:00
Harald Welte f9e9a7022e add jenkins.sh
Change-Id: I5de3a4ee209ae78346aaa4ce5734b5ef213e5c07
2020-04-15 22:07:48 +02:00
Harald Welte f7365595ac initial check-in of the UECUPS daemon and the related TTCN3 code
Change-Id: I5acf7059722b58e6f57dbf31e18abcc385533970
2020-04-15 22:01:52 +02:00