Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
inet_hashtables.c File Reference
#include <linux/module.h>
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/wait.h>
#include <net/inet_connection_sock.h>
#include <net/inet_hashtables.h>
#include <net/secure_seq.h>
#include <net/ip.h>

Go to the source code of this file.

Functions

struct inet_bind_bucketinet_bind_bucket_create (struct kmem_cache *cachep, struct net *net, struct inet_bind_hashbucket *head, const unsigned short snum)
 
void inet_bind_bucket_destroy (struct kmem_cache *cachep, struct inet_bind_bucket *tb)
 
void inet_bind_hash (struct sock *sk, struct inet_bind_bucket *tb, const unsigned short snum)
 
void inet_put_port (struct sock *sk)
 
 EXPORT_SYMBOL (inet_put_port)
 
int __inet_inherit_port (struct sock *sk, struct sock *child)
 
 EXPORT_SYMBOL_GPL (__inet_inherit_port)
 
struct sock__inet_lookup_listener (struct net *net, struct inet_hashinfo *hashinfo, const __be32 daddr, const unsigned short hnum, const int dif)
 
 EXPORT_SYMBOL_GPL (__inet_lookup_listener)
 
struct sock__inet_lookup_established (struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, const __be16 sport, const __be32 daddr, const u16 hnum, const int dif)
 
 EXPORT_SYMBOL_GPL (__inet_lookup_established)
 
int __inet_hash_nolisten (struct sock *sk, struct inet_timewait_sock *tw)
 
 EXPORT_SYMBOL_GPL (__inet_hash_nolisten)
 
void inet_hash (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet_hash)
 
void inet_unhash (struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet_unhash)
 
int __inet_hash_connect (struct inet_timewait_death_row *death_row, struct sock *sk, u32 port_offset, int(*check_established)(struct inet_timewait_death_row *, struct sock *, __u16, struct inet_timewait_sock **), int(*hash)(struct sock *sk, struct inet_timewait_sock *twp))
 
int inet_hash_connect (struct inet_timewait_death_row *death_row, struct sock *sk)
 
 EXPORT_SYMBOL_GPL (inet_hash_connect)
 
void inet_hashinfo_init (struct inet_hashinfo *h)
 
 EXPORT_SYMBOL_GPL (inet_hashinfo_init)
 

Function Documentation

int __inet_hash_connect ( struct inet_timewait_death_row death_row,
struct sock sk,
u32  port_offset,
int(*)(struct inet_timewait_death_row *, struct sock *, __u16, struct inet_timewait_sock **)  check_established,
int(*)(struct sock *sk, struct inet_timewait_sock *twp)  hash 
)

Definition at line 454 of file inet_hashtables.c.

int __inet_hash_nolisten ( struct sock sk,
struct inet_timewait_sock tw 
)

Definition at line 376 of file inet_hashtables.c.

int __inet_inherit_port ( struct sock sk,
struct sock child 
)

Definition at line 105 of file inet_hashtables.c.

struct sock* __inet_lookup_established ( struct net net,
struct inet_hashinfo hashinfo,
const __be32  saddr,
const __be16  sport,
const __be32  daddr,
const u16  hnum,
const int  dif 
)
read

Definition at line 220 of file inet_hashtables.c.

struct sock* __inet_lookup_listener ( struct net net,
struct inet_hashinfo hashinfo,
const __be32  daddr,
const unsigned short  hnum,
const int  dif 
)
read

Definition at line 177 of file inet_hashtables.c.

EXPORT_SYMBOL ( inet_put_port  )
EXPORT_SYMBOL_GPL ( __inet_inherit_port  )
EXPORT_SYMBOL_GPL ( __inet_lookup_listener  )
EXPORT_SYMBOL_GPL ( __inet_lookup_established  )
EXPORT_SYMBOL_GPL ( __inet_hash_nolisten  )
EXPORT_SYMBOL_GPL ( inet_hash  )
EXPORT_SYMBOL_GPL ( inet_unhash  )
EXPORT_SYMBOL_GPL ( inet_hash_connect  )
EXPORT_SYMBOL_GPL ( inet_hashinfo_init  )
struct inet_bind_bucket* inet_bind_bucket_create ( struct kmem_cache cachep,
struct net net,
struct inet_bind_hashbucket head,
const unsigned short  snum 
)
read

Definition at line 31 of file inet_hashtables.c.

void inet_bind_bucket_destroy ( struct kmem_cache cachep,
struct inet_bind_bucket tb 
)

Definition at line 52 of file inet_hashtables.c.

void inet_bind_hash ( struct sock sk,
struct inet_bind_bucket tb,
const unsigned short  snum 
)

Definition at line 61 of file inet_hashtables.c.

void inet_hash ( struct sock sk)

Definition at line 422 of file inet_hashtables.c.

int inet_hash_connect ( struct inet_timewait_death_row death_row,
struct sock sk 
)

Definition at line 565 of file inet_hashtables.c.

void inet_hashinfo_init ( struct inet_hashinfo h)

Definition at line 573 of file inet_hashtables.c.

void inet_put_port ( struct sock sk)

Definition at line 97 of file inet_hashtables.c.

void inet_unhash ( struct sock sk)

Definition at line 432 of file inet_hashtables.c.