summaryrefslogtreecommitdiff
path: root/include/linux/if_addr.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 15:39:13 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-09-19 15:44:36 -0400
commitd3d7feb597209336816814e3e0dfb2f5405ecea3 (patch)
treeb259bd08cbf736c0c988db2b1dc09470b0afd6a3 /include/linux/if_addr.h
parent16296beaa5ff0b51e1b9e88848206dcea5cd2a32 (diff)
include: update include/linux
Newer versions of the linux kernel have made their way into the wild. Update some headers. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'include/linux/if_addr.h')
-rw-r--r--include/linux/if_addr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/if_addr.h b/include/linux/if_addr.h
index a924606f36..dfcf3ce009 100644
--- a/include/linux/if_addr.h
+++ b/include/linux/if_addr.h
@@ -34,6 +34,7 @@ enum {
IFA_MULTICAST,
IFA_FLAGS,
IFA_RT_PRIORITY, /* u32, priority/metric for prefix route */
+ IFA_TARGET_NETNSID,
__IFA_MAX,
};
@@ -63,7 +64,9 @@ struct ifa_cacheinfo {
};
/* backwards compatibility for userspace */
+#ifndef __KERNEL__
#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
#define IFA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
+#endif
#endif