Lines Matching full:inet
4 * Linux INET implementation
21 struct inet_sock *inet = inet_sk(sk); in __ip4_datagram_connect() local
39 saddr = inet->inet_saddr; in __ip4_datagram_connect()
42 oif = READ_ONCE(inet->mc_index); in __ip4_datagram_connect()
44 saddr = READ_ONCE(inet->mc_addr); in __ip4_datagram_connect()
46 oif = READ_ONCE(inet->uc_index); in __ip4_datagram_connect()
48 fl4 = &inet->cork.fl.u.ip4; in __ip4_datagram_connect()
50 sk->sk_protocol, inet->inet_sport, in __ip4_datagram_connect()
64 if (!inet->inet_saddr) in __ip4_datagram_connect()
65 inet->inet_saddr = fl4->saddr; /* Update source address */ in __ip4_datagram_connect()
66 if (!inet->inet_rcv_saddr) { in __ip4_datagram_connect()
67 inet->inet_rcv_saddr = fl4->saddr; in __ip4_datagram_connect()
71 inet->inet_daddr = fl4->daddr; in __ip4_datagram_connect()
72 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect()
76 atomic_set(&inet->inet_id, get_random_u16()); in __ip4_datagram_connect()
102 const struct inet_sock *inet = inet_sk(sk); in ip4_datagram_release_cb() local
104 __be32 daddr = inet->inet_daddr; in ip4_datagram_release_cb()
116 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb()
120 inet->inet_saddr, inet->inet_dport, in ip4_datagram_release_cb()
121 inet->inet_sport, sk->sk_protocol, in ip4_datagram_release_cb()