dhcpcd-discuss

Build dhcpcd with error ‘IFA_FLAGS’ undeclared

urv

Thu Aug 01 07:33:17 2019


Hello, Roy!

Build dhcpcd v.8.0 and newer on quite old kernel 3.10 finish with error:

if-linux.c: In function ‘if_address’:
if-linux.c:1511:38: error: ‘IFA_FLAGS’ undeclared (first use in this function)
   add_attr_32(&nlm.hdr, sizeof(nlm), IFA_FLAGS, flags);
                                      ^~~~~~~~~
if-linux.c:1511:38: note: each undeclared identifier is reported only once for each function it appears in
if-linux.c: In function ‘if_address6’:
if-linux.c:1585:38: error: ‘IFA_FLAGS’ undeclared (first use in this function)
   add_attr_32(&nlm.hdr, sizeof(nlm), IFA_FLAGS, flags);
                                      ^~~~~~~~~

Problem appear with commit "d1468fbdad0e288b23c9e5181d1de4476691ae61"
And yes, header file "linux/if_addr.h" doesn't have declaration of 'IFA_FLAGS'


---
Roman


Follow-Ups:
Re: Build dhcpcd with error ‘IFA_FLAGS’ undeclaredRoy Marples
Archive administrator: postmaster@marples.name