Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _INET_COMMON_H |
| 2 | #define _INET_COMMON_H |
| 3 | |
Eric Dumazet | 90ddc4f | 2005-12-22 12:49:22 -0800 | [diff] [blame] | 4 | extern const struct proto_ops inet_stream_ops; |
| 5 | extern const struct proto_ops inet_dgram_ops; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 7 | /* |
| 8 | * INET4 prototypes used by INET6 |
| 9 | */ |
| 10 | |
Arnaldo Carvalho de Melo | 77d8bf9 | 2005-08-09 20:00:51 -0700 | [diff] [blame] | 11 | struct msghdr; |
| 12 | struct sock; |
| 13 | struct sockaddr; |
| 14 | struct socket; |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | extern int inet_release(struct socket *sock); |
| 17 | extern int inet_stream_connect(struct socket *sock, |
| 18 | struct sockaddr * uaddr, |
| 19 | int addr_len, int flags); |
| 20 | extern int inet_dgram_connect(struct socket *sock, |
| 21 | struct sockaddr * uaddr, |
| 22 | int addr_len, int flags); |
| 23 | extern int inet_accept(struct socket *sock, |
| 24 | struct socket *newsock, int flags); |
| 25 | extern int inet_sendmsg(struct kiocb *iocb, |
| 26 | struct socket *sock, |
| 27 | struct msghdr *msg, |
| 28 | size_t size); |
| 29 | extern int inet_shutdown(struct socket *sock, int how); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | extern int inet_listen(struct socket *sock, int backlog); |
| 31 | |
| 32 | extern void inet_sock_destruct(struct sock *sk); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
| 34 | extern int inet_bind(struct socket *sock, |
| 35 | struct sockaddr *uaddr, int addr_len); |
| 36 | extern int inet_getname(struct socket *sock, |
| 37 | struct sockaddr *uaddr, |
| 38 | int *uaddr_len, int peer); |
| 39 | extern int inet_ioctl(struct socket *sock, |
| 40 | unsigned int cmd, unsigned long arg); |
| 41 | |
| 42 | #endif |
| 43 | |
| 44 | |