Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
probe.c File Reference
#include <linux/kernel.h>
#include <linux/kprobes.h>
#include <linux/socket.h>
#include <linux/sctp.h>
#include <linux/proc_fs.h>
#include <linux/vmalloc.h>
#include <linux/module.h>
#include <linux/kfifo.h>
#include <linux/time.h>
#include <net/net_namespace.h>
#include <net/sctp/sctp.h>
#include <net/sctp/sm.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

 MODULE_AUTHOR ("Wei Yongjun <[email protected]>")
 
 MODULE_DESCRIPTION ("SCTP snooper")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_PARM_DESC (port,"Port to match (0=all)")
 
 module_param (port, int, 0)
 
 MODULE_PARM_DESC (bufsize,"Log buffer size (default 64k)")
 
 module_param (bufsize, int, 0)
 
 MODULE_PARM_DESC (full,"Full log (1=every ack packet received, 0=only cwnd changes)")
 
 module_param (full, int, 0)
 
sctp_disposition_t jsctp_sf_eat_sack (const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands)
 
 module_init (sctpprobe_init)
 
 module_exit (sctpprobe_exit)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 25 of file probe.c.

Function Documentation

sctp_disposition_t jsctp_sf_eat_sack ( const struct sctp_endpoint ep,
const struct sctp_association asoc,
const sctp_subtype_t  type,
void arg,
sctp_cmd_seq_t commands 
)

Definition at line 125 of file probe.c.

MODULE_AUTHOR ( "Wei Yongjun <[email protected]>"  )
MODULE_DESCRIPTION ( "SCTP snooper"  )
module_exit ( sctpprobe_exit  )
module_init ( sctpprobe_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( port  ,
int  ,
 
)
module_param ( bufsize  ,
int  ,
 
)
module_param ( full  ,
int  ,
 
)
MODULE_PARM_DESC ( port  ,
"Port to match (0=all)"   
)
MODULE_PARM_DESC ( bufsize  ,
"Log buffer size (default 64k)"   
)
MODULE_PARM_DESC ( full  ,
"Full log (1=every ack packet received, 0=only cwnd changes)"   
)

Variable Documentation

struct kfifo fifo

Definition at line 60 of file probe.c.

spinlock_t lock

Definition at line 61 of file probe.c.

struct timespec tstart

Definition at line 63 of file probe.c.

Definition at line 62 of file probe.c.