Lines Matching refs:inet_sk
174 struct inet_sock *inet = inet_sk(sk); in ip_cmsg_recv_offset()
343 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control()
427 if (inet_sk(sk)->recverr_rfc4884) in ip_icmp_error()
439 struct inet_sock *inet = inet_sk(sk); in ip_local_error()
563 if (inet_sk(sk)->cmsg_flags) in ip_recv_error()
583 val |= inet_sk(sk)->tos & INET_ECN_MASK; in __ip_sock_set_tos()
585 if (inet_sk(sk)->tos != val) { in __ip_sock_set_tos()
586 inet_sk(sk)->tos = val; in __ip_sock_set_tos()
603 inet_sk(sk)->freebind = true; in ip_sock_set_freebind()
611 inet_sk(sk)->recverr = true; in ip_sock_set_recverr()
621 inet_sk(sk)->pmtudisc = val; in ip_sock_set_mtu_discover()
630 inet_sk(sk)->cmsg_flags |= IP_CMSG_PKTINFO; in ip_sock_set_pktinfo()
894 struct inet_sock *inet = inet_sk(sk); in do_ip_setsockopt()
1208 if (inet_sk(sk)->is_icsk) in do_ip_setsockopt()
1395 bool prepare = (inet_sk(sk)->cmsg_flags & IP_CMSG_PKTINFO) || in ipv4_pktinfo_prepare()
1527 struct inet_sock *inet = inet_sk(sk); in do_ip_getsockopt()