| Summary: | Addition of an IP address to an interface (SIOCAIFADDR) fails when there is conflicting dynamic route | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Eugene Grosbein <eugen> | ||||
| Component: | kern | Assignee: | Eugene Grosbein <eugen> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | melifaro | ||||
| Priority: | --- | Keywords: | easy, patch-ready | ||||
| Version: | 11.0-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222647 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256393 |
||||||
| Attachments: |
|
||||||
|
Description
Eugene Grosbein
2017-10-20 14:10:51 UTC
Created attachment 187334 [details]
proposed fix
Proposed one-line patch fixes the problem for me. A commit references this bug: Author: eugen Date: Sun Nov 5 14:41:49 UTC 2017 New revision: 325436 URL: https://svnweb.freebsd.org/changeset/base/325436 Log: Allow a process to assign an IP address to local ppp interface even if kernel routing table already has a route to the address in question installed by some routing daemon (PR 223129). Also, allow loopback route deletion when stopping a VIMAGE jail (PR 222647). PR: 222647, 223129 Reviewed by: gnn Approved by: avg (mentor), mav (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D12747 Changes: head/sys/net/if.c A commit references this bug: Author: eugen Date: Mon Nov 20 09:23:09 UTC 2017 New revision: 326011 URL: https://svnweb.freebsd.org/changeset/base/326011 Log: MFC r325436: RTF_PINNED for an interface Allow a process to assign an IP address to local ppp interface even if kernel routing table already has a route to the address in question installed by some routing daemon (PR 223129). Also, allow loopback route deletion when stopping a VIMAGE jail (PR 222647). PR: 222647, 223129 Reviewed by: gnn Approved by: mav (mentor) Differential Revision: https://reviews.freebsd.org/D12747 Changes: _U stable/11/ stable/11/sys/net/if.c A commit references this bug: Author: eugen Date: Mon Nov 20 09:24:02 UTC 2017 New revision: 326012 URL: https://svnweb.freebsd.org/changeset/base/326012 Log: MFC r325436: RTF_PINNED for an interface Allow a process to assign an IP address to local ppp interface even if kernel routing table already has a route to the address in question installed by some routing daemon (PR 223129). Also, allow loopback route deletion when stopping a VIMAGE jail (PR 222647). PR: 222647, 223129 Reviewed by: gnn Approved by: mav (mentor) Differential Revision: https://reviews.freebsd.org/D12747 Changes: _U stable/10/ stable/10/sys/net/if.c Fixed with r325436 and MFC r326011, r326012. |