]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: ynl: generate code for rt-addr and add a sample
authorJakub Kicinski <kuba@kernel.org>
Thu, 10 Apr 2025 01:46:57 +0000 (18:46 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Apr 2025 03:14:41 +0000 (20:14 -0700)
commit29d34a4d785bbf389d57bfdafe2a19dad6ced3a4
treecd06fd93a2136f95d38fa044a3715b3d12ddcc39
parent882e7b1365cedae2bb956e17a65bb697cde35e84
tools: ynl: generate code for rt-addr and add a sample

YNL C can now generate code for simple classic netlink families.
Include rt-addr in the Makefile for generation and add a sample.

  $ ./tools/net/ynl/samples/rt-addr
              lo: 127.0.0.1
       wlp0s20f3: 192.168.1.101
              lo: ::
       wlp0s20f3: fe80::6385:be6:746e:8116
            vpn0: fe80::3597:d353:b5a7:66dd

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://patch.msgid.link/20250410014658.782120-13-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/Makefile.deps
tools/net/ynl/generated/Makefile
tools/net/ynl/samples/.gitignore
tools/net/ynl/samples/rt-addr.c [new file with mode: 0644]