Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
output.c File Reference
#include <linux/dccp.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <net/inet_sock.h>
#include <net/sock.h>
#include "ackvec.h"
#include "ccid.h"
#include "dccp.h"

Go to the source code of this file.

Functions

unsigned int dccp_sync_mss (struct sock *sk, u32 pmtu)
 
 EXPORT_SYMBOL_GPL (dccp_sync_mss)
 
void dccp_write_space (struct sock *sk)
 
void dccp_flush_write_queue (struct sock *sk, long *time_budget)
 
void dccp_write_xmit (struct sock *sk)
 
int dccp_retransmit_skb (struct sock *sk)
 
struct sk_buffdccp_make_response (struct sock *sk, struct dst_entry *dst, struct request_sock *req)
 
 EXPORT_SYMBOL_GPL (dccp_make_response)
 
struct sk_buffdccp_ctl_make_reset (struct sock *sk, struct sk_buff *rcv_skb)
 
 EXPORT_SYMBOL_GPL (dccp_ctl_make_reset)
 
int dccp_send_reset (struct sock *sk, enum dccp_reset_codes code)
 
int dccp_connect (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (dccp_connect)
 
void dccp_send_ack (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (dccp_send_ack)
 
void dccp_send_sync (struct sock *sk, const u64 ackno, const enum dccp_pkt_type pkt_type)
 
 EXPORT_SYMBOL_GPL (dccp_send_sync)
 
void dccp_send_close (struct sock *sk, const int active)
 

Function Documentation

int dccp_connect ( struct sock sk)

Definition at line 530 of file output.c.

struct sk_buff* dccp_ctl_make_reset ( struct sock sk,
struct sk_buff rcv_skb 
)
read

Definition at line 451 of file output.c.

void dccp_flush_write_queue ( struct sock sk,
long time_budget 
)

dccp_flush_write_queue - Drain queue at end of connection Since dccp_sendmsg queues packets without waiting for them to be sent, it may happen that the TX queue is not empty at the end of a connection. We give the HC-sender CCID a grace period of up to jiffies. If this function returns with a non-empty write queue, it will be purged later.

Definition at line 307 of file output.c.

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

Definition at line 393 of file output.c.

int dccp_retransmit_skb ( struct sock sk)

dccp_retransmit_skb - Retransmit Request, Close, or CloseReq packets There are only four retransmittable packet types in DCCP:

  • Request in client-REQUEST state (sec. 8.1.1),
  • CloseReq in server-CLOSEREQ state (sec. 8.3),
  • Close in node-CLOSING state (sec. 8.3),
  • Acks in client-PARTOPEN state (sec. 8.1.5, handled by dccp_delack_timer()). This function expects sk->sk_send_head to contain the original skb.

Definition at line 380 of file output.c.

void dccp_send_ack ( struct sock sk)

Definition at line 570 of file output.c.

void dccp_send_close ( struct sock sk,
const int  active 
)

Definition at line 665 of file output.c.

int dccp_send_reset ( struct sock sk,
enum dccp_reset_codes  code 
)

Definition at line 503 of file output.c.

void dccp_send_sync ( struct sock sk,
const u64  ackno,
const enum dccp_pkt_type  pkt_type 
)

Definition at line 628 of file output.c.

unsigned int dccp_sync_mss ( struct sock sk,
u32  pmtu 
)

Definition at line 162 of file output.c.

void dccp_write_space ( struct sock sk)

Definition at line 198 of file output.c.

void dccp_write_xmit ( struct sock sk)

Definition at line 346 of file output.c.

EXPORT_SYMBOL_GPL ( dccp_sync_mss  )
EXPORT_SYMBOL_GPL ( dccp_make_response  )
EXPORT_SYMBOL_GPL ( dccp_ctl_make_reset  )
EXPORT_SYMBOL_GPL ( dccp_connect  )
EXPORT_SYMBOL_GPL ( dccp_send_ack  )
EXPORT_SYMBOL_GPL ( dccp_send_sync  )