Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
inet_connection_sock.h File Reference
#include <linux/compiler.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/poll.h>
#include <net/inet_sock.h>
#include <net/request_sock.h>

Go to the source code of this file.

Data Structures

struct  inet_connection_sock_af_ops
 
struct  inet_connection_sock
 

Macros

#define INET_CSK_DEBUG   1
 
#define ICSK_CA_PRIV_SIZE   (16 * sizeof(u32))
 
#define ICSK_TIME_RETRANS   1 /* Retransmit timer */
 
#define ICSK_TIME_DACK   2 /* Delayed ack timer */
 
#define ICSK_TIME_PROBE0   3 /* Zero window probe timer */
 

Enumerations

enum  inet_csk_ack_state_t { ICSK_ACK_SCHED = 1, ICSK_ACK_TIMER = 2, ICSK_ACK_PUSHED = 4, ICSK_ACK_PUSHED2 = 8 }
 

Functions

struct sockinet_csk_clone_lock (const struct sock *sk, const struct request_sock *req, const gfp_t priority)
 
void inet_csk_init_xmit_timers (struct sock *sk, void(*retransmit_handler)(unsigned long), void(*delack_handler)(unsigned long), void(*keepalive_handler)(unsigned long))
 
void inet_csk_clear_xmit_timers (struct sock *sk)
 
void inet_csk_delete_keepalive_timer (struct sock *sk)
 
void inet_csk_reset_keepalive_timer (struct sock *sk, unsigned long timeout)
 
struct sockinet_csk_accept (struct sock *sk, int flags, int *err)
 
struct request_sockinet_csk_search_req (const struct sock *sk, struct request_sock ***prevp, const __be16 rport, const __be32 raddr, const __be32 laddr)
 
int inet_csk_bind_conflict (const struct sock *sk, const struct inet_bind_bucket *tb, bool relax)
 
int inet_csk_get_port (struct sock *sk, unsigned short snum)
 
struct dst_entryinet_csk_route_req (struct sock *sk, struct flowi4 *fl4, const struct request_sock *req)
 
struct dst_entryinet_csk_route_child_sock (struct sock *sk, struct sock *newsk, const struct request_sock *req)
 
void inet_csk_reqsk_queue_hash_add (struct sock *sk, struct request_sock *req, unsigned long timeout)
 
void inet_csk_reqsk_queue_prune (struct sock *parent, const unsigned long interval, const unsigned long timeout, const unsigned long max_rto)
 
void inet_csk_destroy_sock (struct sock *sk)
 
int inet_csk_listen_start (struct sock *sk, const int nr_table_entries)
 
void inet_csk_listen_stop (struct sock *sk)
 
void inet_csk_addr2sockaddr (struct sock *sk, struct sockaddr *uaddr)
 
int inet_csk_compat_getsockopt (struct sock *sk, int level, int optname, char __user *optval, int __user *optlen)
 
int inet_csk_compat_setsockopt (struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen)
 
struct dst_entryinet_csk_update_pmtu (struct sock *sk, u32 mtu)
 

Variables

const char inet_csk_timer_bug_msg []
 

Macro Definition Documentation

#define ICSK_CA_PRIV_SIZE   (16 * sizeof(u32))

Definition at line 130 of file inet_connection_sock.h.

#define ICSK_TIME_DACK   2 /* Delayed ack timer */

Definition at line 134 of file inet_connection_sock.h.

#define ICSK_TIME_PROBE0   3 /* Zero window probe timer */

Definition at line 135 of file inet_connection_sock.h.

#define ICSK_TIME_RETRANS   1 /* Retransmit timer */

Definition at line 133 of file inet_connection_sock.h.

#define INET_CSK_DEBUG   1

Definition at line 26 of file inet_connection_sock.h.

Enumeration Type Documentation

Enumerator:
ICSK_ACK_SCHED 
ICSK_ACK_TIMER 
ICSK_ACK_PUSHED 
ICSK_ACK_PUSHED2 

Definition at line 151 of file inet_connection_sock.h.

Function Documentation

struct sock* inet_csk_accept ( struct sock sk,
int  flags,
int err 
)
read

Definition at line 283 of file inet_connection_sock.c.

void inet_csk_addr2sockaddr ( struct sock sk,
struct sockaddr uaddr 
)

Definition at line 815 of file inet_connection_sock.c.

int inet_csk_bind_conflict ( const struct sock sk,
const struct inet_bind_bucket tb,
bool  relax 
)

Definition at line 56 of file inet_connection_sock.c.

void inet_csk_clear_xmit_timers ( struct sock sk)

Definition at line 365 of file inet_connection_sock.c.

struct sock* inet_csk_clone_lock ( const struct sock sk,
const struct request_sock req,
const gfp_t  priority 
)
read

inet_csk_clone_lock - clone an inet socket, and lock its clone : the socket to clone : request_sock : for allocation (GFP_KERNEL, GFP_ATOMIC, etc)

Caller must unlock socket even in error path (bh_unlock_sock(newsk))

Definition at line 642 of file inet_connection_sock.c.

int inet_csk_compat_getsockopt ( struct sock sk,
int  level,
int  optname,
char __user optval,
int __user optlen 
)
int inet_csk_compat_setsockopt ( struct sock sk,
int  level,
int  optname,
char __user optval,
unsigned int  optlen 
)
void inet_csk_delete_keepalive_timer ( struct sock sk)

Definition at line 377 of file inet_connection_sock.c.

void inet_csk_destroy_sock ( struct sock sk)

Definition at line 678 of file inet_connection_sock.c.

int inet_csk_get_port ( struct sock sk,
unsigned short  snum 
)

Definition at line 100 of file inet_connection_sock.c.

void inet_csk_init_xmit_timers ( struct sock sk,
void(*)(unsigned long retransmit_handler,
void(*)(unsigned long delack_handler,
void(*)(unsigned long keepalive_handler 
)

Definition at line 349 of file inet_connection_sock.c.

int inet_csk_listen_start ( struct sock sk,
const int  nr_table_entries 
)

Definition at line 702 of file inet_connection_sock.c.

void inet_csk_listen_stop ( struct sock sk)

Definition at line 740 of file inet_connection_sock.c.

void inet_csk_reqsk_queue_hash_add ( struct sock sk,
struct request_sock req,
unsigned long  timeout 
)

Definition at line 500 of file inet_connection_sock.c.

void inet_csk_reqsk_queue_prune ( struct sock parent,
const unsigned long  interval,
const unsigned long  timeout,
const unsigned long  max_rto 
)

Definition at line 539 of file inet_connection_sock.c.

void inet_csk_reset_keepalive_timer ( struct sock sk,
unsigned long  timeout 
)

Definition at line 383 of file inet_connection_sock.c.

struct dst_entry* inet_csk_route_child_sock ( struct sock sk,
struct sock newsk,
const struct request_sock req 
)
read

Definition at line 421 of file inet_connection_sock.c.

struct dst_entry* inet_csk_route_req ( struct sock sk,
struct flowi4 fl4,
const struct request_sock req 
)
read

Definition at line 389 of file inet_connection_sock.c.

struct request_sock* inet_csk_search_req ( const struct sock sk,
struct request_sock ***  prevp,
const __be16  rport,
const __be32  raddr,
const __be32  laddr 
)
read

Definition at line 471 of file inet_connection_sock.c.

struct dst_entry* inet_csk_update_pmtu ( struct sock sk,
u32  mtu 
)
read

Definition at line 880 of file inet_connection_sock.c.

Variable Documentation

const char inet_csk_timer_bug_msg[]