tests/netlink: Bugfix on snl_parse_errmsg_capped test
Turn off the NETLINK_EXT_ACK flag to fix bug of snl_parse_errmsg_capped. Reviewed by: pouria Pull Request: https://github.com/freebsd/freebsd-src/pull/1660
This commit is contained in:
committed by
Pouria Mousavizadeh Tehrani
parent
c562c81e31
commit
18ce9e2dd0
@@ -64,11 +64,11 @@ ATF_TC_BODY(snl_parse_errmsg_capped, tc)
|
||||
if (!snl_init(&ss, NETLINK_ROUTE))
|
||||
atf_tc_fail("snl_init() failed");
|
||||
|
||||
atf_tc_skip("does not work");
|
||||
|
||||
int optval = 1;
|
||||
ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_CAP_ACK, &optval, sizeof(optval)) == 0);
|
||||
|
||||
optval = 0;
|
||||
ATF_CHECK(setsockopt(ss.fd, SOL_NETLINK, NETLINK_EXT_ACK, &optval, sizeof(optval)) == 0);
|
||||
snl_init_writer(&ss, &nw);
|
||||
|
||||
struct nlmsghdr *hdr = snl_create_msg_request(&nw, 255);
|
||||
|
||||
Reference in New Issue
Block a user