#include <linux/kernel.h>
#include <linux/kprobes.h>
#include <linux/socket.h>
#include <linux/tcp.h>
#include <linux/slab.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/ktime.h>
#include <linux/time.h>
#include <net/net_namespace.h>
#include <net/tcp.h>
Go to the source code of this file.
|
| MODULE_AUTHOR ("Stephen Hemminger <[email protected]>") |
|
| MODULE_DESCRIPTION ("TCP cwnd snooper") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_VERSION ("1.1") |
|
| MODULE_PARM_DESC (port,"Port to match (0=all)") |
|
| module_param (port, int, 0) |
|
| MODULE_PARM_DESC (bufsize,"Log buffer size in packets (4096)") |
|
| module_param (bufsize, uint, 0) |
|
| MODULE_PARM_DESC (full,"Full log (1=every ack packet received, 0=only cwnd changes)") |
|
| module_param (full, int, 0) |
|
| module_init (tcpprobe_init) |
|
| module_exit (tcpprobe_exit) |
|
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_DESCRIPTION |
( |
"TCP cwnd snooper" |
| ) |
|
module_exit |
( |
tcpprobe_exit |
| ) |
|
module_init |
( |
tcpprobe_init |
| ) |
|
MODULE_PARM_DESC |
( |
port |
, |
|
|
"Port to match (0=all)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
full |
, |
|
|
"Full log (1=every ack packet received, 0=only cwnd changes)" |
|
|
) |
| |