From owner-freebsd-net@freebsd.org Thu Feb 8 13:35:11 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B30C2F04483 for ; Thu, 8 Feb 2018 13:35:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5030E68658 for ; Thu, 8 Feb 2018 13:35:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9B3747921 for ; Thu, 8 Feb 2018 13:35:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w18DZAG5008789 for ; Thu, 8 Feb 2018 13:35:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w18DZAPA008787 for freebsd-net@FreeBSD.org; Thu, 8 Feb 2018 13:35:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 218517] ppp fails adding route with error Value too large to be stored in data type Date: Thu, 08 Feb 2018 13:35:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emikulic@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Feb 2018 13:35:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218517 --- Comment #16 from emikulic@gmail.com --- (In reply to Eugene Grosbein from comment #15) --- a/usr.sbin/ppp/id.c +++ b/usr.sbin/ppp/id.c @@ -50,6 +50,7 @@ #include #endif #include +#include #include "log.h" #include "main.h" @@ -93,10 +94,14 @@ int ID0ioctl(int fd, unsigned long req, void *arg) { int ret; + int saved_errno; ID0set0(); ret =3D ioctl(fd, req, arg); + saved_errno =3D errno; log_Printf(LogID0, "%d =3D ioctl(%d, %lu, %p)\n", ret, fd, req, arg); + log_Printf(LogID0, "bug 218517: errno =3D %d (%s)\n", saved_errno, + strerror(saved_errno)); ID0setuser(); return ret; } Resulting in: ppp[4390]: tun0: IPV6CP: deflink: LayerUp. ppp[4390]: tun0: ID0: 2 =3D socket(28, 2, 0) ppp[4390]: tun0: ID0: -1 =3D ioctl(2, 2156423451, 0x7fffffffd790) ppp[4390]: tun0: ID0: bug 218517: errno =3D 17 (File exists) ppp[4390]: tun0: Warning: iface add: ioctl(SIOCAIFADDR_IN6, fe80::a9df:fac8:17ee:204d -> fe80::5aac:78ff:fe22:8f00): Value too large to= be stored in data type ppp[4390]: tun0: Error: ipv6cp_InterfaceUp: unable to set ipv6 address ppp[4390]: tun0: IPV6CP: deflink: LayerDown: fe80::a9df:fac8:17ee:204d errno must be getting clobbered somewhere between ioctl() and the "iface ad= d" log line. --=20 You are receiving this mail because: You are the assignee for the bug.=