|
|
4c8f2e |
From 899914790776c71e0436fe39db1f5e28e6709a98 Mon Sep 17 00:00:00 2001
|
|
|
4c8f2e |
From: Thomas Haller <thaller@redhat.com>
|
|
|
4c8f2e |
Date: Wed, 8 Jan 2014 01:44:58 +0100
|
|
|
4c8f2e |
Subject: [PATCH 3/3] addr: add address flag IFA_F_NOPREFIXROUTE
|
|
|
4c8f2e |
|
|
|
4c8f2e |
(cherry picked from commit b203c89d862a6ae3e82122fe1b6882b427d53551)
|
|
|
4c8f2e |
|
|
|
4c8f2e |
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
4c8f2e |
---
|
|
|
4c8f2e |
include/linux/if_addr.h | 1 +
|
|
|
4c8f2e |
lib/route/addr.c | 1 +
|
|
|
4c8f2e |
2 files changed, 2 insertions(+)
|
|
|
4c8f2e |
|
|
|
4c8f2e |
diff --git a/include/linux/if_addr.h b/include/linux/if_addr.h
|
|
|
4c8f2e |
index 94b32b4..7d4de85 100644
|
|
|
4c8f2e |
--- a/include/linux/if_addr.h
|
|
|
4c8f2e |
+++ b/include/linux/if_addr.h
|
|
|
4c8f2e |
@@ -49,6 +49,7 @@ enum {
|
|
|
4c8f2e |
#define IFA_F_TENTATIVE 0x40
|
|
|
4c8f2e |
#define IFA_F_PERMANENT 0x80
|
|
|
4c8f2e |
#define IFA_F_MANAGETEMPADDR 0x100
|
|
|
4c8f2e |
+#define IFA_F_NOPREFIXROUTE 0x200
|
|
|
4c8f2e |
|
|
|
4c8f2e |
struct ifa_cacheinfo {
|
|
|
4c8f2e |
__u32 ifa_prefered;
|
|
|
4c8f2e |
diff --git a/lib/route/addr.c b/lib/route/addr.c
|
|
|
4c8f2e |
index c3c59ce..e98d73a 100644
|
|
|
4c8f2e |
--- a/lib/route/addr.c
|
|
|
4c8f2e |
+++ b/lib/route/addr.c
|
|
|
4c8f2e |
@@ -1024,6 +1024,7 @@ static const struct trans_tbl addr_flags[] = {
|
|
|
4c8f2e |
__ADD(IFA_F_TENTATIVE, tentative)
|
|
|
4c8f2e |
__ADD(IFA_F_PERMANENT, permanent)
|
|
|
4c8f2e |
__ADD(IFA_F_MANAGETEMPADDR, mngtmpaddr)
|
|
|
4c8f2e |
+ __ADD(IFA_F_NOPREFIXROUTE, noprefixroute)
|
|
|
4c8f2e |
};
|
|
|
4c8f2e |
|
|
|
4c8f2e |
char *rtnl_addr_flags2str(int flags, char *buf, size_t size)
|
|
|
4c8f2e |
--
|
|
|
4c8f2e |
1.8.3.1
|
|
|
4c8f2e |
|