osmo-ggsn/ggsn
Oliver Smith 02a82c3c9b apn_start: avoid segfault if missing tun-device
Check if tun-device is defined and give the user a hint that it is
missing instead of segfaulting with gtpu-mode kernel-gtp:
  20210205141701206 DGGSN <0002> ggsn.c:186 APN(internet): Starting
  20210205141701206 DGGSN <0002> ggsn.c:204 APN(internet): Opening Kernel GTP device (null)
  Segmentation fault

With gtpu-mode tun it didn't segfault, but still tried to open the NULL
device:
  20210205141557598 DGGSN <0002> ggsn.c:186 APN(internet): Starting
  20210205141557599 DGGSN <0002> ggsn.c:189 APN(internet): Opening TUN device (null)
  20210205141557599 DTUN <0001> tun.c:195 errno=1/Operation not permitted ioctl() failed

Related: OS#3208
Change-Id: I9f71af65cc0eed71728c04b774e5c08352947913
2021-02-05 16:37:02 +01:00
..
Makefile.am Move icmpv6 and checksum files from ggsn/ dir to lib/ 2020-04-14 13:18:21 +00:00
ggsn.c Use OSMO_FD_* instead of deprecated BSC_FD_* 2020-10-18 22:38:20 +02:00
ggsn.h ggsn, sgsnemu: Drop use of no-op deprecated gtp_retrans* APIs 2019-09-05 09:59:52 +00:00
ggsn_main.c ggsn: generate coredump and exit upon SIGABRT received 2020-11-25 18:49:16 +01:00
ggsn_vty.c apn_start: avoid segfault if missing tun-device 2021-02-05 16:37:02 +01:00
pco.c Move pdp_get_peer_ipv() to lib/util.* 2019-08-28 11:14:57 +02:00
pco.h ggsn: Move PCO handling code into its own file 2019-08-28 11:13:46 +02:00
sgsn.c ggsn: Implement echo req/resp and recovery 2019-08-28 11:34:11 +02:00
sgsn.h ggsn: Implement echo req/resp and recovery 2019-08-28 11:34:11 +02:00