mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-ggsn.git
synced 2025-11-01 20:53:42 +00:00
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
This commit is contained in:
@@ -534,6 +534,8 @@ int create_context_ind(struct pdp_t *pdp)
|
|||||||
if (apn->cfg.gtpu_mode == APN_GTPU_MODE_KERNEL_GTP) {
|
if (apn->cfg.gtpu_mode == APN_GTPU_MODE_KERNEL_GTP) {
|
||||||
if (gtp_kernel_tunnel_add(pdp, apn->tun.cfg.dev_name) < 0) {
|
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));
|
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);
|
gtp_create_context_resp(gsn, pdp, GTPCAUSE_SYS_FAIL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user