Lines Matching refs:sock
27 #include <net/sock.h>
137 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb)
148 static inline void udp_lib_hash(struct sock *sk)
153 extern void udp_lib_unhash(struct sock *sk);
154 extern void udp_lib_rehash(struct sock *sk, u16 new_hash);
156 static inline void udp_lib_close(struct sock *sk, long timeout)
161 extern int udp_lib_get_port(struct sock *sk, unsigned short snum,
162 int (*)(const struct sock *,const struct sock *),
166 extern int udp_get_port(struct sock *sk, unsigned short snum,
167 int (*saddr_cmp)(const struct sock *,
168 const struct sock *));
170 extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk,
172 extern void udp_flush_pending_frames(struct sock *sk);
174 extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
175 extern int udp_disconnect(struct sock *sk, int flags);
176 extern unsigned int udp_poll(struct file *file, struct socket *sock,
178 extern int udp_lib_getsockopt(struct sock *sk, int level, int optname,
180 extern int udp_lib_setsockopt(struct sock *sk, int level, int optname,
182 int (*push_pending_frames)(struct sock *));
183 extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,