* tests/netlink_route.c (test_rtnl_tca): New function.
(main): Use it.

Co-authored-by: Fabien Siron <fabien.si...@epita.fr>
---
 tests/netlink_route.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tests/netlink_route.c b/tests/netlink_route.c
index 3eb96a2..b921655 100644
--- a/tests/netlink_route.c
+++ b/tests/netlink_route.c
@@ -348,6 +348,20 @@ test_rtnl_tc(const int fd)
                      printf("}"));
 }
 
+static void
+test_rtnl_tca(const int fd)
+{
+       void *const nlh0 = tail_alloc(NLMSG_HDRLEN);
+       struct tcamsg msg = {
+               .tca_family = AF_INET
+       };
+
+       TEST_NETLINK(fd, nlh0,
+                    RTM_GETACTION, NLM_F_REQUEST,
+                    sizeof(msg), &msg, sizeof(msg),
+                    printf("{tca_family=AF_INET}"));
+}
+
 int main(void)
 {
        skip_if_unavailable("/proc/self/fd/");
@@ -367,6 +381,7 @@ int main(void)
        test_rtnl_neigh(fd);
        test_rtnl_neightbl(fd);
        test_rtnl_tc(fd);
+       test_rtnl_tca(fd);
 
        printf("+++ exited with 0 +++\n");
 
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to