aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorDonald Hunter <donald.hunter@gmail.com>2024-12-13 13:07:11 +0000
committerJakub Kicinski <kuba@kernel.org>2024-12-15 13:30:43 -0800
commit663ad7481f068057f6f692c5368c47150e855370 (patch)
tree5f51c8925e4408aef7cb5eb6d3517a991b790c03 /net/unix/sysctl_net_unix.c
parentee76746387f6233bdfa93d7406990f923641568f (diff)
downloadlinux-663ad7481f068057f6f692c5368c47150e855370.tar.gz
linux-663ad7481f068057f6f692c5368c47150e855370.tar.bz2
linux-663ad7481f068057f6f692c5368c47150e855370.zip
tools/net/ynl: fix sub-message key lookup for nested attributes
Use the correct attribute space for sub-message key lookup in nested attributes when adding attributes. This fixes rt_link where the "kind" key and "data" sub-message are nested attributes in "linkinfo". For example: ./tools/net/ynl/cli.py \ --create \ --spec Documentation/netlink/specs/rt_link.yaml \ --do newlink \ --json '{"link": 99, "linkinfo": { "kind": "vlan", "data": {"id": 4 } } }' Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Fixes: ab463c4342d1 ("tools/net/ynl: Add support for encoding sub-messages") Link: https://patch.msgid.link/20241213130711.40267-1-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions