]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
addr: add address flag IFA_F_MANAGETEMPADDR
authorThomas Haller <thaller@redhat.com>
Thu, 2 Jan 2014 09:51:38 +0000 (10:51 +0100)
committerThomas Haller <thaller@redhat.com>
Fri, 3 Jan 2014 12:38:08 +0000 (13:38 +0100)
Signed-off-by: Thomas Haller <thaller@redhat.com>
include/linux/if_addr.h
lib/route/addr.c

index 63da1cdfed410dd5987502fa5b02e82dab8d9270..94b32b498a0166802e186a98b3b5f510bef88021 100644 (file)
@@ -48,6 +48,7 @@ enum {
 #define IFA_F_DEPRECATED       0x20
 #define IFA_F_TENTATIVE                0x40
 #define IFA_F_PERMANENT                0x80
+#define IFA_F_MANAGETEMPADDR   0x100
 
 struct ifa_cacheinfo {
        __u32   ifa_prefered;
index 21f415d105f6ff265433818ea0a64e8a0ae62f46..188611a0d53debc40278e343bc0155f0f3c69fe3 100644 (file)
@@ -1056,6 +1056,7 @@ static const struct trans_tbl addr_flags[] = {
        __ADD(IFA_F_DEPRECATED, deprecated)
        __ADD(IFA_F_TENTATIVE, tentative)
        __ADD(IFA_F_PERMANENT, permanent)
+       __ADD(IFA_F_MANAGETEMPADDR, mngtmpaddr)
 };
 
 char *rtnl_addr_flags2str(int flags, char *buf, size_t size)