blob: f943306ce5ff3104092f604ed4d23c5c93de9855 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _INET_COMMON_H
2#define _INET_COMMON_H
3
4extern struct proto_ops inet_stream_ops;
5extern struct proto_ops inet_dgram_ops;
6
7/*
8 * INET4 prototypes used by INET6
9 */
10
Arnaldo Carvalho de Melo77d8bf92005-08-09 20:00:51 -070011struct msghdr;
12struct sock;
13struct sockaddr;
14struct socket;
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016extern void inet_remove_sock(struct sock *sk1);
17extern void inet_put_sock(unsigned short num,
18 struct sock *sk);
19extern int inet_release(struct socket *sock);
20extern int inet_stream_connect(struct socket *sock,
21 struct sockaddr * uaddr,
22 int addr_len, int flags);
23extern int inet_dgram_connect(struct socket *sock,
24 struct sockaddr * uaddr,
25 int addr_len, int flags);
26extern int inet_accept(struct socket *sock,
27 struct socket *newsock, int flags);
28extern int inet_sendmsg(struct kiocb *iocb,
29 struct socket *sock,
30 struct msghdr *msg,
31 size_t size);
32extern int inet_shutdown(struct socket *sock, int how);
33extern unsigned int inet_poll(struct file * file, struct socket *sock, struct poll_table_struct *wait);
34extern int inet_listen(struct socket *sock, int backlog);
35
36extern void inet_sock_destruct(struct sock *sk);
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
38extern int inet_bind(struct socket *sock,
39 struct sockaddr *uaddr, int addr_len);
40extern int inet_getname(struct socket *sock,
41 struct sockaddr *uaddr,
42 int *uaddr_len, int peer);
43extern int inet_ioctl(struct socket *sock,
44 unsigned int cmd, unsigned long arg);
45
46#endif
47
48