Lines Matching refs:setsockopt
23 err = setsockopt(c, IPPROTO_TCP, TCP_ULP, "tls", strlen("tls")); in init_ktls_pairs()
27 err = setsockopt(p, IPPROTO_TCP, TCP_ULP, "tls", strlen("tls")); in init_ktls_pairs()
38 err = setsockopt(c, SOL_TLS, TLS_TX, &crypto_tx, sizeof(crypto_tx)); in init_ktls_pairs()
42 err = setsockopt(p, SOL_TLS, TLS_RX, &crypto_rx, sizeof(crypto_rx)); in init_ktls_pairs()
103 err = setsockopt(s, IPPROTO_TCP, TCP_ULP, "tls", strlen("tls")); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
113 err = setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &zero, sizeof(zero)); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
263 err = setsockopt(c, SOL_SOCKET, SO_RCVBUFFORCE, &txrx_buf, sizeof(int)); in test_sockmap_ktls_tx_no_buf()
264 err |= setsockopt(p, SOL_SOCKET, SO_SNDBUFFORCE, &txrx_buf, sizeof(int)); in test_sockmap_ktls_tx_no_buf()
470 err = setsockopt(c, IPPROTO_TCP, TCP_ULP, "tls", strlen("tls")); in test_sockmap_ktls_verdict_with_tls_rx()
479 err = setsockopt(c, SOL_TLS, TLS_TX, &crypto_info, sizeof(crypto_info)); in test_sockmap_ktls_verdict_with_tls_rx()
489 err = setsockopt(p, IPPROTO_TCP, TCP_ULP, "tls", strlen("tls")); in test_sockmap_ktls_verdict_with_tls_rx()
493 err = setsockopt(p, SOL_TLS, TLS_RX, &crypto_info, sizeof(crypto_info)); in test_sockmap_ktls_verdict_with_tls_rx()