Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sock_common Struct Reference

#include <sock.h>

Data Fields

__be32 skc_daddr
 
__be32 skc_rcv_saddr
 
union {
   unsigned int   skc_hash
 
   __u16   skc_u16hashes [2]
 
}; 
 
unsigned short skc_family
 
volatile unsigned char skc_state
 
unsigned char skc_reuse
 
int skc_bound_dev_if
 
union {
   struct hlist_node   skc_bind_node
 
   struct hlist_nulls_node   skc_portaddr_node
 
}; 
 
struct protoskc_prot
 
int skc_dontcopy_begin [0]
 
union {
   struct hlist_node   skc_node
 
   struct hlist_nulls_node   skc_nulls_node
 
}; 
 
int skc_tx_queue_mapping
 
atomic_t skc_refcnt
 
int skc_dontcopy_end [0]
 

Detailed Description

struct sock_common - minimal network layer representation of sockets : Foreign IPv4 addr : Bound local IPv4 addr : hash value used with various protocol lookup tables : two u16 hash values used by UDP lookup tables : network address family : Connection state : SO_REUSEADDR setting : bound device index if != 0 : bind hash linkage for various protocol lookup tables : second hash linkage for UDP/UDP-Lite protocol : protocol handlers inside a network family : reference to the network namespace of this socket : main hash linkage for various protocol lookup tables : main hash linkage for TCP/UDP/UDP-Lite protocol : tx queue number for this connection : reference count

This is the minimal network layer representation of sockets, the header for struct sock and struct inet_timewait_sock.

Definition at line 151 of file sock.h.

Field Documentation

union { ... }
union { ... }
union { ... }
struct hlist_node skc_bind_node

Definition at line 167 of file sock.h.

int skc_bound_dev_if

Definition at line 165 of file sock.h.

__be32 skc_daddr

Definition at line 155 of file sock.h.

int skc_dontcopy_begin[0]

Definition at line 179 of file sock.h.

int skc_dontcopy_end[0]

Definition at line 188 of file sock.h.

unsigned short skc_family

Definition at line 162 of file sock.h.

unsigned int skc_hash

Definition at line 159 of file sock.h.

struct hlist_node skc_node

Definition at line 182 of file sock.h.

struct hlist_nulls_node skc_nulls_node

Definition at line 183 of file sock.h.

struct hlist_nulls_node skc_portaddr_node

Definition at line 168 of file sock.h.

struct proto* skc_prot

Definition at line 170 of file sock.h.

__be32 skc_rcv_saddr

Definition at line 156 of file sock.h.

atomic_t skc_refcnt

Definition at line 186 of file sock.h.

unsigned char skc_reuse

Definition at line 164 of file sock.h.

volatile unsigned char skc_state

Definition at line 163 of file sock.h.

int skc_tx_queue_mapping

Definition at line 185 of file sock.h.

__u16 skc_u16hashes[2]

Definition at line 160 of file sock.h.


The documentation for this struct was generated from the following file: