Lines Matching refs:inet
122 struct inet_sock *inet = inet_sk(sk); in raw_v4_match() local
124 if (net_eq(sock_net(sk), net) && inet->inet_num == num && in raw_v4_match()
125 !(inet->inet_daddr && inet->inet_daddr != raddr) && in raw_v4_match()
126 !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && in raw_v4_match()
203 struct inet_sock *inet = inet_sk(sk); in raw_err() local
221 if (!inet->recverr && sk->sk_state != TCP_ESTABLISHED) in raw_err()
240 harderr = inet->pmtudisc != IP_PMTUDISC_DONT; in raw_err()
248 if (inet->recverr) { in raw_err()
252 if (inet->hdrincl) in raw_err()
257 if (inet->recverr || harderr) { in raw_err()
321 struct inet_sock *inet = inet_sk(sk); in raw_send_hdrinc() local
331 ip_local_error(sk, EMSGSIZE, fl4->daddr, inet->inet_dport, in raw_send_hdrinc()
415 if (err == -ENOBUFS && !inet->recverr) in raw_send_hdrinc()
473 struct inet_sock *inet = inet_sk(sk); in raw_sendmsg() local
495 hdrincl = inet->hdrincl; in raw_sendmsg()
530 daddr = inet->inet_daddr; in raw_sendmsg()
533 ipcm_init_sk(&ipc, inet); in raw_sendmsg()
552 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg()
580 ipc.oif = inet->mc_index; in raw_sendmsg()
582 saddr = inet->mc_addr; in raw_sendmsg()
584 ipc.oif = inet->uc_index; in raw_sendmsg()
585 } else if (ipv4_is_lbcast(daddr) && inet->uc_index) { in raw_sendmsg()
592 if (ipc.oif != inet->uc_index && in raw_sendmsg()
594 inet->uc_index)) { in raw_sendmsg()
595 ipc.oif = inet->uc_index; in raw_sendmsg()
646 if (err == -ENOBUFS && !inet->recverr) in raw_sendmsg()
690 struct inet_sock *inet = inet_sk(sk); in raw_bind() local
708 if (!inet_addr_valid_or_nonlocal(net, inet, addr->sin_addr.s_addr, in raw_bind()
712 inet->inet_rcv_saddr = inet->inet_saddr = addr->sin_addr.s_addr; in raw_bind()
714 inet->inet_saddr = 0; /* Use device */ in raw_bind()
730 struct inet_sock *inet = inet_sk(sk); in raw_recvmsg() local
768 if (inet->cmsg_flags) in raw_recvmsg()
1018 struct inet_sock *inet = inet_sk(sp); in raw_sock_seq_show() local
1019 __be32 dest = inet->inet_daddr, in raw_sock_seq_show()
1020 src = inet->inet_rcv_saddr; in raw_sock_seq_show()
1022 srcp = inet->inet_num; in raw_sock_seq_show()