Import 2.3.1
[davej-history.git] / include / net / inet_common.h
blob9c7c8b947ba695caa9ba2199f82162f91d33e61a
1 #ifndef _INET_COMMON_H
2 #define _INET_COMMON_H
4 extern struct proto_ops inet_stream_ops;
5 extern struct proto_ops inet_dgram_ops;
7 /*
8 * INET4 prototypes used by INET6
9 */
11 extern void inet_remove_sock(struct sock *sk1);
12 extern void inet_put_sock(unsigned short num,
13 struct sock *sk);
14 extern int inet_release(struct socket *sock,
15 struct socket *peer);
16 extern int inet_stream_connect(struct socket *sock,
17 struct sockaddr * uaddr,
18 int addr_len, int flags);
19 extern int inet_dgram_connect(struct socket *sock,
20 struct sockaddr * uaddr,
21 int addr_len, int flags);
22 extern int inet_accept(struct socket *sock,
23 struct socket *newsock, int flags);
24 extern int inet_recvmsg(struct socket *sock,
25 struct msghdr *ubuf,
26 int size, int flags, struct scm_cookie *scm);
27 extern int inet_sendmsg(struct socket *sock,
28 struct msghdr *msg,
29 int size, struct scm_cookie *scm);
30 extern int inet_shutdown(struct socket *sock, int how);
31 extern unsigned int inet_poll(struct file * file, struct socket *sock, struct poll_table_struct *wait);
32 extern int inet_setsockopt(struct socket *sock, int level,
33 int optname, char *optval,
34 int optlen);
35 extern int inet_getsockopt(struct socket *sock, int level,
36 int optname, char *optval,
37 int *optlen);
38 extern int inet_fcntl(struct socket *sock,
39 unsigned int cmd,
40 unsigned long arg);
41 extern int inet_listen(struct socket *sock, int backlog);
43 #endif