Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ip_vs_nfct.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/compiler.h>
#include <linux/vmalloc.h>
#include <linux/skbuff.h>
#include <net/ip.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <net/ip_vs.h>
#include <net/netfilter/nf_conntrack_core.h>
#include <net/netfilter/nf_conntrack_expect.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <net/netfilter/nf_conntrack_zones.h>

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "IPVS"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define FMT_TUPLE   "%pI4:%u->%pI4:%u/%u"
 
#define ARG_TUPLE(T)
 
#define FMT_CONN   "%pI4:%u->%pI4:%u->%pI4:%u/%u:%u"
 
#define ARG_CONN(C)
 

Functions

void ip_vs_update_conntrack (struct sk_buff *skb, struct ip_vs_conn *cp, int outin)
 
int ip_vs_confirm_conntrack (struct sk_buff *skb)
 
void ip_vs_nfct_expect_related (struct sk_buff *skb, struct nf_conn *ct, struct ip_vs_conn *cp, u_int8_t proto, const __be16 port, int from_rs)
 
 EXPORT_SYMBOL (ip_vs_nfct_expect_related)
 
void ip_vs_conn_drop_conntrack (struct ip_vs_conn *cp)
 

Macro Definition Documentation

#define ARG_CONN (   C)
Value:
&((C)->caddr.ip), ntohs((C)->cport), \
&((C)->vaddr.ip), ntohs((C)->vport), \
&((C)->daddr.ip), ntohs((C)->dport), \
(C)->protocol, (C)->state

Definition at line 76 of file ip_vs_nfct.c.

#define ARG_TUPLE (   T)
Value:
&(T)->src.u3.ip, ntohs((T)->src.u.all), \
&(T)->dst.u3.ip, ntohs((T)->dst.u.all), \
(T)->dst.protonum

Definition at line 71 of file ip_vs_nfct.c.

#define FMT_CONN   "%pI4:%u->%pI4:%u->%pI4:%u/%u:%u"

Definition at line 75 of file ip_vs_nfct.c.

#define FMT_TUPLE   "%pI4:%u->%pI4:%u/%u"

Definition at line 70 of file ip_vs_nfct.c.

#define KMSG_COMPONENT   "IPVS"

Definition at line 50 of file ip_vs_nfct.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 51 of file ip_vs_nfct.c.

Function Documentation

EXPORT_SYMBOL ( ip_vs_nfct_expect_related  )
int ip_vs_confirm_conntrack ( struct sk_buff skb)

Definition at line 130 of file ip_vs_nfct.c.

void ip_vs_conn_drop_conntrack ( struct ip_vs_conn cp)

Definition at line 251 of file ip_vs_nfct.c.

void ip_vs_nfct_expect_related ( struct sk_buff skb,
struct nf_conn ct,
struct ip_vs_conn cp,
u_int8_t  proto,
const __be16  port,
int  from_rs 
)

Definition at line 220 of file ip_vs_nfct.c.

void ip_vs_update_conntrack ( struct sk_buff skb,
struct ip_vs_conn cp,
int  outin 
)

Definition at line 82 of file ip_vs_nfct.c.