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:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user