Курсовая работа: Реализация сети в операционной системе Linux

/* Main hash linkage for various protocol lookup tables. */

struct sock *next;

struct sock **pprev;

struct sock *bind_next;

struct sock **bind_pprev;

volatile unsigned char state, /* Connection state */

zapped; /* In ax25 & ipx means not linked */

__u16 sport; /* Source port */

unsigned short family; /* Address family */

unsigned char reuse; /* SO_REUSEADDR setting */

unsigned char shutdown;

atomic_t refcnt; /* Reference count */

socket_lock_t lock; /* Synchronizer... */

int rcvbuf; /* Size of receive buffer in bytes */

wait_queue_head_t *sleep; /* Sock wait queue */

struct dst_entry *dst_cache; /* Destination cache */

rwlock_t dst_lock;

atomic_t rmem_alloc; /* Receive queue bytes committed */

struct sk_buff_head receive_queue; /* Incoming packets */

atomic_t wmem_alloc; /* Transmit queue bytes committed */

struct sk_buff_head write_queue; /* Packet sending queue */

atomic_t omem_alloc; /* "o" is "option" or "other" */

int wmem_queued; /* Persistent queue size */

int forward_alloc; /* Space allocated forward. */

__u32 saddr; /* Sending source */

unsigned int allocation; /* Allocation mode */

int sndbuf; /* Size of send buffer in bytes */

struct sock *prev;

/* Not all are volatile, but some are, so we might as well say they all are.

К-во Просмотров: 1402
Бесплатно скачать Курсовая работа: Реализация сети в операционной системе Linux