test_fail
goto test_fail;
goto test_fail;
goto test_fail;
test_fail:
u32 test_fail :1;
const struct test_fail test[] __initconst
const struct test_fail *t = &test[i]; \
return test_fail("Check '" #x "' failed\n"); \
test_fail("Failed to allocate memory");
return test_fail("'" #x "' not expected value\n"); \
return test_fail("resolve_ip() failed");
return test_fail("resolve_addr() failed");
return test_fail("resolve_ip() failed");
return test_fail("resolve_address() failed");
return test_fail("Check '" #x "' failed\n"); \
test_fail("Failed to allocate memory");
return test_fail("'" #x "' not expected value\n"); \
return test_fail("resolve_ip() failed");
return test_fail("resolve_addr() failed");
return test_fail("resolve_ip() failed");
return test_fail("resolve_address() failed");
void test_fail(void);
test_fail(); \
test_fail(); \
test_fail(); \
test_fail(); \
test_fail();
test_fail();
test_fail("%s: connected", tst_name);
test_fail("%s: timed out for accept()", tst_name);
test_fail("%s: key was rejected", tst_name);
test_fail("%s: ready to accept", tst_name);
test_fail("%s: accepted", tst_name);
test_fail("%s: %s counter did not increase: %" PRIu64 " <= %" PRIu64,
test_fail("server served: %zd", bytes);
test_fail("verify failed");
test_fail("TCPAOGood counter mismatch: %zu > (%" PRIu64 " - %" PRIu64 ")",
test_fail("client: connection is broken");
test_fail("client disconnected");
# define test_icmps_ok test_fail
# define test_icmps_fail test_fail
test_fail("%s counter didn't change: %" PRIu64 " >= %" PRIu64,
test_fail("Not found %s counter", tcpao_icmps);
test_fail("client: connection is broken");
test_fail("client disconnected");
# define test_icmps_ok test_fail
# define test_icmps_fail test_fail
test_fail("%s counter didn't change: %" PRIu64 " >= %" PRIu64,
test_fail("Not found %s counter", tcpao_icmps);
test_fail("verify failed");
test_fail("verify failed");
test_fail("verify failed");
test_fail("%s: the key was deleted %u:%u %d", tst_name,
test_fail("%s: can't delete the key %u:%u %d", tst_name, sndid, rcvid, err);
test_fail("%s", tst_name);
test_fail("listen socket, getsockopt(TCP_AO_REPAIR) works");
test_fail("listen socket, setsockopt(TCP_AO_REPAIR) works");
test_fail("listen socket, set current key");
test_fail("listen socket, set rnext key");
test_fail("%s: the socket doesn't have current key", tst);
test_fail("%s: current key is not the expected one %d != %u",
test_fail("%s: the socket doesn't have rnext key", tst);
test_fail("%s: rnext key is not the expected one %d != %u",
test_fail("%s: key %u:%u %s%s on the socket",
test_fail("%s: key %u:%u cmac(aes) has unexpected alg %s",
test_fail("%s: key %u:%u has unexpected alg %s != %s",
test_fail("%s: key %u:%u cmac(aes128) has unexpected len %u",
test_fail("%s: key %u:%u changed password len %u != %u",
test_fail("%s: key %u:%u has different password",
test_fail("%s: key %u:%u changed maclen %u != %u",
test_fail("%s: server served: %zd", tst_name, bytes);
test_fail("%s: server served: %zd", tst_name, bytes);
test_fail("verify failed");
test_fail("Added a key with non-matching ip-address for established sk");
test_fail("Added a key with non-matching VRF for established sk");
test_fail("Some trace events were expected, but didn't occur");
test_fail("tracer errored by %s", strerror(tracer->error));
test_fail("getsockopt(): " __stringify(member) " %u != %u", \
test_fail("getsockopt(): expected default maclen 12, but it's %u",
test_fail("getsockopt(): expected keylen 16 for cmac(aes128), but it's %u",
test_fail("getsockopt(): returned key is different `%s' != `%s'",
test_fail("getsockopt(): returned address is different");
test_fail("getsockopt(): returned algorithm %s is different than %s", b->alg_name, a->alg_name);
test_fail("getsockopt(): returned algorithm %s is different than cmac(aes)", b->alg_name);
test_fail("getsockopt(): returned key is not Current_key");
test_fail("getsockopt(): returned key is not RNext_key");
test_fail("getsockopt(): returned ao doesn't have ao_required");
test_fail("getsockopt(): returned ao doesn't accept ICMPs");
test_fail("getsockopt(): RNext KeyID has changed");
test_fail("getsockopt(): " __stringify(member) " %llu != %llu", \
test_fail("%s: Decreased counter " __stringify(cnt) " %" PRIu64 " > %" PRIu64, \
test_fail("%s: Counter " __stringify(cnt) " was %sexpected to increase %" PRIu64 " => %" PRIu64, \
test_fail("%s: Decreased counter " __stringify(cnt) " %" PRIu64 " > %" PRIu64 " for key %u:%u", \
test_fail("%s: Counter " __stringify(cnt) " was %sexpected to increase %" PRIu64 " => %" PRIu64 " for key %u:%u", \
test_fail("%s: Keys changed on the socket %zu != %zu",
test_fail("received message differs");
test_fail("pre-migrate verify failed");
test_fail("%s: post-migrate connection is working", tst_name);
test_fail("%s: post-migrate connection is working", tst_name);
test_fail("%s: %s counter did not increase: %" PRIu64 " <= %" PRIu64,
test_fail("%s: server served: %zd", tst_name, bytes);
test_fail("%s: server served: %zd", tst_name, bytes);
test_fail("%s: server served: %zd", tst_name, bytes);
test_fail("%s(server): %s counter did not increase: %" PRIu64 " <= %" PRIu64,
test_fail("MKT counters (server) have not only good packets");
test_fail("server served: %zd", bytes);
test_fail("server returned %zd", bytes);
test_fail("Failed to send data on connected socket");
test_fail("sk[%d] = %d, err = %d, connection wasn't reset",
test_fail("Failed to send data on connected socket");
test_fail("client sock was not reset post-seq-adjust: %d", err);
test_fail("client sock is yet connected post-seq-adjust");
test_fail("Segments without AO sign (%s): %" PRIu64 " => %" PRIu64,
test_fail("Signed AO segments (%s): %" PRIu64 " => %" PRIu64,
test_fail("Segments with bad AO sign (%s): %" PRIu64 " => %" PRIu64,
test_fail("%s: tcp connection verify failed", tst);
test_fail("%s: TCPAOGood counter mismatch: %" PRIu64 " <= %" PRIu64,
test_fail("%s: tcp connection verify failed", tst);
test_fail("%s: TCPAOGood counter mismatch: %" PRIu64 " <= %" PRIu64,
test_fail("server served: %zd", bytes);
test_fail("server returned: %zd", bytes);
test_fail("TCPAOGood counter did not increase: %" PRIu64 " <= %" PRIu64,
test_fail("TCPAOBad counter is non-zero: %" PRIu64, after_bad);
test_fail("SEQ extension was not incremented: %u/%u",
test_fail("pre-migrate verify failed");
test_fail("post-migrate verify failed");
test_fail("TCPAOGood counter did not increase: %" PRIu64 " <= %" PRIu64,
test_fail("TCPAOBad counter is non-zero: %" PRIu64, after_bad);
test_fail("server served: %zd", bytes);
test_fail("server returned: %zd", bytes);
test_fail("optmem limit test failed: added %zu key", i);
test_fail("optmem limit test failed: couldn't add %zu key", i);
test_fail("%s: getsockopt(): " __stringify(member) " %" PRIu64 " != %" PRIu64, \
test_fail("%s%s: %setsockopt() failed",
test_fail("%s%s: %setsockopt() was expected to fail with %d",
test_fail("wrong nr of keys, expected %u got %u", nexpected,
test_fail("got wrong keys back");
test_fail("%s%s: get keys returned wrong tcp_ao_getsockopt size",
test_fail("filter keys: wrong nkeys, expected %u got %u",
test_fail("%s: %s counter did not increase: %" PRIu64 " <= %" PRIu64,
test_fail("%s: connected", tst_name);
test_fail("%s: setsockopt()s were expected to fail", tst_name);
test_fail("%s: post setsockopt() was expected to fail", tst_name);
test_fail("%s: post setsockopt() was expected to fail", tst_name);
test_fail("%s: timed out for accept()", tst_name);
test_fail("%s: key was rejected", tst_name);
test_fail("%s: ready to accept", tst_name);
test_fail("%s: accepted", tst_name);