Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 520096 Details for
Bug 647818
net-misc/dhcpcd-7.0.1 fails with ipv4_addaddr: ifaddaddress: Invalid argument
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Disable IFA_F_NOPREFIXROUTE for kernels older than 4.3.0
dhcpcd-linux.diff (text/plain), 945 bytes, created by
Roy Marples
on 2018-02-19 09:20:46 UTC
(
hide
)
Description:
Disable IFA_F_NOPREFIXROUTE for kernels older than 4.3.0
Filename:
MIME Type:
Creator:
Roy Marples
Created:
2018-02-19 09:20:46 UTC
Size:
945 bytes
patch
obsolete
>diff --git a/src/if-linux.c b/src/if-linux.c >index e802366a..85c4711e 100644 >--- a/src/if-linux.c >+++ b/src/if-linux.c >@@ -40,6 +40,7 @@ > #include <linux/netlink.h> > #include <linux/sockios.h> > #include <linux/rtnetlink.h> >+#include <linux/version.h> > > #include <arpa/inet.h> > #include <net/if.h> >@@ -1455,7 +1456,7 @@ if_address(unsigned char cmd, const struct ipv4_addr *addr) > { > struct nlma nlm; > int retval = 0; >-#if defined(IFA_F_NOPREFIXROUTE) >+#if defined(IFA_F_NOPREFIXROUTE) && LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0) > uint32_t flags = 0; > #endif > >@@ -1480,7 +1481,7 @@ if_address(unsigned char cmd, const struct ipv4_addr *addr) > add_attr_l(&nlm.hdr, sizeof(nlm), IFA_BROADCAST, > &addr->brd.s_addr, sizeof(addr->brd.s_addr)); > >-#ifdef IFA_F_NOPREFIXROUTE >+#if defined(IFA_F_NOPREFIXROUTE) && LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0) > if (nlm.ifa.ifa_prefixlen < 32) > flags |= IFA_F_NOPREFIXROUTE; > if (flags)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 647818
:
520094
| 520096