Home
last modified time | relevance | path

Searched refs:ling (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/net/mptcp/
Dsockopt.c254 struct linger ling; in mptcp_setsockopt_sol_socket_linger() local
258 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()
/linux-6.1.9/net/core/
Dsock.c1088 struct linger ling; in sk_setsockopt() local
1211 if (optlen < sizeof(ling)) { in sk_setsockopt()
1215 if (copy_from_sockptr(&ling, optval, sizeof(ling))) { in sk_setsockopt()
1219 if (!ling.l_onoff) in sk_setsockopt()
1223 if ((unsigned int)ling.l_linger >= MAX_SCHEDULE_TIMEOUT/HZ) in sk_setsockopt()
1227 sk->sk_lingertime = (unsigned int)ling.l_linger * HZ; in sk_setsockopt()
1595 struct linger ling; in sk_getsockopt() member
1677 lv = sizeof(v.ling); in sk_getsockopt()
1678 v.ling.l_onoff = sock_flag(sk, SOCK_LINGER); in sk_getsockopt()
1679 v.ling.l_linger = sk->sk_lingertime / HZ; in sk_getsockopt()