Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ip_vs.h File Reference
#include <linux/ip_vs.h>
#include <asm/types.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <linux/compiler.h>
#include <linux/timer.h>
#include <linux/bug.h>
#include <net/checksum.h>
#include <linux/netfilter.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <net/ipv6.h>
#include <net/net_namespace.h>

Go to the source code of this file.

Data Structures

struct  ip_vs_iphdr
 
struct  ip_vs_seq
 
struct  ip_vs_counters
 
struct  ip_vs_cpu_stats
 
struct  ip_vs_estimator
 
struct  ip_vs_stats
 
struct  ip_vs_protocol
 
struct  ip_vs_proto_data
 
struct  ip_vs_conn_param
 
struct  ip_vs_conn
 
struct  ip_vs_service_user_kern
 
struct  ip_vs_dest_user_kern
 
struct  ip_vs_service
 
struct  ip_vs_dest
 
struct  ip_vs_scheduler
 
struct  ip_vs_pe
 
struct  ip_vs_app
 
struct  ipvs_master_sync_state
 
struct  netns_ipvs
 

Macros

#define IP_VS_DBG_BUF(level, msg...)   do {} while (0)
 
#define IP_VS_ERR_BUF(msg...)   do {} while (0)
 
#define IP_VS_DBG(level, msg...)   do {} while (0)
 
#define IP_VS_DBG_RL(msg...)   do {} while (0)
 
#define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg)   do {} while (0)
 
#define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg)   do {} while (0)
 
#define IP_VS_BUG()   BUG()
 
#define IP_VS_ERR_RL(msg,...)
 
#define EnterFunction(level)   do {} while (0)
 
#define LeaveFunction(level)   do {} while (0)
 
#define IP_VS_WAIT_WHILE(expr)   while (expr) { cpu_relax(); }
 
#define FTPPORT   cpu_to_be16(21)
 
#define FTPDATA   cpu_to_be16(20)
 
#define IP_VS_RTAB_BITS   4
 
#define IP_VS_RTAB_SIZE   (1 << IP_VS_RTAB_BITS)
 
#define IP_VS_RTAB_MASK   (IP_VS_RTAB_SIZE - 1)
 
#define IP_VS_PROTO_TAB_SIZE   32 /* must be power of 2 */
 
#define DEFAULT_SYNC_THRESHOLD   3
 
#define DEFAULT_SYNC_PERIOD   50
 
#define DEFAULT_SYNC_VER   1
 
#define DEFAULT_SYNC_REFRESH_PERIOD   (0U * HZ)
 
#define DEFAULT_SYNC_RETRIES   0
 
#define IPVS_SYNC_WAKEUP_RATE   8
 
#define IPVS_SYNC_QLEN_MAX   (IPVS_SYNC_WAKEUP_RATE * 4)
 
#define IPVS_SYNC_SEND_DELAY   (HZ / 50)
 
#define IPVS_SYNC_CHECK_PERIOD   HZ
 
#define IPVS_SYNC_FLUSH_TIME   (HZ * 2)
 
#define IPVS_SYNC_PORTS_MAX   (1 << 6)
 
#define IP_VS_INIT_HASH_TABLE(t)   ip_vs_init_hash_table((t), ARRAY_SIZE((t)))
 
#define IP_VS_APP_TYPE_FTP   1
 
#define IP_VS_APP_MAX_PORTS   8
 
#define ip_vs_pe_get(pe)
 
#define ip_vs_pe_put(pe)
 
#define IP_VS_FWD_METHOD(cp)   (cp->flags & IP_VS_CONN_F_FWD_MASK)
 

Enumerations

enum  {
  IP_VS_TCP_S_NONE = 0, IP_VS_TCP_S_ESTABLISHED, IP_VS_TCP_S_SYN_SENT, IP_VS_TCP_S_SYN_RECV,
  IP_VS_TCP_S_FIN_WAIT, IP_VS_TCP_S_TIME_WAIT, IP_VS_TCP_S_CLOSE, IP_VS_TCP_S_CLOSE_WAIT,
  IP_VS_TCP_S_LAST_ACK, IP_VS_TCP_S_LISTEN, IP_VS_TCP_S_SYNACK, IP_VS_TCP_S_LAST
}
 
enum  { IP_VS_UDP_S_NORMAL, IP_VS_UDP_S_LAST }
 
