osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ggsn/+/36153?usp=email )
Change subject: Add clear error for kernel not supporting IPv6
......................................................................
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
---
M ggsn/ggsn.c
1 file changed, 17 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/53/36153/1
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index 0cd0feb..ff88864 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -533,7 +533,10 @@
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, "Your kernel does not support GTP-U with IPv6
yet\n");
+ else
+ LOGPPDP(LOGL_ERROR, pdp, "Cannot add tunnel to kernel: %s\n",
strerror(errno));
gtp_create_context_resp(gsn, pdp, GTPCAUSE_SYS_FAIL);
return 0;
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ggsn/+/36153?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I1d3c8cbb51212c91136292347dad9529a5c58a31
Gerrit-Change-Number: 36153
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange