Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip_vs_proto.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/gfp.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <net/protocol.h>
#include <net/tcp.h>
#include <net/udp.h>
#include <linux/stat.h>
#include <linux/proc_fs.h>
#include <net/ip_vs.h>

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "IPVS"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define IP_VS_PROTO_TAB_SIZE   32 /* must be power of 2 */
 
#define IP_VS_PROTO_HASH(proto)   ((proto) & (IP_VS_PROTO_TAB_SIZE-1))
 
#define REGISTER_PROTOCOL(p)
 

Functions

struct ip_vs_protocolip_vs_proto_get (unsigned short proto)
 
 EXPORT_SYMBOL (ip_vs_proto_get)
 
struct ip_vs_proto_dataip_vs_proto_data_get (struct net *net, unsigned short proto)
 
 EXPORT_SYMBOL (ip_vs_proto_data_get)
 
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)
 
const charip_vs_state_name (__u16 proto, int state)
 
void ip_vs_tcpudp_debug_packet (int af, struct ip_vs_protocol *pp, const struct sk_buff *skb, int offset, const char *msg)
 
int __net_init ip_vs_protocol_net_init (struct net *net)
 
void __net_exit ip_vs_protocol_net_cleanup (struct net *net)
 
int __init ip_vs_protocol_init (void)
 
void ip_vs_protocol_cleanup (void)
 

Macro Definition Documentation

#define IP_VS_PROTO_HASH (   proto)    ((proto) & (IP_VS_PROTO_TAB_SIZE-1))

Definition at line 41 of file ip_vs_proto.c.

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

Definition at line 40 of file ip_vs_proto.c.

#define KMSG_COMPONENT   "IPVS"

Definition at line 16 of file ip_vs_proto.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 17 of file ip_vs_proto.c.

#define REGISTER_PROTOCOL (   p)
Value:
do { \
register_ip_vs_protocol(p); \
strcat(protocols, ", "); \
strcat(protocols, (p)->name); \
} while (0)

Function Documentation

EXPORT_SYMBOL ( ip_vs_proto_get  )
EXPORT_SYMBOL ( ip_vs_proto_data_get  )
int* ip_vs_create_timeout_table ( int table,
int  size 
)

Definition at line 200 of file ip_vs_proto.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.

void ip_vs_protocol_cleanup ( void  )

Definition at line 399 of file ip_vs_proto.c.

int __init ip_vs_protocol_init ( void  )

Definition at line 366 of file ip_vs_proto.c.

void __net_exit ip_vs_protocol_net_cleanup ( struct net net)

Definition at line 353 of file ip_vs_proto.c.

int __net_init 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.

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.

const char* ip_vs_state_name ( __u16  proto,
int  state 
)

Definition at line 228 of file ip_vs_proto.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.