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
This commit is contained in:
parent
ed08eb1c5a
commit
ed1ba2c902
|
@ -186,7 +186,8 @@ int apn_start(struct apn_ctx *apn)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue