Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tcp_output.c File Reference
#include <net/tcp.h>
#include <linux/compiler.h>
#include <linux/gfp.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  tcp_out_options
 
struct  tsq_tasklet
 

Macros

#define pr_fmt(fmt)   "TCP: " fmt
 
#define OPTION_SACK_ADVERTISE   (1 << 0)
 
#define OPTION_TS   (1 << 1)
 
#define OPTION_MD5   (1 << 2)
 
#define OPTION_WSCALE   (1 << 3)
 
#define OPTION_COOKIE_EXTENSION   (1 << 4)
 
#define OPTION_FAST_OPEN_COOKIE   (1 << 8)
 
#define TCP_DEFERRED_ALL
 

Functions

 EXPORT_SYMBOL_GPL (sysctl_tcp_cookie_size)
 
void tcp_select_initial_window (int __space, __u32 mss, __u32 *rcv_wnd, __u32 *window_clamp, int wscale_ok, __u8 *rcv_wscale, __u32 init_rcv_wnd)
 
 EXPORT_SYMBOL (tcp_select_initial_window)
 
void tcp_release_cb (struct sock *sk)
 
 EXPORT_SYMBOL (tcp_release_cb)
 
void __init tcp_tasklet_init (void)
 
int tcp_fragment (struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss_now)
 
int tcp_trim_head (struct sock *sk, struct sk_buff *skb, u32 len)
 
int tcp_mtu_to_mss (struct sock *sk, int pmtu)
 
int tcp_mss_to_mtu (struct sock *sk, int mss)
 
void tcp_mtup_init (struct sock *sk)
 
 EXPORT_SYMBOL (tcp_mtup_init)
 
unsigned int tcp_sync_mss (struct sock *sk, u32 pmtu)
 
 EXPORT_SYMBOL (tcp_sync_mss)
 
unsigned int tcp_current_mss (struct sock *sk)
 
bool tcp_may_send_now (struct sock *sk)
 
void __tcp_push_pending_frames (struct sock *sk, unsigned int cur_mss, int nonagle)
 
void tcp_push_one (struct sock *sk, unsigned int mss_now)
 
u32 __tcp_select_window (struct sock *sk)
 
int __tcp_retransmit_skb (struct sock *sk, struct sk_buff *skb)
 
int tcp_retransmit_skb (struct sock *sk, struct sk_buff *skb)
 
void tcp_xmit_retransmit_queue (struct sock *sk)
 
void tcp_send_fin (struct sock *sk)
 
void tcp_send_active_reset (struct sock *sk, gfp_t priority)
 
int tcp_send_synack (struct sock *sk)
 
struct sk_bufftcp_make_synack (struct sock *sk, struct dst_entry *dst, struct request_sock *req, struct request_values *rvp, struct tcp_fastopen_cookie *foc)
 
 EXPORT_SYMBOL (tcp_make_synack)
 
void tcp_connect_init (struct sock *sk)
 
int tcp_connect (struct sock *sk)
 
 EXPORT_SYMBOL (tcp_connect)
 
void tcp_send_delayed_ack (struct sock *sk)
 
void tcp_send_ack (struct sock *sk)
 
void tcp_send_window_probe (struct sock *sk)
 
int tcp_write_wakeup (struct sock *sk)
 
void tcp_send_probe0 (struct sock *sk)
 

Variables

int sysctl_tcp_retrans_collapse __read_mostly = 1
 

Macro Definition Documentation

#define OPTION_COOKIE_EXTENSION   (1 << 4)

Definition at line 387 of file tcp_output.c.

#define OPTION_FAST_OPEN_COOKIE   (1 << 8)

Definition at line 388 of file tcp_output.c.

#define OPTION_MD5   (1 << 2)

Definition at line 385 of file tcp_output.c.

#define OPTION_SACK_ADVERTISE   (1 << 0)

Definition at line 383 of file tcp_output.c.

#define OPTION_TS   (1 << 1)

Definition at line 384 of file tcp_output.c.

#define OPTION_WSCALE   (1 << 3)

Definition at line 386 of file tcp_output.c.

#define pr_fmt (   fmt)    "TCP: " fmt

Definition at line 37 of file tcp_output.c.

#define TCP_DEFERRED_ALL
Value:

Definition at line 895 of file tcp_output.c.

Function Documentation

void __tcp_push_pending_frames ( struct sock sk,
unsigned int  cur_mss,
int  nonagle 
)

