linux/include/net/inet_common.h
<<
>>
Prefs
   1#ifndef _INET_COMMON_H
   2#define _INET_COMMON_H
   3
   4extern const struct proto_ops inet_stream_ops;
   5extern const struct proto_ops inet_dgram_ops;
   6
   7/*
   8 *      INET4 prototypes used by INET6
   9 */
  10
  11struct msghdr;
  12struct sock;
  13struct sockaddr;
  14struct socket;
  15
  16extern int inet_release(struct socket *sock);
  17extern int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
  18                               int addr_len, int flags);
  19extern int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr,
  20                                 int addr_len, int flags);
  21extern int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
  22                              int addr_len, int flags);
  23extern int inet_accept(struct socket *sock, struct socket *newsock, int flags);
  24extern int inet_sendmsg(struct kiocb *iocb, struct socket *sock,
  25                        struct msghdr *msg, size_t size);
  26extern ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,
  27                             size_t size, int flags);
  28extern int inet_recvmsg(struct kiocb *iocb, struct socket *sock,
  29                        struct msghdr *msg, size_t size, int flags);
  30extern int inet_shutdown(struct socket *sock, int how);
  31extern int inet_listen(struct socket *sock, int backlog);
  32extern void inet_sock_destruct(struct sock *sk);
  33extern int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len);
  34extern int inet_getname(struct socket *sock, struct sockaddr *uaddr,
  35                        int *uaddr_len, int peer);
  36extern int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
  37extern int inet_ctl_sock_create(struct sock **sk, unsigned short family,
  38                                unsigned short type, unsigned char protocol,
  39                                struct net *net);
  40
  41static inline void inet_ctl_sock_destroy(struct sock *sk)
  42{
  43        sk_release_kernel(sk);
  44}
  45
  46#endif
  47
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.