Lines Matching full:inet
38 #include <linux/inet.h>
123 struct inet_sock *inet; in inet6_create() local
206 inet = inet_sk(sk); in inet6_create()
210 inet->inet_num = protocol; in inet6_create()
235 inet->uc_ttl = -1; in inet6_create()
238 inet->mc_ttl = 1; in inet6_create()
239 inet->mc_index = 0; in inet6_create()
240 RCU_INIT_POINTER(inet->mc_list, NULL); in inet6_create()
241 inet->rcv_tos = 0; in inet6_create()
244 inet->pmtudisc = IP_PMTUDISC_DONT; in inet6_create()
246 inet->pmtudisc = IP_PMTUDISC_WANT; in inet6_create()
248 if (inet->inet_num) { in inet6_create()
253 inet->inet_sport = htons(inet->inet_num); in inet6_create()
286 struct inet_sock *inet = inet_sk(sk); in __inet6_bind() local
312 if (sk->sk_state != TCP_CLOSE || inet->inet_num) { in __inet6_bind()
344 if (!inet_addr_valid_or_nonlocal(net, inet, v4addr, in __inet6_bind()
383 if (!ipv6_can_nonlocal_bind(net, inet) && in __inet6_bind()
394 inet->inet_rcv_saddr = v4addr; in __inet6_bind()
395 inet->inet_saddr = v4addr; in __inet6_bind()
431 inet->inet_sport = htons(inet->inet_num); in __inet6_bind()
432 inet->inet_dport = 0; in __inet6_bind()
433 inet->inet_daddr = 0; in __inet6_bind()
529 struct inet_sock *inet = inet_sk(sk); in inet6_getname() local
537 if (!inet->inet_dport || in inet6_getname()
543 sin->sin6_port = inet->inet_dport; in inet6_getname()
554 sin->sin6_port = inet->inet_sport; in inet6_getname()
833 struct inet_sock *inet = inet_sk(sk); in inet6_sk_rebuild_header() local
844 fl6.fl6_dport = inet->inet_dport; in inet6_sk_rebuild_header()
845 fl6.fl6_sport = inet->inet_sport; in inet6_sk_rebuild_header()
1130 * in a host available by both INET and INET6 APIs and in inet6_init()