This patchset adds support to ynl for handling byte-order in struct members. The first patch is a refactor to use predefined Struct() objects instead of generating byte-order specific formats on the fly. The second patch adds byte-order handling for struct members. Donald Hunter (2): tools: ynl: Use dict of predefined Structs to decode scalar types tools: ynl: Handle byte-order in struct members Documentation/netlink/genetlink-legacy.yaml | 2 + tools/net/ynl/lib/nlspec.py | 4 +- tools/net/ynl/lib/ynl.py | 107 +++++++++----------- 3 files changed, 53 insertions(+), 60 deletions(-) -- 2.39.0