1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

nlpacket: change IFA_FLAGS to a FourByte attribute

AttributeGeneric cannot be used unless having it's length defined.

This change allow address flags such as optimistic, nodad or others
to be set with the add_attribute packet method.
This commit is contained in:
Adrien Banlin
2022-03-25 12:18:20 +01:00
parent ad1c11eeb7
commit 57e246438d

View File

@ -3816,7 +3816,7 @@ class Address(NetlinkPacket):
IFA_ANYCAST : ('IFA_ANYCAST', AttributeIPAddress),
IFA_CACHEINFO : ('IFA_CACHEINFO', AttributeCACHEINFO),
IFA_MULTICAST : ('IFA_MULTICAST', AttributeIPAddress),
IFA_FLAGS : ('IFA_FLAGS', AttributeGeneric),
IFA_FLAGS : ('IFA_FLAGS', AttributeFourByteValue),
IFA_RT_PRIORITY : ('IFA_RT_PRIORITY', AttributeFourByteValue)
}