Lines Matching refs:sock

138 			       struct sock *sk,  in udp_lib_lport_inuse()
139 int (*saddr_comp)(const struct sock *sk1, in udp_lib_lport_inuse()
140 const struct sock *sk2), in udp_lib_lport_inuse()
143 struct sock *sk2; in udp_lib_lport_inuse()
171 struct sock *sk, in udp_lib_lport_inuse2()
172 int (*saddr_comp)(const struct sock *sk1, in udp_lib_lport_inuse2()
173 const struct sock *sk2)) in udp_lib_lport_inuse2()
175 struct sock *sk2; in udp_lib_lport_inuse2()
208 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port()
209 int (*saddr_comp)(const struct sock *sk1, in udp_lib_get_port()
210 const struct sock *sk2), in udp_lib_get_port()
312 static int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) in ipv4_rcv_saddr_equal()
327 int udp_v4_get_port(struct sock *sk, unsigned short snum) in udp_v4_get_port()
339 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
385 static inline int compute_score2(struct sock *sk, struct net *net, in compute_score2()
441 static struct sock *udp4_lib_lookup2(struct net *net, in udp4_lib_lookup2()
446 struct sock *sk, *result; in udp4_lib_lookup2()
495 struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, in __udp4_lib_lookup()
499 struct sock *sk, *result; in __udp4_lib_lookup()
576 static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb, in __udp4_lib_lookup_skb()
587 struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, in udp4_lib_lookup()
594 static inline bool __udp_is_mcast_sock(struct net *net, struct sock *sk, in __udp_is_mcast_sock()
632 struct sock *sk; in __udp4_lib_err()
704 void udp_flush_pending_frames(struct sock *sk) in udp_flush_pending_frames()
801 struct sock *sk = skb->sk; in udp_send_skb()
858 int udp_push_pending_frames(struct sock *sk) in udp_push_pending_frames()
879 int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in udp_sendmsg()
1134 int udp_sendpage(struct sock *sk, struct page *page, int offset, in udp_sendpage()
1194 static unsigned int first_packet_length(struct sock *sk) in first_packet_length()
1230 int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) in udp_ioctl()
1268 int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, in udp_recvmsg()
1368 int udp_disconnect(struct sock *sk, int flags) in udp_disconnect()
1392 void udp_lib_unhash(struct sock *sk) in udp_lib_unhash()
1421 void udp_lib_rehash(struct sock *sk, u16 newhash) in udp_lib_rehash()
1453 static void udp_v4_rehash(struct sock *sk) in udp_v4_rehash()
1461 static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in __udp_queue_rcv_skb()
1505 int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in udp_queue_rcv_skb()
1519 int (*encap_rcv)(struct sock *sk, struct sk_buff *skb); in udp_queue_rcv_skb()
1620 static void flush_stack(struct sock **stack, unsigned int count, in flush_stack()
1625 struct sock *sk; in flush_stack()
1652 static void udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst) in udp_sk_rx_dst_set()
1672 struct sock *sk, *stack[256 / sizeof(struct sock *)]; in __udp4_lib_mcast_deliver()
1758 struct sock *sk; in __udp4_lib_rcv()
1875 static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net, in __udp4_lib_mcast_demux_lookup()
1880 struct sock *sk, *result; in __udp4_lib_mcast_demux_lookup()
1931 static struct sock *__udp4_lib_demux_lookup(struct net *net, in __udp4_lib_demux_lookup()
1936 struct sock *sk, *result; in __udp4_lib_demux_lookup()
1974 struct sock *sk; in udp_v4_early_demux()
2035 void udp_destroy_sock(struct sock *sk) in udp_destroy_sock()
2042 void (*encap_destroy)(struct sock *sk); in udp_destroy_sock()
2052 int udp_lib_setsockopt(struct sock *sk, int level, int optname, in udp_lib_setsockopt()
2054 int (*push_pending_frames)(struct sock *)) in udp_lib_setsockopt() argument
2145 int udp_setsockopt(struct sock *sk, int level, int optname, in udp_setsockopt()
2155 int compat_udp_setsockopt(struct sock *sk, int level, int optname, in compat_udp_setsockopt()
2165 int udp_lib_getsockopt(struct sock *sk, int level, int optname, in udp_lib_getsockopt()
2218 int udp_getsockopt(struct sock *sk, int level, int optname, in udp_getsockopt()
2227 int compat_udp_getsockopt(struct sock *sk, int level, int optname, in compat_udp_getsockopt()
2248 unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait) in udp_poll() argument
2250 unsigned int mask = datagram_poll(file, sock, wait); in udp_poll()
2251 struct sock *sk = sock->sk; in udp_poll()
2302 static struct sock *udp_get_first(struct seq_file *seq, int start) in udp_get_first()
2304 struct sock *sk; in udp_get_first()
2330 static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk) in udp_get_next()
2347 static struct sock *udp_get_idx(struct seq_file *seq, loff_t pos) in udp_get_idx()
2349 struct sock *sk = udp_get_first(seq, 0); in udp_get_idx()
2367 struct sock *sk; in udp_seq_next()
2429 static void udp4_format_sock(struct sock *sp, struct seq_file *f, in udp4_format_sock()