Definition at line 2058 of file tcp_output.c.

int __tcp_retransmit_skb ( struct sock sk,
struct sk_buff skb 
)

Definition at line 2312 of file tcp_output.c.

u32 __tcp_select_window ( struct sock sk)

Definition at line 2137 of file tcp_output.c.

EXPORT_SYMBOL ( tcp_select_initial_window  )
EXPORT_SYMBOL ( tcp_release_cb  )
EXPORT_SYMBOL ( tcp_mtup_init  )
EXPORT_SYMBOL ( tcp_sync_mss  )
EXPORT_SYMBOL ( tcp_make_synack  )
EXPORT_SYMBOL ( tcp_connect  )
EXPORT_SYMBOL_GPL ( sysctl_tcp_cookie_size  )
int tcp_connect ( struct sock sk)

Definition at line 2987 of file tcp_output.c.

void tcp_connect_init ( struct sock sk)

Definition at line 2816 of file tcp_output.c.

unsigned int tcp_current_mss ( struct sock sk)

Definition at line 1474 of file tcp_output.c.

int tcp_fragment ( struct sock sk,
struct sk_buff skb,
u32  len,
unsigned int  mss_now 
)

Definition at line 1201 of file tcp_output.c.

struct sk_buff* tcp_make_synack ( struct sock sk,
struct dst_entry dst,
struct request_sock req,
struct request_values rvp,
struct tcp_fastopen_cookie foc 
)
read

tcp_make_synack - Prepare a SYN-ACK. sk: listener socket dst: dst entry attached to the SYNACK req: request_sock pointer rvp: request_values pointer

Allocate one skb and build a SYNACK packet. is consumed : Caller should not use it again.

Definition at line 2677 of file tcp_output.c.

bool tcp_may_send_now ( struct sock sk)

Definition at line 1681 of file tcp_output.c.

int tcp_mss_to_mtu ( struct sock sk,
int  mss 
)

Definition at line 1392 of file tcp_output.c.

int tcp_mtu_to_mss ( struct sock sk,
int  pmtu 
)

Definition at line 1355 of file tcp_output.c.

void tcp_mtup_init ( struct sock sk)

Definition at line 1414 of file tcp_output.c.

void tcp_push_one ( struct sock sk,
unsigned int  mss_now 
)

Definition at line 2076 of file tcp_output.c.

void tcp_release_cb ( struct sock sk)

tcp_release_cb - tcp release_sock() callback : socket

called from release_sock() to perform protocol dependent actions before socket release.

Definition at line 906 of file tcp_output.c.

int tcp_retransmit_skb ( struct sock sk,
struct sk_buff skb 
)

Definition at line 2396 of file tcp_output.c.

void tcp_select_initial_window ( int  __space,
__u32  mss,
__u32 rcv_wnd,
__u32 window_clamp,
int  wscale_ok,
__u8 rcv_wscale,
__u32  init_rcv_wnd 
)

Definition at line 195 of file tcp_output.c.

void tcp_send_ack ( struct sock sk)

Definition at line 3084 of file tcp_output.c.

void tcp_send_active_reset ( struct sock sk,
gfp_t  priority 
)

Definition at line 2608 of file tcp_output.c.

void tcp_send_delayed_ack ( struct sock sk)

Definition at line 3031 of file tcp_output.c.

void tcp_send_fin ( struct sock sk)

Definition at line 2567 of file tcp_output.c.

void tcp_send_probe0 ( struct sock sk)

Definition at line 3202 of file tcp_output.c.

int tcp_send_synack ( struct sock sk)

Definition at line 2637 of file tcp_output.c.

void tcp_send_window_probe ( struct sock sk)

Definition at line 3146 of file tcp_output.c.

unsigned int tcp_sync_mss ( struct sock sk,
u32  pmtu 
)

Definition at line 1449 of file tcp_output.c.

void __init tcp_tasklet_init ( void  )

Definition at line 937 of file tcp_output.c.

int tcp_trim_head ( struct sock sk,
struct sk_buff skb,
u32  len 
)

Definition at line 1332 of file tcp_output.c.

int tcp_write_wakeup ( struct sock sk)

Definition at line 3156 of file tcp_output.c.

void tcp_xmit_retransmit_queue ( struct sock sk)

Definition at line 2469 of file tcp_output.c.

Variable Documentation

int sysctl_tcp_cookie_size __read_mostly = 1

Definition at line 46 of file tcp_output.c.