Searched refs:ling (Results 1 – 2 of 2) sorted by relevance
254 struct linger ling; in mptcp_setsockopt_sol_socket_linger() local258 if (optlen < sizeof(ling)) in mptcp_setsockopt_sol_socket_linger()261 if (copy_from_sockptr(&ling, optval, sizeof(ling))) in mptcp_setsockopt_sol_socket_linger()264 kopt = KERNEL_SOCKPTR(&ling); in mptcp_setsockopt_sol_socket_linger()265 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, SO_LINGER, kopt, sizeof(ling)); in mptcp_setsockopt_sol_socket_linger()275 if (!ling.l_onoff) { in mptcp_setsockopt_sol_socket_linger()
1105 struct linger ling; in sk_setsockopt() local1228 if (optlen < sizeof(ling)) { in sk_setsockopt()1232 if (copy_from_sockptr(&ling, optval, sizeof(ling))) { in sk_setsockopt()1236 if (!ling.l_onoff) { in sk_setsockopt()1239 unsigned long t_sec = ling.l_linger; in sk_setsockopt()1614 struct linger ling; in sk_getsockopt() member1696 lv = sizeof(v.ling); in sk_getsockopt()1697 v.ling.l_onoff = sock_flag(sk, SOCK_LINGER); in sk_getsockopt()1698 v.ling.l_linger = READ_ONCE(sk->sk_lingertime) / HZ; in sk_getsockopt()