enum  { IP_VS_ICMP_S_NORMAL, IP_VS_ICMP_S_LAST }
 
enum  ip_vs_sctp_states {
  IP_VS_SCTP_S_NONE, IP_VS_SCTP_S_INIT_CLI, IP_VS_SCTP_S_INIT_SER, IP_VS_SCTP_S_INIT_ACK_CLI,
  IP_VS_SCTP_S_INIT_ACK_SER, IP_VS_SCTP_S_ECHO_CLI, IP_VS_SCTP_S_ECHO_SER, IP_VS_SCTP_S_ESTABLISHED,
  IP_VS_SCTP_S_SHUT_CLI, IP_VS_SCTP_S_SHUT_SER, IP_VS_SCTP_S_SHUT_ACK_CLI, IP_VS_SCTP_S_SHUT_ACK_SER,
  IP_VS_SCTP_S_CLOSED, IP_VS_SCTP_S_LAST
}
 
enum  { IP_VS_DIR_INPUT = 0, IP_VS_DIR_OUTPUT, IP_VS_DIR_INPUT_ONLY, IP_VS_DIR_LAST }
 

Functions

struct ip_vs_protocolip_vs_proto_get (unsigned short proto)
 
struct ip_vs_proto_dataip_vs_proto_data_get (struct net *net, unsigned short proto)
 
const charip_vs_proto_name (unsigned int proto)
 
void ip_vs_init_hash_table (struct list_head *table, int rows)
 
struct ip_vs_connip_vs_conn_in_get (const struct ip_vs_conn_param *p)
 
struct ip_vs_connip_vs_ct_in_get (const struct ip_vs_conn_param *p)
 
struct ip_vs_connip_vs_conn_in_get_proto (int af, const struct sk_buff *skb, const struct ip_vs_iphdr *iph, unsigned int proto_off, int inverse)
 
struct ip_vs_connip_vs_conn_out_get (const struct ip_vs_conn_param *p)
 
struct ip_vs_connip_vs_conn_out_get_proto (int af, const struct sk_buff *skb, const struct ip_vs_iphdr *iph, unsigned int proto_off, int inverse)
 
void ip_vs_conn_put (struct ip_vs_conn *cp)
 
void ip_vs_conn_fill_cport (struct ip_vs_conn *cp, __be16 cport)
 
struct ip_vs_connip_vs_conn_new (const struct ip_vs_conn_param *p, const union nf_inet_addr *daddr, __be16 dport, unsigned int flags, struct ip_vs_dest *dest, __u32 fwmark)
 
void ip_vs_conn_expire_now (struct ip_vs_conn *cp)
 
const charip_vs_state_name (__u16 proto, int state)
 
void ip_vs_tcp_conn_listen (struct net *net, struct ip_vs_conn *cp)
 
int ip_vs_check_template (struct ip_vs_conn *ct)
 
void ip_vs_random_dropentry (struct net *net)
 
int ip_vs_conn_init (void)
 
void ip_vs_conn_cleanup (void)
 
int ip_vs_estimator_net_init (struct net *net)
 
int ip_vs_control_net_init (struct net *net)
 
int ip_vs_protocol_net_init (struct net *net)
 
int ip_vs_app_net_init (struct net *net)
 
int ip_vs_conn_net_init (struct net *net)
 
int ip_vs_sync_net_init (struct net *net)
 
void ip_vs_conn_net_cleanup (struct net *net)
 
void ip_vs_app_net_cleanup (struct net *net)
 
void ip_vs_protocol_net_cleanup (struct net *net)
 
void ip_vs_control_net_cleanup (struct net *net)
 
void ip_vs_estimator_net_cleanup (struct net *net)
 
void ip_vs_sync_net_cleanup (struct net *net)
 
void ip_vs_service_net_cleanup (struct net *net)
 
struct ip_vs_appregister_ip_vs_app (struct net *net, struct ip_vs_app *app)
 
void unregister_ip_vs_app (struct net *net, struct ip_vs_app *app)
 
int ip_vs_bind_app (struct ip_vs_conn *cp, struct ip_vs_protocol *pp)
 
void ip_vs_unbind_app (struct ip_vs_conn *cp)
 
int register_ip_vs_app_inc (struct net *net, struct ip_vs_app *app, __u16 proto, __u16 port)
 
