From 22c8af6991eab12a87fec4f06559e1d7ea3826f1 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 14 Dec 2012 12:42:48 +0100 Subject: api: add CTA_LABEL_MASK attribute handling allows to set/clear only a subset of the in-kernel label set, e.g. "set bit 1 and do not change any others". Signed-off-by: Florian Westphal --- qa/test_api.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'qa/test_api.c') diff --git a/qa/test_api.c b/qa/test_api.c index 399afdc..499d01f 100644 --- a/qa/test_api.c +++ b/qa/test_api.c @@ -91,7 +91,7 @@ int main(void) char data[256]; const char *val; int status; - struct nfct_bitmask *b; + struct nfct_bitmask *b, *b2; srand(time(NULL)); @@ -121,14 +121,23 @@ int main(void) eval_sigterm(status); } + b = nfct_bitmask_new(rand() & 0xffff); + assert(b); + b2 = nfct_bitmask_new(rand() & 0xffff); + assert(b2); + for (i=0; i