Author: Dharanendiran <dharanendiran@timesys.com>
Date: Wed, 13 Nov 2019 12:03:08 +0530

To support older kernels from 2.6.31.

Error Log:
networking/libiproute/ipaddress.c: In function 'print_addrinfo':
networking/libiproute/ipaddress.c:333:23: error: 'IFA_F_DADFAILED' undeclared (first use in this function)
---
 networking/libiproute/ipaddress.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 7b7e015..e2fc0b4 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -21,6 +21,10 @@
 #define IFF_LOWER_UP  0x10000  /* driver signals L1 up */
 #endif
 
+#ifndef IFA_F_DADFAILED
+#define IFA_F_DADFAILED		0x08
+#endif
+
 struct filter_t {
 	char *label;
 	/* Flush cmd buf. If !NULL, print_addrinfo() constructs flush commands in it */
-- 
1.9.1

