Skip to content

Commit 996f617

Browse files
committed
[tests] Add full kernel-roundtrip test-suite for rtnl_nh
We want to test whether rtnl_nh_add generates the right netlink messages and whether querying the kernel is able to properly parse the netlink messages. Thus, do a kernel-roundtrip. Signed-off-by: Christoph Paasch <[email protected]>
1 parent 6d4859c commit 996f617

File tree

2 files changed

+390
-2
lines changed

2 files changed

+390
-2
lines changed

include/nl-aux-route/nl-route.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ void rtnl_link_put(struct rtnl_link *);
1313
_NL_AUTO_DEFINE_FCN_TYPED0(struct rtnl_link *, _nl_auto_rtnl_link_fcn,
1414
rtnl_link_put);
1515

16+
struct rtnl_addr;
17+
void rtnl_addr_put(struct rtnl_addr *);
18+
#define _nl_auto_rtnl_addr _nl_auto(_nl_auto_rtnl_addr_fcn)
19+
_NL_AUTO_DEFINE_FCN_TYPED0(struct rtnl_addr *, _nl_auto_rtnl_addr_fcn,
20+
rtnl_addr_put);
21+
1622
struct rtnl_route;
1723
void rtnl_route_put(struct rtnl_route *);
1824
#define _nl_auto_rtnl_route _nl_auto(_nl_auto_rtnl_route_fcn)

0 commit comments

Comments
 (0)