Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
[linux-2.6] / include / net / inet_common.h
1 #ifndef _INET_COMMON_H
2 #define _INET_COMMON_H
3
4 extern const struct proto_ops           inet_stream_ops;
5 extern const struct proto_ops           inet_dgram_ops;
6
7 /*
8  *      INET4 prototypes used by INET6
9  */
10
11 struct msghdr;
12 struct sock;
13 struct sockaddr;
14 struct socket;
15
16 extern void                     inet_remove_sock(struct sock *sk1);
17 extern void                     inet_put_sock(unsigned short num, 
18                                               struct sock *sk);
19 extern int                      inet_release(struct socket *sock);
20 extern int                      inet_stream_connect(struct socket *sock,
21                                                     struct sockaddr * uaddr,
22                                                     int addr_len, int flags);
23 extern int                      inet_dgram_connect(struct socket *sock, 
24                                                    struct sockaddr * uaddr,
25                                                    int addr_len, int flags);
26 extern int                      inet_accept(struct socket *sock, 
27                                             struct socket *newsock, int flags);
28 extern int                      inet_sendmsg(struct kiocb *iocb,
29                                              struct socket *sock, 
30                                              struct msghdr *msg, 
31                                              size_t size);
32 extern int                      inet_shutdown(struct socket *sock, int how);
33 extern unsigned int             inet_poll(struct file * file, struct socket *sock, struct poll_table_struct *wait);
34 extern int                      inet_listen(struct socket *sock, int backlog);
35
36 extern void                     inet_sock_destruct(struct sock *sk);
37
38 extern int                      inet_bind(struct socket *sock, 
39                                           struct sockaddr *uaddr, int addr_len);
40 extern int                      inet_getname(struct socket *sock, 
41                                              struct sockaddr *uaddr, 
42                                              int *uaddr_len, int peer);
43 extern int                      inet_ioctl(struct socket *sock, 
44                                            unsigned int cmd, unsigned long arg);
45
46 #endif
47
48