Lines Matching refs:inet
359 struct inet_sock *inet; in compute_score() local
372 inet = inet_sk(sk); in compute_score()
373 if (inet->inet_daddr) { in compute_score()
374 if (inet->inet_daddr != saddr) in compute_score()
379 if (inet->inet_dport) { in compute_score()
380 if (inet->inet_dport != sport) in compute_score()
525 struct inet_sock *inet = inet_sk(sk); in __udp_is_mcast_sock() local
529 (inet->inet_daddr && inet->inet_daddr != rmt_addr) || in __udp_is_mcast_sock()
530 (inet->inet_dport != rmt_port && inet->inet_dport) || in __udp_is_mcast_sock()
531 (inet->inet_rcv_saddr && inet->inet_rcv_saddr != loc_addr) || in __udp_is_mcast_sock()
644 struct inet_sock *inet; in __udp4_lib_err() local
678 inet = inet_sk(sk); in __udp4_lib_err()
694 if (inet->pmtudisc != IP_PMTUDISC_DONT) { in __udp4_lib_err()
720 if (!inet->recverr) { in __udp4_lib_err()
828 struct inet_sock *inet = inet_sk(sk); in udp_send_skb() local
841 uh->source = inet->inet_sport; in udp_send_skb()
903 if (err == -ENOBUFS && !inet->recverr) { in udp_send_skb()
920 struct inet_sock *inet = inet_sk(sk); in udp_push_pending_frames() local
921 struct flowi4 *fl4 = &inet->cork.fl.u.ip4; in udp_push_pending_frames()
929 err = udp_send_skb(skb, fl4, &inet->cork.base); in udp_push_pending_frames()
977 struct inet_sock *inet = inet_sk(sk); in udp_sendmsg() local
1008 fl4 = &inet->cork.fl.u.ip4; in udp_sendmsg()
1044 daddr = inet->inet_daddr; in udp_sendmsg()
1045 dport = inet->inet_dport; in udp_sendmsg()
1052 ipcm_init_sk(&ipc, inet); in udp_sendmsg()
1072 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
1108 tos = get_rttos(&ipc, inet); in udp_sendmsg()
1118 ipc.oif = inet->mc_index; in udp_sendmsg()
1120 saddr = inet->mc_addr; in udp_sendmsg()
1123 ipc.oif = inet->uc_index; in udp_sendmsg()
1124 } else if (ipv4_is_lbcast(daddr) && inet->uc_index) { in udp_sendmsg()
1131 if (ipc.oif != inet->uc_index && in udp_sendmsg()
1133 inet->uc_index)) { in udp_sendmsg()
1134 ipc.oif = inet->uc_index; in udp_sendmsg()
1150 faddr, saddr, dport, inet->inet_sport, in udp_sendmsg()
1205 fl4 = &inet->cork.fl.u.ip4; in udp_sendmsg()
1209 fl4->fl4_sport = inet->inet_sport; in udp_sendmsg()
1258 struct inet_sock *inet = inet_sk(sk); in udp_sendpage() local
1286 ret = ip_append_page(sk, &inet->cork.fl.u.ip4, in udp_sendpage()
1741 struct inet_sock *inet = inet_sk(sk); in udp_recvmsg() local
1823 if (inet->cmsg_flags) in udp_recvmsg()
1862 struct inet_sock *inet = inet_sk(sk); in __udp_disconnect() local
1868 inet->inet_daddr = 0; in __udp_disconnect()
1869 inet->inet_dport = 0; in __udp_disconnect()
1881 inet->inet_sport = 0; in __udp_disconnect()
2936 struct inet_sock *inet = inet_sk(sp); in udp4_format_sock() local
2937 __be32 dest = inet->inet_daddr; in udp4_format_sock()
2938 __be32 src = inet->inet_rcv_saddr; in udp4_format_sock()
2939 __u16 destp = ntohs(inet->inet_dport); in udp4_format_sock()
2940 __u16 srcp = ntohs(inet->inet_sport); in udp4_format_sock()