Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dcls_redirect.c97 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 …]
Dsk_assign.c126 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/
Dtoeplitz.c451 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/
Dresctrlfs.c594 int slen = strlen(str); in fgrep() local
599 if (strncmp(line, str, slen)) in fgrep()
/tools/testing/selftests/cgroup/
Dtest_memcontrol.c825 socklen_t slen = sizeof(saddr); in tcp_server() local
842 if (bind(sk, (struct sockaddr *)&saddr, slen)) { in tcp_server()
/tools/testing/selftests/landlock/
Dfs_test.c94 const int slen = strlen(str); in fgrep() local
99 if (strncmp(line, str, slen)) in fgrep()