int ip_vs_app_inc_get (struct ip_vs_app *inc)
 
void ip_vs_app_inc_put (struct ip_vs_app *inc)
 
int ip_vs_app_pkt_out (struct ip_vs_conn *, struct sk_buff *skb)
 
int ip_vs_app_pkt_in (struct ip_vs_conn *, struct sk_buff *skb)
 
void ip_vs_bind_pe (struct ip_vs_service *svc, struct ip_vs_pe *pe)
 
void ip_vs_unbind_pe (struct ip_vs_service *svc)
 
int register_ip_vs_pe (struct ip_vs_pe *pe)
 
int unregister_ip_vs_pe (struct ip_vs_pe *pe)
 
struct ip_vs_peip_vs_pe_getbyname (const char *name)
 
struct ip_vs_pe__ip_vs_pe_getbyname (const char *pe_name)
 
int ip_vs_protocol_init (void)
 
void ip_vs_protocol_cleanup (void)
 
void ip_vs_protocol_timeout_change (struct netns_ipvs *ipvs, int flags)
 
intip_vs_create_timeout_table (int *table, int size)
 
int ip_vs_set_state_timeout (int *table, int num, const char *const *names, const char *name, int to)
 
void ip_vs_tcpudp_debug_packet (int af, struct ip_vs_protocol *pp, const struct sk_buff *skb, int offset, const char *msg)
 
int register_ip_vs_scheduler (struct ip_vs_scheduler *scheduler)
 
int unregister_ip_vs_scheduler (struct ip_vs_scheduler *scheduler)
 
int ip_vs_bind_scheduler (struct ip_vs_service *svc, struct ip_vs_scheduler *scheduler)
 
int ip_vs_unbind_scheduler (struct ip_vs_service *svc)
 
struct ip_vs_schedulerip_vs_scheduler_get (const char *sched_name)
 
void ip_vs_scheduler_put (struct ip_vs_scheduler *scheduler)
 
struct ip_vs_connip_vs_schedule (struct ip_vs_service *svc, struct sk_buff *skb, struct ip_vs_proto_data *pd, int *ignored)
 
int ip_vs_leave (struct ip_vs_service *svc, struct sk_buff *skb, struct ip_vs_proto_data *pd)
 
void ip_vs_scheduler_err (struct ip_vs_service *svc, const char *msg)
 
struct ip_vs_serviceip_vs_service_get (struct net *net, int af, __u32 fwmark, __u16 protocol, const union nf_inet_addr *vaddr, __be16 vport)
 
struct ip_vs_destip_vs_lookup_real_service (struct net *net, int af, __u16 protocol, const union nf_inet_addr *daddr, __be16 dport)
 
int ip_vs_use_count_inc (void)
 
void ip_vs_use_count_dec (void)
 
int ip_vs_register_nl_ioctl (void)
 
void ip_vs_unregister_nl_ioctl (void)
 
int ip_vs_control_init (void)
 
void ip_vs_control_cleanup (void)
 
struct ip_vs_destip_vs_find_dest (struct net *net, int af, const union nf_inet_addr *daddr, __be16 dport, const union nf_inet_addr *vaddr, __be16 vport, __u16 protocol, __u32 fwmark, __u32 flags)
 
struct ip_vs_destip_vs_try_bind_dest (struct ip_vs_conn *cp)
 
int start_sync_thread (struct net *net, int state, char *mcast_ifn, __u8 syncid)
 
int stop_sync_thread (struct net *net, int state)
 
void ip_vs_sync_conn (struct net *net, struct ip_vs_conn *cp, int pkts)
 
void ip_vs_start_estimator (struct net *net, struct ip_vs_stats *stats)
 
void ip_vs_stop_estimator (struct net *net, struct ip_vs_stats *stats)
 
void ip_vs_zero_estimator (struct ip_vs_stats *stats)
 
void ip_vs_read_estimator (struct ip_vs_stats_user *dst, struct ip_vs_stats *stats)
 
int ip_vs_null_xmit (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp)
 
int ip_vs_bypass_xmit (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp)
 
int ip_vs_nat_xmit (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp)
 
int ip_vs_tunnel_xmit (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp)
 
int ip_vs_dr_xmit (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp)
 
int ip_vs_icmp_xmit (struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, int offset, unsigned int hooknum)
 
void ip_vs_dst_reset (struct ip_vs_dest *dest)
 
