[PATCH 3/7] tests: check decoding of ifaddrlblmsg netlink attributes

JingPiao Chen chenjingpiao at gmail.com
Thu Aug 31 02:39:21 UTC 2017


* tests/nlattr_ifaddrlblmsg.c (main): Check decoding of IFAL_ADDRESS.
---
 tests/nlattr_ifaddrlblmsg.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/nlattr_ifaddrlblmsg.c b/tests/nlattr_ifaddrlblmsg.c
index 66ff2a1..6003634 100644
--- a/tests/nlattr_ifaddrlblmsg.c
+++ b/tests/nlattr_ifaddrlblmsg.c
@@ -83,6 +83,11 @@ main(void)
 		     4, pattern, 4,
 		     print_quoted_hex(pattern, 4));
 
+	TEST_NLATTR(fd, nlh0, hdrlen,
+		    init_ifaddrlblmsg, print_ifaddrlblmsg,
+		    IFAL_ADDRESS, 4, pattern, 4,
+		    print_quoted_hex(pattern, 4));
+
 	puts("+++ exited with 0 +++");
 	return 0;
 }
-- 
2.7.4





More information about the Strace-devel mailing list