Home
last modified time | relevance | path

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

/net/core/
Dsock.c682 struct linger ling; in sock_setsockopt() local
808 if (optlen < sizeof(ling)) { in sock_setsockopt()
812 if (copy_from_user(&ling, optval, sizeof(ling))) { in sock_setsockopt()
816 if (!ling.l_onoff) in sock_setsockopt()
820 if ((unsigned int)ling.l_linger >= MAX_SCHEDULE_TIMEOUT/HZ) in sock_setsockopt()
824 sk->sk_lingertime = (unsigned int)ling.l_linger * HZ; in sock_setsockopt()
1008 struct linger ling; in sock_getsockopt() member
1086 lv = sizeof(v.ling); in sock_getsockopt()
1087 v.ling.l_onoff = sock_flag(sk, SOCK_LINGER); in sock_getsockopt()
1088 v.ling.l_linger = sk->sk_lingertime / HZ; in sock_getsockopt()