void ip_vs_nat_icmp (struct sk_buff *skb, struct ip_vs_protocol *pp, struct ip_vs_conn *cp, int dir)
 
__sum16 ip_vs_checksum_complete (struct sk_buff *skb, int offset)
 

Variables

int ip_vs_conn_tab_size
 
struct ip_vs_protocol ip_vs_protocol_tcp
 
struct ip_vs_protocol ip_vs_protocol_udp
 
struct ip_vs_protocol ip_vs_protocol_icmp
 
struct ip_vs_protocol ip_vs_protocol_esp
 
struct ip_vs_protocol ip_vs_protocol_ah
 
struct ip_vs_protocol ip_vs_protocol_sctp
 
struct ip_vs_stats ip_vs_stats
 
int sysctl_ip_vs_sync_ver
 

Macro Definition Documentation

#define DEFAULT_SYNC_PERIOD   50

Definition at line 925 of file ip_vs.h.

#define DEFAULT_SYNC_REFRESH_PERIOD   (0U * HZ)

Definition at line 927 of file ip_vs.h.

#define DEFAULT_SYNC_RETRIES   0

Definition at line 928 of file ip_vs.h.

#define DEFAULT_SYNC_THRESHOLD   3

Definition at line 924 of file ip_vs.h.

#define DEFAULT_SYNC_VER   1

Definition at line 926 of file ip_vs.h.

#define EnterFunction (   level)    do {} while (0)

Definition at line 253 of file ip_vs.h.

#define FTPDATA   cpu_to_be16(20)

Definition at line 264 of file ip_vs.h.

#define FTPPORT   cpu_to_be16(21)

Definition at line 263 of file ip_vs.h.

#define IP_VS_APP_MAX_PORTS   8

Definition at line 1190 of file ip_vs.h.

#define IP_VS_APP_TYPE_FTP   1

Definition at line 1040 of file ip_vs.h.

#define IP_VS_BUG ( )    BUG()

Definition at line 230 of file ip_vs.h.

#define IP_VS_DBG (   level,
  msg... 
)    do {} while (0)

Definition at line 224 of file ip_vs.h.

#define IP_VS_DBG_BUF (   level,
  msg... 
)    do {} while (0)

Definition at line 222 of file ip_vs.h.

#define IP_VS_DBG_PKT (   level,
  af,
  pp,
  skb,
  ofs,
  msg 
)    do {} while (0)

Definition at line 226 of file ip_vs.h.

#define IP_VS_DBG_RL (   msg...)    do {} while (0)

Definition at line 225 of file ip_vs.h.

#define IP_VS_DBG_RL_PKT (   level,
  af,
  pp,
  skb,
  ofs,
  msg 
)    do {} while (0)

Definition at line 227 of file ip_vs.h.

#define IP_VS_ERR_BUF (   msg...)    do {} while (0)

Definition at line 223 of file ip_vs.h.

