Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
inet_connection_sock.c File Reference
#include <linux/module.h>
#include <linux/jhash.h>
#include <net/inet_connection_sock.h>
#include <net/inet_hashtables.h>
#include <net/inet_timewait_sock.h>
#include <net/ip.h>
#include <net/route.h>
#include <net/tcp_states.h>
#include <net/xfrm.h>

Go to the source code of this file.

Macros

#define AF_INET_FAMILY(fam)   1
 

Functions

 EXPORT_SYMBOL (sysctl_local_reserved_ports)
 
void inet_get_local_port_range (int *low, int *high)
 
 EXPORT_SYMBOL (inet_get_local_port_range)
 
int inet_csk_bind_conflict (const struct sock *sk, const struct inet_bind_bucket *tb, bool relax)
 
 EXPORT_SYMBOL_GPL (inet_csk_bind_conflict)
 
int inet_csk_get_port (struct sock *sk, unsigned short snum)
 
 EXPORT_SYMBOL_GPL (inet_csk_get_port)
 
struct sockinet_csk_accept (struct sock *sk, int flags, int *err)
 
 EXPORT_SYMBOL (inet_csk_accept)
 
void inet_csk_init_xmit_timers (struct sock *sk, void(*retransmit_handler)(unsigned long), void(*delack_handler)(unsigned long), void(*keepalive_handler)(unsigned long))
 
 EXPORT_SYMBOL (inet_csk_init_xmit_timers)
 
void inet_csk_clear_xmit_timers (struct sock *sk)
 
 EXPORT_SYMBOL (inet_csk_clear_xmit_timers)
 
void inet_csk_delete_keepalive_timer (struct sock *sk)
 
 EXPORT_SYMBOL (inet_csk_delete_keepalive_timer)
 
void inet_csk_reset_keepalive_timer (struct sock *sk, unsigned long len)
 
 EXPORT_SYMBOL (inet_csk_reset_keepalive_timer)
 
struct dst_entryinet_csk_route_req (struct sock *sk, struct flowi4 *fl4, const struct request_sock *req)
 
 EXPORT_SYMBOL_GPL (inet_csk_route_req)
 
struct dst_entryinet_csk_route_child_sock (struct sock *sk, struct sock *newsk, const struct request_sock *req)
 
 EXPORT_SYMBOL_GPL (inet_csk_route_child_sock)
 
struct request_sockinet_csk_search_req (const struct sock *sk, struct request_sock ***prevp, const __be16 rport, const __be32 raddr, const __be32 laddr)
 
 EXPORT_SYMBOL_GPL (inet_csk_search_req)
 
void inet_csk_reqsk_queue_hash_add (struct sock *sk, struct request_sock *req, unsigned long timeout)
 
 EXPORT_SYMBOL_GPL (inet_csk_reqsk_queue_hash_add)
 
void inet_csk_reqsk_queue_prune (struct sock *parent, const unsigned long interval, const unsigned long timeout, const unsigned long max_rto)
 
 EXPORT_SYMBOL_GPL (inet_csk_reqsk_queue_prune)
 
struct sockinet_csk_clone_lock (const struct sock *sk, const struct request_sock *req, const gfp_t priority)
 
 EXPORT_SYMBOL_GPL (inet_csk_clone_lock)
 
void inet_csk_destroy_sock (struct sock *sk)
 
 EXPORT_SYMBOL (inet_csk_destroy_sock)
 
int inet_csk_listen_start (struct sock *sk, const int nr_table_entries)
 
 EXPORT_SYMBOL_GPL (inet_csk_listen_start)
 
void inet_csk_listen_stop (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet_csk_listen_stop)
 
void inet_csk_addr2sockaddr (struct sock *sk, struct sockaddr *uaddr)
 
 EXPORT_SYMBOL_GPL (inet_csk_addr2sockaddr)
 
struct dst_entryinet_csk_update_pmtu (struct sock *sk, u32 mtu)
 
 EXPORT_SYMBOL_GPL (inet_csk_update_pmtu)
 

Variables

struct local_ports
sysctl_local_ports 
__read_mostly
 
unsigned longsysctl_local_reserved_ports
 
int sysctl_tcp_synack_retries
 

Macro Definition Documentation

#define AF_INET_FAMILY (   fam)    1

Definition at line 468 of file inet_connection_sock.c.

Function Documentation

EXPORT_SYMBOL ( sysctl_local_reserved_ports  )
EXPORT_SYMBOL ( inet_get_local_port_range  )
EXPORT_SYMBOL ( inet_csk_accept  )
EXPORT_SYMBOL ( inet_csk_init_xmit_timers  )
EXPORT_SYMBOL ( inet_csk_clear_xmit_timers  )
EXPORT_SYMBOL ( inet_csk_delete_keepalive_timer  )
EXPORT_SYMBOL ( inet_csk_reset_keepalive_timer  )
EXPORT_SYMBOL ( inet_csk_destroy_sock  )
EXPORT_SYMBOL_GPL ( inet_csk_bind_conflict  )
EXPORT_SYMBOL_GPL ( inet_csk_get_port  )
EXPORT_SYMBOL_GPL ( inet_csk_route_req  )
EXPORT_SYMBOL_GPL ( inet_csk_route_child_sock  )
EXPORT_SYMBOL_GPL ( inet_csk_search_req  )
EXPORT_SYMBOL_GPL ( inet_csk_reqsk_queue_hash_add  )
EXPORT_SYMBOL_GPL ( inet_csk_reqsk_queue_prune  )
EXPORT_SYMBOL_GPL ( inet_csk_clone_lock  )
EXPORT_SYMBOL_GPL ( inet_csk_listen_start  )
EXPORT_SYMBOL_GPL ( inet_csk_listen_stop  )
EXPORT_SYMBOL_GPL ( inet_csk_addr2sockaddr  )
EXPORT_SYMBOL_GPL ( inet_csk_update_pmtu  )
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.

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  len 
)

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.

void inet_get_local_port_range ( int low,
int high 
)

Definition at line 43 of file inet_connection_sock.c.

Variable Documentation

Initial value:
= {
.range = { 32768, 61000 },
}

Definition at line 35 of file inet_connection_sock.c.

unsigned long* sysctl_local_reserved_ports

Definition at line 40 of file inet_connection_sock.c.

int sysctl_tcp_synack_retries