History

ipv6 addrconf: extend ifa_flags to u32

There is no more space in u8 ifa_flags. So do what davem suffested and add another netlink attr called IFA_FLAGS for carry more flags.

Jiri Pirko committed 12 years ago

Commit 479840f1 parent e6247024 files · +27 −15Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/if_addr.h+4−0
@@ -18,6 +18,9 @@ struct ifaddrmsg { · 17 unmodified lines
1818 * It makes no difference for normally configured broadcast interfaces,
1919 * but for point-to-point IFA_ADDRESS is DESTINATION address,
2020 * local address is supplied in IFA_LOCAL attribute.
21+ *
22+ * IFA_FLAGS is a u32 attribute that extends the u8 field ifa_flags.
23+ * If present, the value from struct ifaddrmsg will be ignored.
2124 */
2225 enum {
2326 IFA_UNSPEC,
@@ -28,6 +31,7 @@ enum { · 4 unmodified lines
2831 IFA_ANYCAST,
2932 IFA_CACHEINFO,
3033 IFA_MULTICAST,
34+ IFA_FLAGS,
3135 __IFA_MAX,
3236 };
3337