#define IP_VS_ERR_RL (   msg,
  ... 
)
Value:
do { \
if (net_ratelimit()) \
pr_err(msg, ##__VA_ARGS__); \
} while (0)

Definition at line 231 of file ip_vs.h.

#define IP_VS_FWD_METHOD (   cp)    (cp->flags & IP_VS_CONN_F_FWD_MASK)

Definition at line 1370 of file ip_vs.h.

#define IP_VS_INIT_HASH_TABLE (   t)    ip_vs_init_hash_table((t), ARRAY_SIZE((t)))

Definition at line 1038 of file ip_vs.h.

#define ip_vs_pe_get (   pe)
Value:
if (pe && pe->module) \
__module_get(pe->module);

Definition at line 1214 of file ip_vs.h.

#define ip_vs_pe_put (   pe)
Value:
if (pe && pe->module) \
module_put(pe->module);

Definition at line 1218 of file ip_vs.h.

#define IP_VS_PROTO_TAB_SIZE   32 /* must be power of 2 */

Definition at line 812 of file ip_vs.h.

#define IP_VS_RTAB_BITS   4

Definition at line 804 of file ip_vs.h.

#define IP_VS_RTAB_MASK   (IP_VS_RTAB_SIZE - 1)

Definition at line 806 of file ip_vs.h.

#define IP_VS_RTAB_SIZE   (1 << IP_VS_RTAB_BITS)

Definition at line 805 of file ip_vs.h.

#define IP_VS_WAIT_WHILE (   expr)    while (expr) { cpu_relax(); }

Definition at line 257 of file ip_vs.h.

#define IPVS_SYNC_CHECK_PERIOD   HZ

Definition at line 932 of file ip_vs.h.

#define IPVS_SYNC_FLUSH_TIME   (HZ * 2)

Definition at line 933 of file ip_vs.h.

#define IPVS_SYNC_PORTS_MAX   (1 << 6)

Definition at line 934 of file ip_vs.h.

#define IPVS_SYNC_QLEN_MAX   (IPVS_SYNC_WAKEUP_RATE * 4)

Definition at line 930 of file ip_vs.h.

#define IPVS_SYNC_SEND_DELAY   (HZ / 50)

Definition at line 931 of file ip_vs.h.

#define IPVS_SYNC_WAKEUP_RATE   8

Definition at line 929 of file ip_vs.h.

#define LeaveFunction (   level)    do {} while (0)

Definition at line 254 of file ip_vs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
IP_VS_TCP_S_NONE 
IP_VS_TCP_S_ESTABLISHED 
IP_VS_TCP_S_SYN_SENT 
IP_VS_TCP_S_SYN_RECV 
IP_VS_TCP_S_FIN_WAIT 
IP_VS_TCP_S_TIME_WAIT 
IP_VS_TCP_S_CLOSE 
IP_VS_TCP_S_CLOSE_WAIT 
IP_VS_TCP_S_LAST_ACK 
IP_VS_TCP_S_LISTEN 
IP_VS_TCP_S_SYNACK 
IP_VS_TCP_S_LAST 

Definition at line 269 of file ip_vs.h.

anonymous enum
Enumerator:
IP_VS_UDP_S_NORMAL 
IP_VS_UDP_S_LAST 

Definition at line 287 of file ip_vs.h.

anonymous enum
Enumerator:
IP_VS_ICMP_S_NORMAL 
IP_VS_ICMP_S_LAST 

Definition at line 295 of file ip_vs.h.

anonymous enum
Enumerator:
IP_VS_DIR_INPUT 
IP_VS_DIR_OUTPUT 
IP_VS_DIR_INPUT_ONLY 
IP_VS_DIR_LAST 

Definition at line 1047 of file ip_vs.h.

Enumerator:
IP_VS_SCTP_S_NONE 
IP_VS_SCTP_S_INIT_CLI 
IP_VS_SCTP_S_INIT_SER 
IP_VS_SCTP_S_INIT_ACK_CLI 
IP_VS_SCTP_S_INIT_ACK_SER 
IP_VS_SCTP_S_ECHO_CLI 
IP_VS_SCTP_S_ECHO_SER 
IP_VS_SCTP_S_ESTABLISHED 
IP_VS_SCTP_S_SHUT_CLI 
IP_VS_SCTP_S_SHUT_SER 
IP_VS_SCTP_S_SHUT_ACK_CLI 
IP_VS_SCTP_S_SHUT_ACK_SER 
IP_VS_SCTP_S_CLOSED 
IP_VS_SCTP_S_LAST 

Definition at line 303 of file ip_vs.h.

Function Documentation

struct ip_vs_pe* __ip_vs_pe_getbyname ( const char pe_name)
read

Definition at line 32 of file ip_vs_pe.c.

int ip_vs_app_inc_get ( struct ip_vs_app inc)

Definition at line 143 of file ip_vs_app.c.

void ip_vs_app_inc_put ( struct ip_vs_app inc)

Definition at line 157 of file ip_vs_app.c.

void ip_vs_app_net_cleanup ( struct net net)

Definition at line 612 of file ip_vs_app.c.

int ip_vs_app_net_init ( struct net net)

Definition at line 603 of file ip_vs_app.c.

int ip_vs_app_pkt_in ( struct ip_vs_conn ,
struct sk_buff skb 
)

Definition at line 479 of file ip_vs_app.c.

int ip_vs_app_pkt_out ( struct ip_vs_conn ,
struct sk_buff skb 
)

Definition at line 404 of file ip_vs_app.c.

int ip_vs_bind_app ( struct ip_vs_conn cp,
struct ip_vs_protocol pp 
)

Definition at line 253 of file ip_vs_app.c.

void ip_vs_bind_pe ( struct ip_vs_service svc,
struct ip_vs_pe pe 
)

Definition at line 20 of file ip_vs_pe.c.

int ip_vs_bind_scheduler ( struct ip_vs_service svc,
struct ip_vs_scheduler scheduler 
)

Definition at line 45 of file ip_vs_sched.c.

int ip_vs_bypass_xmit ( struct sk_buff skb,
struct ip_vs_conn cp,
struct ip_vs_protocol pp 
)

Definition at line 443 of file ip_vs_xmit.c.

int ip_vs_check_template ( struct ip_vs_conn ct)

Definition at line 728 of file ip_vs_conn.c.

__sum16 ip_vs_checksum_complete ( struct sk_buff skb,
int  offset 
)

Definition at line 633 of file ip_vs_core.c.

void ip_vs_conn_cleanup ( void  )

Definition at line 1355 of file ip_vs_conn.c.

void ip_vs_conn_expire_now ( struct ip_vs_conn cp)

Definition at line 848 of file ip_vs_conn.c.

void ip_vs_conn_fill_cport ( struct ip_vs_conn cp,
__be16  cport 
)

Definition at line 463 of file ip_vs_conn.c.

struct ip_vs_conn* ip_vs_conn_in_get ( const struct ip_vs_conn_param p)
read

Definition at line 288 of file ip_vs_conn.c.

struct ip_vs_conn* ip_vs_conn_in_get_proto ( int  af,
const struct sk_buff skb,
const struct ip_vs_iphdr iph,
unsigned int  proto_off,
int  inverse 
)
read

Definition at line 331 of file ip_vs_conn.c.

int ip_vs_conn_init ( void  )

Definition at line 1311 of file ip_vs_conn.c.

void ip_vs_conn_net_cleanup ( struct net net)

Definition at line 1303 of file ip_vs_conn.c.

int ip_vs_conn_net_init ( struct net net)

Definition at line 1292 of file ip_vs_conn.c.

struct ip_vs_conn* ip_vs_conn_new ( const struct ip_vs_conn_param p,
const union nf_inet_addr daddr,
__be16  dport,
unsigned int  flags,
struct ip_vs_dest dest,
__u32  fwmark 
)
read

Definition at line 859 of file ip_vs_conn.c.

struct ip_vs_conn* ip_vs_conn_out_get ( const struct ip_vs_conn_param p)
read

Definition at line 395 of file ip_vs_conn.c.

struct ip_vs_conn* ip_vs_conn_out_get_proto ( int  af,
const struct sk_buff skb,
const struct ip_vs_iphdr iph,
unsigned int  proto_off,
int  inverse 
)
read

Definition at line 434 of file ip_vs_conn.c.

void ip_vs_conn_put ( struct ip_vs_conn cp)

Definition at line 450 of file ip_vs_conn.c.

void ip_vs_control_cleanup ( void  )

Definition at line 3880 of file ip_vs_ctl.c.

int ip_vs_control_init ( void  )

Definition at line 3856 of file ip_vs_ctl.c.

void ip_vs_control_net_cleanup ( struct net net)

Definition at line 3814 of file ip_vs_ctl.c.

int ip_vs_control_net_init ( struct net net)

Definition at line 3777 of file ip_vs_ctl.c.

int* ip_vs_create_timeout_table ( int table,
int  size 
)

Definition at line 200 of file ip_vs_proto.c.

struct ip_vs_conn* ip_vs_ct_in_get ( const struct ip_vs_conn_param p)
read

Definition at line 345 of file ip_vs_conn.c.

int ip_vs_dr_xmit ( struct sk_buff skb,
struct ip_vs_conn cp,
struct ip_vs_protocol pp 
)

Definition at line 1055 of file ip_vs_xmit.c.

void ip_vs_dst_reset ( struct ip_vs_dest dest)

Definition at line 374 of file ip_vs_xmit.c.

void ip_vs_estimator_net_cleanup ( struct net net)

Definition at line 206 of file ip_vs_est.c.

int ip_vs_estimator_net_init ( struct net net)

Definition at line 195 of file ip_vs_est.c.

struct ip_vs_dest* ip_vs_find_dest ( struct net net,
int  af,
const union nf_inet_addr daddr,
__be16  dport,
const union nf_inet_addr vaddr,
__be16  vport,
__u16  protocol,
__u32  fwmark,
__u32  flags 
)
read

Definition at line 617 of file ip_vs_ctl.c.

int ip_vs_icmp_xmit ( struct sk_buff skb,
struct ip_vs_conn cp,
struct ip_vs_protocol pp,
int  offset,
unsigned int  hooknum 
)

Definition at line 1185 of file ip_vs_xmit.c.

void ip_vs_init_hash_table ( struct list_head table,
int  rows 
)

Definition at line 108 of file ip_vs_core.c.

int ip_vs_leave ( struct ip_vs_service svc,
struct sk_buff skb,
struct ip_vs_proto_data pd 
)

Definition at line 498 of file ip_vs_core.c.

struct ip_vs_dest* ip_vs_lookup_real_service ( struct net net,
int  af,
__u16  protocol,
const union nf_inet_addr daddr,
__be16  dport 
)
read

Definition at line 552 of file ip_vs_ctl.c.

void ip_vs_nat_icmp ( struct sk_buff skb,
struct ip_vs_protocol pp,
struct ip_vs_conn cp,
int  dir 
)

Definition at line 685 of file ip_vs_core.c.

int ip_vs_nat_xmit ( struct sk_buff skb,
struct ip_vs_conn cp,
struct ip_vs_protocol pp 
)

Definition at line 561 of file ip_vs_xmit.c.

int ip_vs_null_xmit ( struct sk_buff skb,
struct ip_vs_conn cp,
struct ip_vs_protocol pp 
)

Definition at line 429 of file ip_vs_xmit.c.

struct ip_vs_pe* ip_vs_pe_getbyname ( const char name)
read

Definition at line 62 of file ip_vs_pe.c.

struct ip_vs_proto_data* ip_vs_proto_data_get ( struct net net,
unsigned short  proto 
)
read

Definition at line 174 of file ip_vs_proto.c.

struct ip_vs_protocol* ip_vs_proto_get ( unsigned short  proto)
read

Definition at line 142 of file ip_vs_proto.c.

const char* ip_vs_proto_name ( unsigned int  proto)

Definition at line 83 of file ip_vs_core.c.

void ip_vs_protocol_cleanup ( void  )

Definition at line 399 of file ip_vs_proto.c.

int ip_vs_protocol_init ( void  )

Definition at line 366 of file ip_vs_proto.c.

void ip_vs_protocol_net_cleanup ( struct net net)

Definition at line 353 of file ip_vs_proto.c.

int ip_vs_protocol_net_init ( struct net net)

Definition at line 320 of file ip_vs_proto.c.

void ip_vs_protocol_timeout_change ( struct netns_ipvs ipvs,
int  flags 
)

Definition at line 185 of file ip_vs_proto.c.

void ip_vs_random_dropentry ( struct net net)

Definition at line 1197 of file ip_vs_conn.c.

void ip_vs_read_estimator ( struct ip_vs_stats_user dst,
struct ip_vs_stats stats 
)

Definition at line 183 of file ip_vs_est.c.

int ip_vs_register_nl_ioctl ( void  )

Definition at line 3827 of file ip_vs_ctl.c.

struct ip_vs_conn* ip_vs_schedule ( struct ip_vs_service svc,
struct sk_buff skb,
struct ip_vs_proto_data pd,
int ignored 
)
read

Definition at line 394 of file ip_vs_core.c.

void ip_vs_scheduler_err ( struct ip_vs_service svc,
const char msg 
)

Definition at line 154 of file ip_vs_sched.c.

struct ip_vs_scheduler* ip_vs_scheduler_get ( const char sched_name)
read

Definition at line 124 of file ip_vs_sched.c.

void ip_vs_scheduler_put ( struct ip_vs_scheduler scheduler)

Definition at line 144 of file ip_vs_sched.c.

struct ip_vs_service* ip_vs_service_get ( struct net net,
int  af,
__u32  fwmark,
__u16  protocol,
const union nf_inet_addr vaddr,
__be16  vport 
)
read

Definition at line 409 of file ip_vs_ctl.c.

void ip_vs_service_net_cleanup ( struct net net)

Definition at line 1488 of file ip_vs_ctl.c.

int ip_vs_set_state_timeout ( int table,
int  num,
const char *const names,
const char name,
int  to 
)

Definition at line 210 of file ip_vs_proto.c.

void ip_vs_start_estimator ( struct net net,
struct ip_vs_stats stats 
)

Definition at line 142 of file ip_vs_est.c.

const char* ip_vs_state_name ( __u16  proto,
int  state 
)

Definition at line 228 of file ip_vs_proto.c.

void ip_vs_stop_estimator ( struct net net,
struct ip_vs_stats stats 
)

Definition at line 154 of file ip_vs_est.c.

void ip_vs_sync_conn ( struct net net,
struct ip_vs_conn cp,
int  pkts 
)

Definition at line 611 of file ip_vs_sync.c.

void ip_vs_sync_net_cleanup ( struct net net)

Definition at line 1931 of file ip_vs_sync.c.

int ip_vs_sync_net_init ( struct net net)

Definition at line 1921 of file ip_vs_sync.c.

void ip_vs_tcp_conn_listen ( struct net net,
struct ip_vs_conn cp 
)

Definition at line 665 of file ip_vs_proto_tcp.c.

void ip_vs_tcpudp_debug_packet ( int  af,
struct ip_vs_protocol pp,
const struct sk_buff skb,
int  offset,
const char msg 
)

Definition at line 304 of file ip_vs_proto.c.

struct ip_vs_dest* ip_vs_try_bind_dest ( struct ip_vs_conn cp)
read

Definition at line 615 of file ip_vs_conn.c.

int ip_vs_tunnel_xmit ( struct sk_buff skb,
struct ip_vs_conn cp,
struct ip_vs_protocol pp 
)

Definition at line 814 of file ip_vs_xmit.c.

void ip_vs_unbind_app ( struct ip_vs_conn cp)

Definition at line 263 of file ip_vs_app.c.

void ip_vs_unbind_pe ( struct ip_vs_service svc)

Definition at line 26 of file ip_vs_pe.c.

int ip_vs_unbind_scheduler ( struct ip_vs_service svc)

Definition at line 67 of file ip_vs_sched.c.

void ip_vs_unregister_nl_ioctl ( void  )

Definition at line 3850 of file ip_vs_ctl.c.

void ip_vs_use_count_dec ( void  )

Definition at line 246 of file ip_vs_ctl.c.

int ip_vs_use_count_inc ( void  )

Definition at line 240 of file ip_vs_ctl.c.

void ip_vs_zero_estimator ( struct ip_vs_stats stats)

Definition at line 164 of file ip_vs_est.c.

struct ip_vs_app* register_ip_vs_app ( struct net net,
struct ip_vs_app app 
)
read

Definition at line 184 of file ip_vs_app.c.

int register_ip_vs_app_inc ( struct net net,
struct ip_vs_app app,
__u16  proto,
__u16  port 
)

Definition at line 168 of file ip_vs_app.c.

int register_ip_vs_pe ( struct ip_vs_pe pe)

Definition at line 79 of file ip_vs_pe.c.

int register_ip_vs_scheduler ( struct ip_vs_scheduler scheduler)

Definition at line 178 of file ip_vs_sched.c.

int start_sync_thread ( struct net net,
int  state,
char mcast_ifn,
__u8  syncid 
)

Definition at line 1712 of file ip_vs_sync.c.

int stop_sync_thread ( struct net net,
int  state 
)

Definition at line 1853 of file ip_vs_sync.c.

void unregister_ip_vs_app ( struct net net,
struct ip_vs_app app 
)

Definition at line 222 of file ip_vs_app.c.

int unregister_ip_vs_pe ( struct ip_vs_pe pe)

Definition at line 119 of file ip_vs_pe.c.

int unregister_ip_vs_scheduler ( struct ip_vs_scheduler scheduler)

Definition at line 233 of file ip_vs_sched.c.

Variable Documentation

int ip_vs_conn_tab_size
struct ip_vs_protocol ip_vs_protocol_ah
struct ip_vs_protocol ip_vs_protocol_esp
struct ip_vs_protocol ip_vs_protocol_icmp
struct ip_vs_protocol ip_vs_protocol_sctp

Definition at line 1111 of file ip_vs_proto_sctp.c.

struct ip_vs_protocol ip_vs_protocol_tcp

Definition at line 700 of file ip_vs_proto_tcp.c.

struct ip_vs_protocol ip_vs_protocol_udp

Definition at line 489 of file ip_vs_proto_udp.c.

int sysctl_ip_vs_sync_ver