From owner-freebsd-bugs@freebsd.org Fri Oct 20 14:10:51 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E9C6E36805 for ; Fri, 20 Oct 2017 14:10:51 +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 mx1.freebsd.org (Postfix) with ESMTPS id 825AF77B38 for ; Fri, 20 Oct 2017 14:10:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9KEApRd013590 for ; Fri, 20 Oct 2017 14:10:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 223129] Addition of an IP address to an interface (SIOCAIFADDR) fails when there is conflicting dynamic route Date: Fri, 20 Oct 2017 14:10:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 14:10:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223129 Bug ID: 223129 Summary: Addition of an IP address to an interface (SIOCAIFADDR) fails when there is conflicting dynamic route Product: Base System Version: 11.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: eugen@freebsd.org Hi! I have a router that nearly simultaneously creates two netgraph-based PPP V= PN tunnels (ng_iface ngX) to the same remote router and establishes OSPF neighbourship over each tunnel to announce and receive some prefixes. It repeatedly falls to the same problem. Here is a scenario: 1. First PPP tunnel is created by first router and addresses are assigned: 192.168.71.9 for itself and 192.168.71.10 for second router. Addresses then accepted and successfully assigned by second router. 2. Second PPP tunnel is created and again, first router assignes addresses 192.168.71.13 for itself and 192.168.71.14 for part of the tunnel. First ro= uter announces 192.168.71.14/32 using OSPF over first tunnel and second router's ospfd process installs this route to the kernel using 192.168.71.9 as gatew= ay: got message of size 184 on Fri Oct 20 14:54:15 2017 RTM_ADD: Add Route: len 184, pid: 90850, seq 44, errno 0, flags: locks: inits:=20 sockaddrs: 192.168.71.14 192.168.71.9 3. Second router'd PPP daemon attempts to assign negotiated addresses 192.168.71.14 and 192.168.71.13 to the second ng_iface being configured with ioctl(SIOCAIFADDR): got message of size 164 on Fri Oct 20 16:04:59 2017 RTM_NEWADDR: address being added to iface: len 164, metric 0, flags: sockaddrs: ng2 192.168.71.14 192.168.71.13 got message of size 224 on Fri Oct 20 16:04:59 2017 RTM_ADD: Add Route: len 224, pid: 0, seq 0, errno 0, flags: locks: inits:=20 sockaddrs: 192.168.71.13 link#9 But kernel returns an error EEXIST (17) and writes to the log: kernel: ifa_maintain_loopback_route: insertion failed for interface ng2: 17 The kernel should allow PPP daemon (net/mpd5 in this case) to override dyna= mic route with PINNED address assignment. --=20 You are receiving this mail because: You are the assignee for the bug.=