Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
inet_diag.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/cache.h>
#include <linux/init.h>
#include <linux/time.h>
#include <net/icmp.h>
#include <net/tcp.h>
#include <net/ipv6.h>
#include <net/inet_common.h>
#include <net/inet_connection_sock.h>
#include <net/inet_hashtables.h>
#include <net/inet_timewait_sock.h>
#include <net/inet6_hashtables.h>
#include <net/netlink.h>
#include <linux/inet.h>
#include <linux/stddef.h>
#include <linux/inet_diag.h>
#include <linux/sock_diag.h>

Go to the source code of this file.

Data Structures

struct  inet_diag_entry
 

Macros

#define EXPIRES_IN_MS(tmo)   DIV_ROUND_UP((tmo - jiffies) * 1000, HZ)
 

Functions

int inet_sk_diag_fill (struct sock *sk, struct inet_connection_sock *icsk, struct sk_buff *skb, struct inet_diag_req_v2 *req, struct user_namespace *user_ns, u32 portid, u32 seq, u16 nlmsg_flags, const struct nlmsghdr *unlh)
 
 EXPORT_SYMBOL_GPL (inet_sk_diag_fill)
 
int inet_diag_dump_one_icsk (struct inet_hashinfo *hashinfo, struct sk_buff *in_skb, const struct nlmsghdr *nlh, struct inet_diag_req_v2 *req)
 
 EXPORT_SYMBOL_GPL (inet_diag_dump_one_icsk)
 
int inet_diag_bc_sk (const struct nlattr *bc, struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet_diag_bc_sk)
 
void inet_diag_dump_icsk (struct inet_hashinfo *hashinfo, struct sk_buff *skb, struct netlink_callback *cb, struct inet_diag_req_v2 *r, struct nlattr *bc)
 
 EXPORT_SYMBOL_GPL (inet_diag_dump_icsk)
 
int inet_diag_register (const struct inet_diag_handler *h)
 
 EXPORT_SYMBOL_GPL (inet_diag_register)
 
void inet_diag_unregister (const struct inet_diag_handler *h)
 
 EXPORT_SYMBOL_GPL (inet_diag_unregister)
 
 module_init (inet_diag_init)
 
 module_exit (inet_diag_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NET_PF_PROTO_TYPE (PF_NETLINK, NETLINK_SOCK_DIAG, 2)
 
 MODULE_ALIAS_NET_PF_PROTO_TYPE (PF_NETLINK, NETLINK_SOCK_DIAG, 10)
 

Macro Definition Documentation

#define EXPIRES_IN_MS (   tmo)    DIV_ROUND_UP((tmo - jiffies) * 1000, HZ)

Function Documentation

EXPORT_SYMBOL_GPL ( inet_sk_diag_fill  )
EXPORT_SYMBOL_GPL ( inet_diag_dump_one_icsk  )
EXPORT_SYMBOL_GPL ( inet_diag_bc_sk  )
EXPORT_SYMBOL_GPL ( inet_diag_dump_icsk  )
EXPORT_SYMBOL_GPL ( inet_diag_register  )
EXPORT_SYMBOL_GPL ( inet_diag_unregister  )
int inet_diag_bc_sk ( const struct nlattr bc,
struct sock sk 
)

Definition at line 476 of file inet_diag.c.

void inet_diag_dump_icsk ( struct inet_hashinfo hashinfo,
struct sk_buff skb,
struct netlink_callback cb,
struct inet_diag_req_v2 r,
struct nlattr bc 
)

Definition at line 822 of file inet_diag.c.

int inet_diag_dump_one_icsk ( struct inet_hashinfo hashinfo,
struct sk_buff in_skb,
const struct nlmsghdr nlh,
struct inet_diag_req_v2 req 
)

Definition at line 277 of file inet_diag.c.

int inet_diag_register ( const struct inet_diag_handler h)

Definition at line 1124 of file inet_diag.c.

void inet_diag_unregister ( const struct inet_diag_handler h)

Definition at line 1144 of file inet_diag.c.

int inet_sk_diag_fill ( struct sock sk,
struct inet_connection_sock icsk,
struct sk_buff skb,
struct inet_diag_req_v2 req,
struct user_namespace user_ns,
u32  portid,
u32  seq,
u16  nlmsg_flags,
const struct nlmsghdr unlh 
)

Definition at line 74 of file inet_diag.c.

MODULE_ALIAS_NET_PF_PROTO_TYPE ( PF_NETLINK  ,
NETLINK_SOCK_DIAG  ,
 
)
MODULE_ALIAS_NET_PF_PROTO_TYPE ( PF_NETLINK  ,
NETLINK_SOCK_DIAG  ,
10   
)
module_exit ( inet_diag_exit  )
module_init ( inet_diag_init  )
MODULE_LICENSE ( "GPL"  )