Searched refs:slen (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | cls_redirect.c | 97 socklen_t slen = sizeof(ss); in set_up_conn() local 104 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn() 107 *conn = connect_to_server(sa, slen, type); in set_up_conn() 114 slen = sizeof(ss); in set_up_conn() 115 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn() 121 slen = sizeof(ss); in set_up_conn() 122 if (CHECK_FAIL(getpeername(*conn, sa, &slen))) in set_up_conn() 374 socklen_t slen; in test_cls_redirect_common() local 382 slen = prepare_addr(&ss, families[i]); in test_cls_redirect_common() 383 if (CHECK_FAIL(!slen)) in test_cls_redirect_common() [all …]
|
D | sk_assign.c | 126 socklen_t slen = sizeof(ss); in get_port() local 129 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
|
/tools/testing/selftests/net/ |
D | toeplitz.c | 451 static void parse_toeplitz_key(const char *str, int slen, unsigned char *key) in parse_toeplitz_key() argument 455 if (slen < TOEPLITZ_STR_MIN_LEN || in parse_toeplitz_key() 456 slen > TOEPLITZ_STR_MAX_LEN + 1) in parse_toeplitz_key() 459 for (i = 0, off = 0; off < slen; i++, off += 3) { in parse_toeplitz_key() 463 i, off, slen); in parse_toeplitz_key()
|
/tools/testing/selftests/resctrl/ |
D | resctrlfs.c | 594 int slen = strlen(str); in fgrep() local 599 if (strncmp(line, str, slen)) in fgrep()
|
/tools/testing/selftests/cgroup/ |
D | test_memcontrol.c | 825 socklen_t slen = sizeof(saddr); in tcp_server() local 842 if (bind(sk, (struct sockaddr *)&saddr, slen)) { in tcp_server()
|
/tools/testing/selftests/landlock/ |
D | fs_test.c | 94 const int slen = strlen(str); in fgrep() local 99 if (strncmp(line, str, slen)) in fgrep()
|