Lines Matching refs:sock
139 struct sock *sk, in udp_lib_lport_inuse()
140 int (*saddr_comp)(const struct sock *sk1, in udp_lib_lport_inuse()
141 const struct sock *sk2), in udp_lib_lport_inuse()
144 struct sock *sk2; in udp_lib_lport_inuse()
172 struct sock *sk, in udp_lib_lport_inuse2()
173 int (*saddr_comp)(const struct sock *sk1, in udp_lib_lport_inuse2()
174 const struct sock *sk2)) in udp_lib_lport_inuse2()
176 struct sock *sk2; in udp_lib_lport_inuse2()
209 int udp_lib_get_port(struct sock *sk, unsigned short snum, in udp_lib_get_port()
210 int (*saddr_comp)(const struct sock *sk1, in udp_lib_get_port()
211 const struct sock *sk2), in udp_lib_get_port()
313 static int ipv4_rcv_saddr_equal(const struct sock *sk1, const struct sock *sk2) in ipv4_rcv_saddr_equal()
328 int udp_v4_get_port(struct sock *sk, unsigned short snum) in udp_v4_get_port()
340 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()
438 static struct sock *udp4_lib_lookup2(struct net *net, in udp4_lib_lookup2()
443 struct sock *sk, *result; in udp4_lib_lookup2()
492 struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, in __udp4_lib_lookup()
496 struct sock *sk, *result; in __udp4_lib_lookup()
573 static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb, in __udp4_lib_lookup_skb()
584 struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, in udp4_lib_lookup()
591 static inline bool __udp_is_mcast_sock(struct net *net, struct sock *sk, in __udp_is_mcast_sock()
629 struct sock *sk; in __udp4_lib_err()
701 void udp_flush_pending_frames(struct sock *sk) in udp_flush_pending_frames()
798 struct sock *sk = skb->sk; in udp_send_skb()
855 int udp_push_pending_frames(struct sock *sk) in udp_push_pending_frames()
876 int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) in udp_sendmsg()
1123 int udp_sendpage(struct sock *sk, struct page *page, int offset, in udp_sendpage()
1183 static unsigned int first_packet_length(struct sock *sk) in first_packet_length()
1219 int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) in udp_ioctl()
1257 int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, in udp_recvmsg()
1357 int udp_disconnect(struct sock *sk, int flags) in udp_disconnect()
1381 void udp_lib_unhash(struct sock *sk) in udp_lib_unhash()
1410 void udp_lib_rehash(struct sock *sk, u16 newhash) in udp_lib_rehash()
1442 static void udp_v4_rehash(struct sock *sk) in udp_v4_rehash()
1450 static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in __udp_queue_rcv_skb()
1494 int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in udp_queue_rcv_skb()
1508 int (*encap_rcv)(struct sock *sk, struct sk_buff *skb); in udp_queue_rcv_skb()
1609 static void flush_stack(struct sock **stack, unsigned int count, in flush_stack()
1614 struct sock *sk; in flush_stack()
1641 static void udp_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst) in udp_sk_rx_dst_set()
1661 struct sock *sk, *stack[256 / sizeof(struct sock *)]; in __udp4_lib_mcast_deliver()
1747 struct sock *sk; in __udp4_lib_rcv()
1864 static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net, in __udp4_lib_mcast_demux_lookup()
1869 struct sock *sk, *result; in __udp4_lib_mcast_demux_lookup()
1920 static struct sock *__udp4_lib_demux_lookup(struct net *net, in __udp4_lib_demux_lookup()
1925 struct sock *sk, *result; in __udp4_lib_demux_lookup()
1963 struct sock *sk; in udp_v4_early_demux()
2020 void udp_destroy_sock(struct sock *sk) in udp_destroy_sock()
2027 void (*encap_destroy)(struct sock *sk); in udp_destroy_sock()
2037 int udp_lib_setsockopt(struct sock *sk, int level, int optname, in udp_lib_setsockopt()
2039 int (*push_pending_frames)(struct sock *)) in udp_lib_setsockopt() argument
2130 int udp_setsockopt(struct sock *sk, int level, int optname, in udp_setsockopt()
2140 int compat_udp_setsockopt(struct sock *sk, int level, int optname, in compat_udp_setsockopt()
2150 int udp_lib_getsockopt(struct sock *sk, int level, int optname, in udp_lib_getsockopt()
2203 int udp_getsockopt(struct sock *sk, int level, int optname, in udp_getsockopt()
2212 int compat_udp_getsockopt(struct sock *sk, int level, int optname, in compat_udp_getsockopt()
2233 unsigned int udp_poll(struct file *file, struct socket *sock, poll_table *wait) in udp_poll() argument
2235 unsigned int mask = datagram_poll(file, sock, wait); in udp_poll()
2236 struct sock *sk = sock->sk; in udp_poll()
2287 static struct sock *udp_get_first(struct seq_file *seq, int start) in udp_get_first()
2289 struct sock *sk; in udp_get_first()
2315 static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk) in udp_get_next()
2332 static struct sock *udp_get_idx(struct seq_file *seq, loff_t pos) in udp_get_idx()
2334 struct sock *sk = udp_get_first(seq, 0); in udp_get_idx()
2352 struct sock *sk; in udp_seq_next()
2414 static void udp4_format_sock(struct sock *sp, struct seq_file *f, in udp4_format_sock()