aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2024-03-04 10:33:09 +0100
committerOliver Smith <osmith@sysmocom.de>2024-03-04 11:15:07 +0100
commit19a506b705c83468f5917210ae0a7736a921c9b1 (patch)
tree2d92c5c5dc1ddb2d7bf4d4919bce4ff72975fc45
parentea6c02ac1ffafaedd0f09210d5f7dbe41b6b2aad (diff)
Add clear error for kernel not supporting IPv6
Make it clear to the user, that if adding a tunnel fails with kernel GTP and IPv6: the reason is that the kernel doesn't support IPv6 yet. Related: OS#6096 Change-Id: I1d3c8cbb51212c91136292347dad9529a5c58a31
-rw-r--r--ggsn/ggsn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 0cd0feb..0603773 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -534,6 +534,8 @@ int create_context_ind(struct pdp_t *pdp)
if (apn->cfg.gtpu_mode == APN_GTPU_MODE_KERNEL_GTP) {
if (gtp_kernel_tunnel_add(pdp, apn->tun.cfg.dev_name) < 0) {
LOGPPDP(LOGL_ERROR, pdp, "Cannot add tunnel to kernel: %s\n", strerror(errno));
+ if (addrv6 && errno == EINVAL)
+ LOGPPDP(LOGL_ERROR, pdp, "Maybe your kernel does not support GTP-U with IPv6 yet?\n");
gtp_create_context_resp(gsn, pdp, GTPCAUSE_SYS_FAIL);
return 0;
}