[MERGED] osmo-ggsn[master]: apn_start(): Extend error message when setting IPv6 address ...

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Oct 1 10:23:45 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: apn_start(): Extend error message when setting IPv6 address fails
......................................................................


apn_start(): Extend error message when setting IPv6 address fails

Tell the user about possible causes of failure to set the IPv6
address of the tun device, such as general lack of IPv6 support in
the kernel/OS, or the use of /proc/sys/net/ipv6/conf/default/disable_ipv6

Change-Id: I5ff812425ee12b8386bb66521e05c93e825a4506
---
M ggsn/ggsn.c
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c
index bafcb1b..f8aec9d 100644
--- a/ggsn/ggsn.c
+++ b/ggsn/ggsn.c
@@ -186,7 +186,8 @@
 				in46p_ntoa(&apn->v6.cfg.ifconfig_prefix));
 			if (tun_setaddr(apn->tun.tun, &apn->v6.cfg.ifconfig_prefix.addr, NULL,
 					apn->v6.cfg.ifconfig_prefix.prefixlen)) {
-				LOGPAPN(LOGL_ERROR, apn, "Failed to set tun IPv6 address %s: %s\n",
+				LOGPAPN(LOGL_ERROR, apn, "Failed to set tun IPv6 address %s: %s. "
+					"Ensure you have ipv6 support and not used the disable_ipv6 sysctl?\n",
 					in46p_ntoa(&apn->v6.cfg.ifconfig_prefix), strerror(errno));
 				apn_stop(apn, false);
 				return -1;

-- 
To view, visit https://gerrit.osmocom.org/4120
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5ff812425ee12b8386bb66521e05c93e825a4506
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder


More information about the gerrit-log mailing list