~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/inet_diag.h

Version: ~ [ linux-5.16-rc3 ] ~ [ linux-5.15.5 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.82 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.162 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.218 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.256 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.291 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.293 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _INET_DIAG_H_
  2 #define _INET_DIAG_H_ 1
  3 
  4 #include <uapi/linux/inet_diag.h>
  5 
  6 struct net;
  7 struct sock;
  8 struct inet_hashinfo;
  9 struct nlattr;
 10 struct nlmsghdr;
 11 struct sk_buff;
 12 struct netlink_callback;
 13 
 14 struct inet_diag_handler {
 15         void            (*dump)(struct sk_buff *skb,
 16                                 struct netlink_callback *cb,
 17                                 const struct inet_diag_req_v2 *r,
 18                                 struct nlattr *bc);
 19 
 20         int             (*dump_one)(struct sk_buff *in_skb,
 21                                     const struct nlmsghdr *nlh,
 22                                     const struct inet_diag_req_v2 *req);
 23 
 24         void            (*idiag_get_info)(struct sock *sk,
 25                                           struct inet_diag_msg *r,
 26                                           void *info);
 27 
 28         int             (*destroy)(struct sk_buff *in_skb,
 29                                    const struct inet_diag_req_v2 *req);
 30 
 31         __u16           idiag_type;
 32         __u16           idiag_info_size;
 33 };
 34 
 35 struct inet_connection_sock;
 36 int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk,
 37                       struct sk_buff *skb, const struct inet_diag_req_v2 *req,
 38                       struct user_namespace *user_ns,
 39                       u32 pid, u32 seq, u16 nlmsg_flags,
 40                       const struct nlmsghdr *unlh);
 41 void inet_diag_dump_icsk(struct inet_hashinfo *h, struct sk_buff *skb,
 42                          struct netlink_callback *cb,
 43                          const struct inet_diag_req_v2 *r,
 44                          struct nlattr *bc);
 45 int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo,
 46                             struct sk_buff *in_skb, const struct nlmsghdr *nlh,
 47                             const struct inet_diag_req_v2 *req);
 48 
 49 struct sock *inet_diag_find_one_icsk(struct net *net,
 50                                      struct inet_hashinfo *hashinfo,
 51                                      const struct inet_diag_req_v2 *req);
 52 
 53 int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
 54 
 55 void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk);
 56 
 57 int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb,
 58                              struct inet_diag_msg *r, int ext,
 59                              struct user_namespace *user_ns);
 60 
 61 extern int  inet_diag_register(const struct inet_diag_handler *handler);
 62 extern void inet_diag_unregister(const struct inet_diag_handler *handler);
 63 #endif /* _INET_DIAG_H_ */
 64 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp