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()
1088 struct linger ling; in sk_setsockopt() local1211 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() member1677 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()