Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tcp_ipv4.c File Reference
#include <linux/bottom_half.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/cache.h>
#include <linux/jhash.h>
#include <linux/init.h>
#include <linux/times.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include <net/icmp.h>
#include <net/inet_hashtables.h>
#include <net/tcp.h>
#include <net/transp_v6.h>
#include <net/ipv6.h>
#include <net/inet_common.h>
#include <net/timewait_sock.h>
#include <net/xfrm.h>
#include <net/netdma.h>
#include <net/secure_seq.h>
#include <net/tcp_memcontrol.h>
#include <linux/inet.h>
#include <linux/ipv6.h>
#include <linux/stddef.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/crypto.h>
#include <linux/scatterlist.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "TCP: " fmt
 

Functions

 EXPORT_SYMBOL (sysctl_tcp_low_latency)
 
 EXPORT_SYMBOL (tcp_hashinfo)
 
int tcp_twsk_unique (struct sock *sk, struct sock *sktw, void *twp)
 
 EXPORT_SYMBOL_GPL (tcp_twsk_unique)
 
int tcp_v4_connect (struct sock *sk, struct sockaddr *uaddr, int addr_len)
 
 EXPORT_SYMBOL (tcp_v4_connect)
 
void tcp_v4_err (struct sk_buff *icmp_skb, u32 info)
 
void tcp_v4_send_check (struct sock *sk, struct sk_buff *skb)
 
 EXPORT_SYMBOL (tcp_v4_send_check)
 
int tcp_v4_gso_send_check (struct sk_buff *skb)
 
bool tcp_syn_flood_action (struct sock *sk, const struct sk_buff *skb, const char *proto)
 
 EXPORT_SYMBOL (tcp_syn_flood_action)
 
int tcp_v4_conn_request (struct sock *sk, struct sk_buff *skb)
 
 EXPORT_SYMBOL (tcp_v4_conn_request)
 
struct socktcp_v4_syn_recv_sock (struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct dst_entry *dst)
 
 EXPORT_SYMBOL (tcp_v4_syn_recv_sock)
 
int tcp_v4_do_rcv (struct sock *sk, struct sk_buff *skb)
 
 EXPORT_SYMBOL (tcp_v4_do_rcv)
 
void tcp_v4_early_demux (struct sk_buff *skb)
 
int tcp_v4_rcv (struct sk_buff *skb)
 
void inet_sk_rx_dst_set (struct sock *sk, const struct sk_buff *skb)
 
 EXPORT_SYMBOL (inet_sk_rx_dst_set)
 
 EXPORT_SYMBOL (ipv4_specific)
 
void tcp_v4_destroy_sock (struct sock *sk)
 
 EXPORT_SYMBOL (tcp_v4_destroy_sock)
 
struct sk_buff ** tcp4_gro_receive (struct sk_buff **head, struct sk_buff *skb)
 
int tcp4_gro_complete (struct sk_buff *skb)
 
 EXPORT_SYMBOL (tcp_prot)
 
void __init tcp_v4_init (void)
 

Variables

int sysctl_tcp_tw_reuse __read_mostly
 
struct inet_hashinfo tcp_hashinfo
 
struct inet_connection_sock_af_ops ipv4_specific
 
struct proto tcp_prot
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "TCP: " fmt

Definition at line 53 of file tcp_ipv4.c.

Function Documentation

EXPORT_SYMBOL ( sysctl_tcp_low_latency  )
EXPORT_SYMBOL ( tcp_hashinfo  )
EXPORT_SYMBOL ( tcp_v4_connect  )
EXPORT_SYMBOL ( tcp_v4_send_check  )
EXPORT_SYMBOL ( tcp_syn_flood_action  )
EXPORT_SYMBOL ( tcp_v4_conn_request  )
EXPORT_SYMBOL ( tcp_v4_syn_recv_sock  )
EXPORT_SYMBOL ( tcp_v4_do_rcv  )
EXPORT_SYMBOL ( inet_sk_rx_dst_set  )
EXPORT_SYMBOL ( ipv4_specific  )
EXPORT_SYMBOL ( tcp_v4_destroy_sock  )
EXPORT_SYMBOL ( tcp_prot  )
EXPORT_SYMBOL_GPL ( tcp_twsk_unique  )
void inet_sk_rx_dst_set ( struct sock sk,
const struct sk_buff skb 
)

