Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
tsnmap.c File Reference
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/bitmap.h>
#include <net/sctp/sctp.h>
#include <net/sctp/sm.h>

Go to the source code of this file.

Functions

struct sctp_tsnmapsctp_tsnmap_init (struct sctp_tsnmap *map, __u16 len, __u32 initial_tsn, gfp_t gfp)
 
void sctp_tsnmap_free (struct sctp_tsnmap *map)
 
int sctp_tsnmap_check (const struct sctp_tsnmap *map, __u32 tsn)
 
int sctp_tsnmap_mark (struct sctp_tsnmap *map, __u32 tsn, struct sctp_transport *trans)
 
SCTP_STATIC void sctp_tsnmap_iter_init (const struct sctp_tsnmap *map, struct sctp_tsnmap_iter *iter)
 
SCTP_STATIC int sctp_tsnmap_next_gap_ack (const struct sctp_tsnmap *map, struct sctp_tsnmap_iter *iter, __u16 *start, __u16 *end)
 
void sctp_tsnmap_skip (struct sctp_tsnmap *map, __u32 tsn)
 
__u16 sctp_tsnmap_pending (struct sctp_tsnmap *map)
 
void sctp_tsnmap_renege (struct sctp_tsnmap *map, __u32 tsn)
 
__u16 sctp_tsnmap_num_gabs (struct sctp_tsnmap *map, struct sctp_gap_ack_block *gabs)
 

Function Documentation

int sctp_tsnmap_check ( const struct sctp_tsnmap map,
__u32  tsn 
)

Definition at line 91 of file tsnmap.c.

void sctp_tsnmap_free ( struct sctp_tsnmap map)

Definition at line 79 of file tsnmap.c.

struct sctp_tsnmap* sctp_tsnmap_init ( struct sctp_tsnmap map,
__u16  len,
__u32  initial_tsn,
gfp_t  gfp 
)
read

Definition at line 57 of file tsnmap.c.

SCTP_STATIC void sctp_tsnmap_iter_init ( const struct sctp_tsnmap map,
struct sctp_tsnmap_iter iter 
)

Definition at line 164 of file tsnmap.c.

int sctp_tsnmap_mark ( struct sctp_tsnmap map,
__u32  tsn,
struct sctp_transport trans 
)

Definition at line 117 of file tsnmap.c.

SCTP_STATIC int sctp_tsnmap_next_gap_ack ( const struct sctp_tsnmap map,
struct sctp_tsnmap_iter iter,
__u16 start,
__u16 end 
)

Definition at line 174 of file tsnmap.c.

__u16 sctp_tsnmap_num_gabs ( struct sctp_tsnmap map,
struct sctp_gap_ack_block gabs 
)

Definition at line 343 of file tsnmap.c.

__u16 sctp_tsnmap_pending ( struct sctp_tsnmap map)

Definition at line 269 of file tsnmap.c.

void sctp_tsnmap_renege ( struct sctp_tsnmap map,
__u32  tsn 
)

Definition at line 326 of file tsnmap.c.

void sctp_tsnmap_skip ( struct sctp_tsnmap map,
__u32  tsn 
)

Definition at line 212 of file tsnmap.c.