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

Go to the source code of this file.

Functions

struct dccp_ackvecdccp_ackvec_alloc (const gfp_t priority)
 
void dccp_ackvec_free (struct dccp_ackvec *av)
 
int dccp_ackvec_update_records (struct dccp_ackvec *av, u64 seqno, u8 nonce_sum)
 
u16 dccp_ackvec_buflen (const struct dccp_ackvec *av)
 
void dccp_ackvec_input (struct dccp_ackvec *av, struct sk_buff *skb)
 
void dccp_ackvec_clear_state (struct dccp_ackvec *av, const u64 ackno)
 
int dccp_ackvec_parsed_add (struct list_head *head, u8 *vec, u8 len, u8 nonce)
 
 EXPORT_SYMBOL_GPL (dccp_ackvec_parsed_add)
 
void dccp_ackvec_parsed_cleanup (struct list_head *parsed_chunks)
 
 EXPORT_SYMBOL_GPL (dccp_ackvec_parsed_cleanup)
 
int __init dccp_ackvec_init (void)
 
void dccp_ackvec_exit (void)
 

Function Documentation

struct dccp_ackvec* dccp_ackvec_alloc ( const gfp_t  priority)
read

Definition at line 20 of file ackvec.c.

u16 dccp_ackvec_buflen ( const struct dccp_ackvec av)

Definition at line 120 of file ackvec.c.

void dccp_ackvec_clear_state ( struct dccp_ackvec av,
const u64  ackno 
)

dccp_ackvec_clear_state - Perform house-keeping / garbage-collection This routine is called when the peer acknowledges the receipt of Ack Vectors up to and including . While based on on section A.3 of RFC 4340, here are additional precautions to prevent corrupted buffer state. In particular, we use tail_ackno to identify outdated records; it always marks the earliest packet of group (2) in 11.4.2.

Definition at line 285 of file ackvec.c.

void dccp_ackvec_exit ( void  )

Definition at line 399 of file ackvec.c.

void dccp_ackvec_free ( struct dccp_ackvec av)

Definition at line 40 of file ackvec.c.

int __init dccp_ackvec_init ( void  )

Definition at line 375 of file ackvec.c.

void dccp_ackvec_input ( struct dccp_ackvec av,
struct sk_buff skb 
)

dccp_ackvec_input - Register incoming packet in the buffer

Definition at line 249 of file ackvec.c.

int dccp_ackvec_parsed_add ( struct list_head head,
u8 vec,
u8  len,
u8  nonce 
)

Definition at line 350 of file ackvec.c.

void dccp_ackvec_parsed_cleanup ( struct list_head parsed_chunks)

Definition at line 365 of file ackvec.c.

int dccp_ackvec_update_records ( struct dccp_ackvec av,
u64  seqno,
u8  nonce_sum 
)

dccp_ackvec_update_records - Record information about sent Ack Vectors : Ack Vector records to update : Sequence number of the packet carrying the Ack Vector just sent : The sum of all buffer nonces contained in the Ack Vector

Definition at line 54 of file ackvec.c.

EXPORT_SYMBOL_GPL ( dccp_ackvec_parsed_add  )
EXPORT_SYMBOL_GPL ( dccp_ackvec_parsed_cleanup  )