Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ip_vs_proto_tcp.c File Reference
#include <linux/kernel.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <net/ip.h>
#include <net/tcp.h>
#include <net/ip6_checksum.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <net/ip_vs.h>

Go to the source code of this file.

Data Structures

struct  tcp_states_t
 

Macros

#define KMSG_COMPONENT   "IPVS"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define TCP_DIR_INPUT   0
 
#define TCP_DIR_OUTPUT   4
 
#define TCP_DIR_INPUT_ONLY   8
 
#define sNO   IP_VS_TCP_S_NONE
 
#define sES   IP_VS_TCP_S_ESTABLISHED
 
#define sSS   IP_VS_TCP_S_SYN_SENT
 
#define sSR   IP_VS_TCP_S_SYN_RECV
 
#define sFW   IP_VS_TCP_S_FIN_WAIT
 
#define sTW   IP_VS_TCP_S_TIME_WAIT
 
#define sCL   IP_VS_TCP_S_CLOSE
 
#define sCW   IP_VS_TCP_S_CLOSE_WAIT
 
#define sLA   IP_VS_TCP_S_LAST_ACK
 
#define sLI   IP_VS_TCP_S_LISTEN
 
#define sSA   IP_VS_TCP_S_SYNACK
 

Functions

void ip_vs_tcp_conn_listen (struct net *net, struct ip_vs_conn *cp)
 

Variables

struct ip_vs_protocol ip_vs_protocol_tcp
 

Macro Definition Documentation

#define KMSG_COMPONENT   "IPVS"

Definition at line 20 of file ip_vs_proto_tcp.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 21 of file ip_vs_proto_tcp.c.

#define sCL   IP_VS_TCP_S_CLOSE

Definition at line 388 of file ip_vs_proto_tcp.c.

#define sCW   IP_VS_TCP_S_CLOSE_WAIT

Definition at line 389 of file ip_vs_proto_tcp.c.

#define sES   IP_VS_TCP_S_ESTABLISHED

Definition at line 383 of file ip_vs_proto_tcp.c.

#define sFW   IP_VS_TCP_S_FIN_WAIT

Definition at line 386 of file ip_vs_proto_tcp.c.

#define sLA   IP_VS_TCP_S_LAST_ACK

Definition at line 390 of file ip_vs_proto_tcp.c.

#define sLI   IP_VS_TCP_S_LISTEN

Definition at line 391 of file ip_vs_proto_tcp.c.

#define sNO   IP_VS_TCP_S_NONE

Definition at line 382 of file ip_vs_proto_tcp.c.

#define sSA   IP_VS_TCP_S_SYNACK

Definition at line 392 of file ip_vs_proto_tcp.c.

#define sSR   IP_VS_TCP_S_SYN_RECV

Definition at line 385 of file ip_vs_proto_tcp.c.

#define sSS   IP_VS_TCP_S_SYN_SENT

Definition at line 384 of file ip_vs_proto_tcp.c.

#define sTW   IP_VS_TCP_S_TIME_WAIT

Definition at line 387 of file ip_vs_proto_tcp.c.

#define TCP_DIR_INPUT   0

Definition at line 339 of file ip_vs_proto_tcp.c.

#define TCP_DIR_INPUT_ONLY   8

Definition at line 341 of file ip_vs_proto_tcp.c.

#define TCP_DIR_OUTPUT   4

Definition at line 340 of file ip_vs_proto_tcp.c.

Function Documentation

void ip_vs_tcp_conn_listen ( struct net net,
struct ip_vs_conn cp 
)

Definition at line 665 of file ip_vs_proto_tcp.c.

Variable Documentation

struct ip_vs_protocol ip_vs_protocol_tcp
Initial value:
= {
.name = "TCP",
.protocol = IPPROTO_TCP,
.num_states = IP_VS_TCP_S_LAST,
.dont_defrag = 0,
.init = NULL,
.exit = NULL,
.init_netns = __ip_vs_tcp_init,
.exit_netns = __ip_vs_tcp_exit,
.register_app = tcp_register_app,
.unregister_app = tcp_unregister_app,
.conn_schedule = tcp_conn_schedule,
.conn_in_get = ip_vs_conn_in_get_proto,
.conn_out_get = ip_vs_conn_out_get_proto,
.snat_handler = tcp_snat_handler,
.dnat_handler = tcp_dnat_handler,
.csum_check = tcp_csum_check,
.state_name = tcp_state_name,
.state_transition = tcp_state_transition,
.app_conn_bind = tcp_app_conn_bind,
.debug_packet = ip_vs_tcpudp_debug_packet,
.timeout_change = tcp_timeout_change,
}

Definition at line 700 of file ip_vs_proto_tcp.c.