mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
nlmanager: nlpacket: vxlan dstport config incorrect
Ticket: CM-11735 Reviewed By: Roopa, Daniel Testing Done: creating a vxlan with ifupdown then checking the dstport with ip -d link show $vlxanName When creating a vxlan nlmanager didn't re-order/byte swap the dstport value to little endian 46354 instead of 4789 Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@ -800,7 +800,10 @@ class AttributeIFLA_LINKINFO(Attribute):
|
||||
sub_attr_payload.append(info_data_type)
|
||||
|
||||
sub_attr_pack_layout.append('H')
|
||||
sub_attr_payload.append(info_data_value)
|
||||
|
||||
# byte swap
|
||||
swaped = pack(">H", info_data_value)
|
||||
sub_attr_payload.append(unpack("<H", swaped)[0])
|
||||
|
||||
sub_attr_pack_layout.extend('xx')
|
||||
|
||||
|
Reference in New Issue
Block a user