Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
skbuff.h File Reference
#include <linux/kernel.h>
#include <linux/kmemcheck.h>
#include <linux/compiler.h>
#include <linux/time.h>
#include <linux/bug.h>
#include <linux/cache.h>
#include <linux/atomic.h>
#include <asm/types.h>
#include <linux/spinlock.h>
#include <linux/net.h>
#include <linux/textsearch.h>
#include <net/checksum.h>
#include <linux/rcupdate.h>
#include <linux/dmaengine.h>
#include <linux/hrtimer.h>
#include <linux/dma-mapping.h>
#include <linux/netdev_features.h>

Go to the source code of this file.

Data Structures

struct  sk_buff_head
 
struct  skb_frag_struct
 
struct  skb_shared_hwtstamps
 
struct  ubuf_info
 
struct  skb_shared_info
 
struct  sk_buff
 

Macros

#define CHECKSUM_NONE   0
 
#define CHECKSUM_UNNECESSARY   1
 
#define CHECKSUM_COMPLETE   2
 
#define CHECKSUM_PARTIAL   3
 
#define SKB_DATA_ALIGN(X)
 
#define SKB_WITH_OVERHEAD(X)   ((X) - SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))
 
#define SKB_MAX_ORDER(X, ORDER)   SKB_WITH_OVERHEAD((PAGE_SIZE << (ORDER)) - (X))
 
#define SKB_MAX_HEAD(X)   (SKB_MAX_ORDER((X), 0))
 
#define SKB_MAX_ALLOC   (SKB_MAX_ORDER(0, 2))
 
#define SKB_TRUESIZE(X)
 
#define MAX_SKB_FRAGS   (65536/PAGE_SIZE + 1)
 
#define HAVE_HW_TIME_STAMP
 
#define SKB_DATAREF_SHIFT   16
 
#define SKB_DATAREF_MASK   ((1 << SKB_DATAREF_SHIFT) - 1)
 

Typedefs

typedef struct skb_frag_struct skb_frag_t
 
typedef unsigned charsk_buff_data_t
 

Enumerations

enum  {
  SKBTX_HW_TSTAMP = 1 << 0, SKBTX_SW_TSTAMP = 1 << 1, SKBTX_IN_PROGRESS = 1 << 2, SKBTX_DEV_ZEROCOPY = 1 << 3,
  SKBTX_WIFI_STATUS = 1 << 4
}
 
enum  { SKB_FCLONE_UNAVAILABLE, SKB_FCLONE_ORIG, SKB_FCLONE_CLONE }
 
enum  {
  SKB_GSO_TCPV4 = 1 << 0, SKB_GSO_UDP = 1 << 1, SKB_GSO_DODGY = 1 << 2, SKB_GSO_TCP_ECN = 1 << 3,
  SKB_GSO_TCPV6 = 1 << 4, SKB_GSO_FCOE = 1 << 5
}
 

Macro Definition Documentation

#define CHECKSUM_COMPLETE   2

Definition at line 39 of file skbuff.h.

#define CHECKSUM_NONE   0

Definition at line 37 of file skbuff.h.

#define CHECKSUM_PARTIAL   3

Definition at line 40 of file skbuff.h.

#define CHECKSUM_UNNECESSARY   1

Definition at line 38 of file skbuff.h.

#define HAVE_HW_TIME_STAMP

Definition at line 187 of file skbuff.h.

#define MAX_SKB_FRAGS   (65536/PAGE_SIZE + 1)

Definition at line 149 of file skbuff.h.

#define SKB_DATA_ALIGN (   X)
Value:
(((X) + (SMP_CACHE_BYTES - 1)) & \

Definition at line 42 of file skbuff.h.

#define SKB_DATAREF_MASK   ((1 << SKB_DATAREF_SHIFT) - 1)

Definition at line 286 of file skbuff.h.

#define SKB_DATAREF_SHIFT   16

Definition at line 285 of file skbuff.h.

#define SKB_MAX_ALLOC   (SKB_MAX_ORDER(0, 2))

Definition at line 49 of file skbuff.h.

#define SKB_MAX_HEAD (   X)    (SKB_MAX_ORDER((X), 0))

Definition at line 48 of file skbuff.h.

#define SKB_MAX_ORDER (   X,
  ORDER 
)    SKB_WITH_OVERHEAD((PAGE_SIZE << (ORDER)) - (X))

Definition at line 46 of file skbuff.h.

#define SKB_TRUESIZE (   X)
Value:
((X) + \
SKB_DATA_ALIGN(sizeof(struct sk_buff)) + \

Definition at line 52 of file skbuff.h.

#define SKB_WITH_OVERHEAD (   X)    ((X) - SKB_DATA_ALIGN(sizeof(struct skb_shared_info)))

Definition at line 44 of file skbuff.h.

Typedef Documentation

typedef unsigned char* sk_buff_data_t

Definition at line 317 of file skbuff.h.

Definition at line 152 of file skbuff.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SKBTX_HW_TSTAMP 
SKBTX_SW_TSTAMP 
SKBTX_IN_PROGRESS 
SKBTX_DEV_ZEROCOPY 
SKBTX_WIFI_STATUS 

Definition at line 218 of file skbuff.h.

anonymous enum
Enumerator:
SKB_FCLONE_UNAVAILABLE 
SKB_FCLONE_ORIG 
SKB_FCLONE_CLONE 

Definition at line 289 of file skbuff.h.

anonymous enum
Enumerator:
SKB_GSO_TCPV4 
SKB_GSO_UDP 
SKB_GSO_DODGY 
SKB_GSO_TCP_ECN 
SKB_GSO_TCPV6 
SKB_GSO_FCOE 

Definition at line 295 of file skbuff.h.