aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/udp.h')
-rw-r--r--include/net/udp.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index 5348d80b25bb..a184d3496b13 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -151,36 +151,35 @@ static inline void udp_lib_hash(struct sock *sk)
151} 151}
152 152
153extern void udp_lib_unhash(struct sock *sk); 153extern void udp_lib_unhash(struct sock *sk);
154extern void udp_lib_rehash(struct sock *sk, u16 new_hash);
154 155
155static inline void udp_lib_close(struct sock *sk, long timeout) 156static inline void udp_lib_close(struct sock *sk, long timeout)
156{ 157{
157 sk_common_release(sk); 158 sk_common_release(sk);
158} 159}
159 160
160extern int udp_lib_get_port(struct sock *sk, unsigned short snum, 161extern int udp_lib_get_port(struct sock *sk, unsigned short snum,
161 int (*)(const struct sock *,const struct sock *), 162 int (*)(const struct sock *,const struct sock *),
162 unsigned int hash2_nulladdr); 163 unsigned int hash2_nulladdr);
163 164
164/* net/ipv4/udp.c */ 165/* net/ipv4/udp.c */
165extern int udp_get_port(struct sock *sk, unsigned short snum, 166extern int udp_get_port(struct sock *sk, unsigned short snum,
166 int (*saddr_cmp)(const struct sock *, const struct sock *)); 167 int (*saddr_cmp)(const struct sock *,
167extern void udp_err(struct sk_buff *, u32); 168 const struct sock *));
168 169extern void udp_err(struct sk_buff *, u32);
169extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk, 170extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk,
170 struct msghdr *msg, size_t len); 171 struct msghdr *msg, size_t len);
171extern void udp_flush_pending_frames(struct sock *sk); 172extern void udp_flush_pending_frames(struct sock *sk);
172 173extern int udp_rcv(struct sk_buff *skb);
173extern int udp_rcv(struct sk_buff *skb); 174extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
174extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); 175extern int udp_disconnect(struct sock *sk, int flags);
175extern int udp_disconnect(struct sock *sk, int flags);
176extern unsigned int udp_poll(struct file *file, struct socket *sock, 176extern unsigned int udp_poll(struct file *file, struct socket *sock,
177 poll_table *wait); 177 poll_table *wait);
178extern int udp_lib_getsockopt(struct sock *sk, int level, int optname, 178extern int udp_lib_getsockopt(struct sock *sk, int level, int optname,
179 char __user *optval, int __user *optlen); 179 char __user *optval, int __user *optlen);
180extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, 180extern int udp_lib_setsockopt(struct sock *sk, int level, int optname,
181 char __user *optval, unsigned int optlen, 181 char __user *optval, unsigned int optlen,
182 int (*push_pending_frames)(struct sock *)); 182 int (*push_pending_frames)(struct sock *));
183
184extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, 183extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
185 __be32 daddr, __be16 dport, 184 __be32 daddr, __be16 dport,
186 int dif); 185 int dif);
@@ -236,7 +235,7 @@ struct udp_iter_state {
236extern int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo); 235extern int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo);
237extern void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo); 236extern void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo);
238 237
239extern int udp4_proc_init(void); 238extern int udp4_proc_init(void);
240extern void udp4_proc_exit(void); 239extern void udp4_proc_exit(void);
241#endif 240#endif
242 241