Definition at line 2113 of file tcp_ipv4.c.

int tcp4_gro_complete ( struct sk_buff skb)

Definition at line 2839 of file tcp_ipv4.c.

struct sk_buff** tcp4_gro_receive ( struct sk_buff **  head,
struct sk_buff skb 
)
read

Definition at line 2805 of file tcp_ipv4.c.

bool tcp_syn_flood_action ( struct sock sk,
const struct sk_buff skb,
const char proto 
)

Definition at line 897 of file tcp_ipv4.c.

int tcp_twsk_unique ( struct sock sk,
struct sock sktw,
void twp 
)

Definition at line 109 of file tcp_ipv4.c.

int tcp_v4_conn_request ( struct sock sk,
struct sk_buff skb 
)

Definition at line 1473 of file tcp_ipv4.c.

int tcp_v4_connect ( struct sock sk,
struct sockaddr uaddr,
int  addr_len 
)

Definition at line 150 of file tcp_ipv4.c.

void tcp_v4_destroy_sock ( struct sock sk)

Definition at line 2169 of file tcp_ipv4.c.

int tcp_v4_do_rcv ( struct sock sk,
struct sk_buff skb 
)

Definition at line 1846 of file tcp_ipv4.c.

void tcp_v4_early_demux ( struct sk_buff skb)

Definition at line 1920 of file tcp_ipv4.c.

void tcp_v4_err ( struct sk_buff icmp_skb,
u32  info 
)

Definition at line 344 of file tcp_ipv4.c.

int tcp_v4_gso_send_check ( struct sk_buff skb)

Definition at line 585 of file tcp_ipv4.c.

void __init tcp_v4_init ( void  )

Definition at line 2919 of file tcp_ipv4.c.

int tcp_v4_rcv ( struct sk_buff skb)

Definition at line 1962 of file tcp_ipv4.c.

void tcp_v4_send_check ( struct sock sk,
struct sk_buff skb 
)

Definition at line 577 of file tcp_ipv4.c.

struct sock* tcp_v4_syn_recv_sock ( struct sock sk,
struct sk_buff skb,
struct request_sock req,
struct dst_entry dst 
)
read

Definition at line 1686 of file tcp_ipv4.c.

Variable Documentation

Initial value:
= {
.family = PF_INET,
.obj_size = sizeof(struct tcp_request_sock),
.rtx_syn_ack = tcp_v4_rtx_synack,
.send_ack = tcp_v4_reqsk_send_ack,
.destructor = tcp_v4_reqsk_destructor,
.send_reset = tcp_v4_send_reset,
.syn_ack_timeout = tcp_syn_ack_timeout,
}

Definition at line 88 of file tcp_ipv4.c.

Initial value:
= {
.queue_xmit = ip_queue_xmit,
.send_check = tcp_v4_send_check,
.rebuild_header = inet_sk_rebuild_header,
.sk_rx_dst_set = inet_sk_rx_dst_set,
.conn_request = tcp_v4_conn_request,
.syn_recv_sock = tcp_v4_syn_recv_sock,
.net_header_len = sizeof(struct iphdr),
.setsockopt = ip_setsockopt,
.getsockopt = ip_getsockopt,
.addr2sockaddr = inet_csk_addr2sockaddr,
.sockaddr_len = sizeof(struct sockaddr_in),
.bind_conflict = inet_csk_bind_conflict,
}

Definition at line 2123 of file tcp_ipv4.c.

struct inet_hashinfo tcp_hashinfo

Definition at line 98 of file tcp_ipv4.c.

struct proto tcp_prot

Definition at line 2851 of file tcp_ipv4.c.