Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
em_meta.c File Reference
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/skbuff.h>
#include <linux/random.h>
#include <linux/if_vlan.h>
#include <linux/tc_ematch/tc_em_meta.h>
#include <net/dst.h>
#include <net/route.h>
#include <net/pkt_cls.h>
#include <net/sock.h>

Go to the source code of this file.

Data Structures

struct  meta_obj
 
struct  meta_value
 
struct  meta_match
 
struct  meta_ops
 
struct  meta_type_ops
 

Macros

#define META_COLLECTOR(FUNC)
 
#define SKIP_NONLOCAL(skb)
 
#define META_ID(name)   TCF_META_ID_##name
 
#define META_FUNC(name)   { .get = meta_##name }
 

Functions

 META_COLLECTOR (int_random)
 
 META_COLLECTOR (int_loadavg_0)
 
 META_COLLECTOR (int_loadavg_1)
 
 META_COLLECTOR (int_loadavg_2)
 
 META_COLLECTOR (int_dev)
 
 META_COLLECTOR (var_dev)
 
 META_COLLECTOR (int_vlan_tag)
 
 META_COLLECTOR (int_priority)
 
 META_COLLECTOR (int_protocol)
 
 META_COLLECTOR (int_pkttype)
 
 META_COLLECTOR (int_pktlen)
 
 META_COLLECTOR (int_datalen)
 
 META_COLLECTOR (int_maclen)
 
 META_COLLECTOR (int_rxhash)
 
 META_COLLECTOR (int_mark)
 
 META_COLLECTOR (int_tcindex)
 
 META_COLLECTOR (int_rtclassid)
 
 META_COLLECTOR (int_rtiif)
 
 META_COLLECTOR (int_sk_family)
 
 META_COLLECTOR (int_sk_state)
 
 META_COLLECTOR (int_sk_reuse)
 
 META_COLLECTOR (int_sk_bound_if)
 
 META_COLLECTOR (var_sk_bound_if)
 
 META_COLLECTOR (int_sk_refcnt)
 
 META_COLLECTOR (int_sk_rcvbuf)
 
 META_COLLECTOR (int_sk_shutdown)
 
 META_COLLECTOR (int_sk_proto)
 
 META_COLLECTOR (int_sk_type)
 
 META_COLLECTOR (int_sk_rmem_alloc)
 
 META_COLLECTOR (int_sk_wmem_alloc)
 
 META_COLLECTOR (int_sk_omem_alloc)
 
 META_COLLECTOR (int_sk_rcv_qlen)
 
 META_COLLECTOR (int_sk_snd_qlen)
 
 META_COLLECTOR (int_sk_wmem_queued)
 
 META_COLLECTOR (int_sk_fwd_alloc)
 
 META_COLLECTOR (int_sk_sndbuf)
 
 META_COLLECTOR (int_sk_alloc)
 
 META_COLLECTOR (int_sk_hash)
 
 META_COLLECTOR (int_sk_lingertime)
 
 META_COLLECTOR (int_sk_err_qlen)
 
 META_COLLECTOR (int_sk_ack_bl)
 
 META_COLLECTOR (int_sk_max_ack_bl)
 
 META_COLLECTOR (int_sk_prio)
 
 META_COLLECTOR (int_sk_rcvlowat)
 
 META_COLLECTOR (int_sk_rcvtimeo)
 
 META_COLLECTOR (int_sk_sndtimeo)
 
 META_COLLECTOR (int_sk_sendmsg_off)
 
 META_COLLECTOR (int_sk_write_pend)
 
 MODULE_LICENSE ("GPL")
 
 module_init (init_em_meta)
 
 module_exit (exit_em_meta)
 
 MODULE_ALIAS_TCF_EMATCH (TCF_EM_META)
 

Macro Definition Documentation

#define META_COLLECTOR (   FUNC)
Value:
static void meta_##FUNC(struct sk_buff *skb, \
struct tcf_pkt_info *info, struct meta_value *v, \
struct meta_obj *dst, int *err)

Definition at line 102 of file em_meta.c.

#define META_FUNC (   name)    { .get = meta_##name }

Definition at line 483 of file em_meta.c.

#define META_ID (   name)    TCF_META_ID_##name

Definition at line 482 of file em_meta.c.

#define SKIP_NONLOCAL (   skb)
Value:
if (unlikely(skb->sk == NULL)) { \
*err = -1; \
return; \
}

Definition at line 274 of file em_meta.c.

Function Documentation

META_COLLECTOR ( int_random  )

Definition at line 110 of file em_meta.c.

META_COLLECTOR ( int_loadavg_0  )

Definition at line 123 of file em_meta.c.

META_COLLECTOR ( int_loadavg_1  )

Definition at line 128 of file em_meta.c.

META_COLLECTOR ( int_loadavg_2  )

Definition at line 133 of file em_meta.c.

META_COLLECTOR ( int_dev  )

Definition at line 161 of file em_meta.c.

META_COLLECTOR ( var_dev  )

Definition at line 166 of file em_meta.c.

META_COLLECTOR ( int_vlan_tag  )

Definition at line 175 of file em_meta.c.

META_COLLECTOR ( int_priority  )

Definition at line 192 of file em_meta.c.

META_COLLECTOR ( int_protocol  )

Definition at line 197 of file em_meta.c.

META_COLLECTOR ( int_pkttype  )

Definition at line 203 of file em_meta.c.

META_COLLECTOR ( int_pktlen  )

Definition at line 208 of file em_meta.c.

META_COLLECTOR ( int_datalen  )

Definition at line 213 of file em_meta.c.

META_COLLECTOR ( int_maclen  )

Definition at line 218 of file em_meta.c.

META_COLLECTOR ( int_rxhash  )

Definition at line 223 of file em_meta.c.

META_COLLECTOR ( int_mark  )

Definition at line 232 of file em_meta.c.

META_COLLECTOR ( int_tcindex  )

Definition at line 241 of file em_meta.c.

META_COLLECTOR ( int_rtclassid  )

Definition at line 250 of file em_meta.c.

META_COLLECTOR ( int_rtiif  )

Definition at line 262 of file em_meta.c.

META_COLLECTOR ( int_sk_family  )

Definition at line 280 of file em_meta.c.

META_COLLECTOR ( int_sk_state  )

Definition at line 286 of file em_meta.c.

META_COLLECTOR ( int_sk_reuse  )

Definition at line 292 of file em_meta.c.

META_COLLECTOR ( int_sk_bound_if  )

Definition at line 298 of file em_meta.c.

META_COLLECTOR ( var_sk_bound_if  )

Definition at line 305 of file em_meta.c.

META_COLLECTOR ( int_sk_refcnt  )

Definition at line 323 of file em_meta.c.

META_COLLECTOR ( int_sk_rcvbuf  )

Definition at line 329 of file em_meta.c.

META_COLLECTOR ( int_sk_shutdown  )

Definition at line 335 of file em_meta.c.

META_COLLECTOR ( int_sk_proto  )

Definition at line 341 of file em_meta.c.

META_COLLECTOR ( int_sk_type  )

Definition at line 347 of file em_meta.c.

META_COLLECTOR ( int_sk_rmem_alloc  )

Definition at line 353 of file em_meta.c.

META_COLLECTOR ( int_sk_wmem_alloc  )

Definition at line 359 of file em_meta.c.

META_COLLECTOR ( int_sk_omem_alloc  )

Definition at line 365 of file em_meta.c.

META_COLLECTOR ( int_sk_rcv_qlen  )

Definition at line 371 of file em_meta.c.

META_COLLECTOR ( int_sk_snd_qlen  )

Definition at line 377 of file em_meta.c.

META_COLLECTOR ( int_sk_wmem_queued  )

Definition at line 383 of file em_meta.c.

META_COLLECTOR ( int_sk_fwd_alloc  )

Definition at line 389 of file em_meta.c.

META_COLLECTOR ( int_sk_sndbuf  )

Definition at line 395 of file em_meta.c.

META_COLLECTOR ( int_sk_alloc  )

Definition at line 401 of file em_meta.c.

META_COLLECTOR ( int_sk_hash  )

Definition at line 407 of file em_meta.c.

META_COLLECTOR ( int_sk_lingertime  )

Definition at line 413 of file em_meta.c.

META_COLLECTOR ( int_sk_err_qlen  )

Definition at line 419 of file em_meta.c.

META_COLLECTOR ( int_sk_ack_bl  )

Definition at line 425 of file em_meta.c.

META_COLLECTOR ( int_sk_max_ack_bl  )

Definition at line 431 of file em_meta.c.

META_COLLECTOR ( int_sk_prio  )

Definition at line 437 of file em_meta.c.

META_COLLECTOR ( int_sk_rcvlowat  )

Definition at line 443 of file em_meta.c.

META_COLLECTOR ( int_sk_rcvtimeo  )

Definition at line 449 of file em_meta.c.

META_COLLECTOR ( int_sk_sndtimeo  )

Definition at line 455 of file em_meta.c.

META_COLLECTOR ( int_sk_sendmsg_off  )

Definition at line 461 of file em_meta.c.

META_COLLECTOR ( int_sk_write_pend  )

Definition at line 467 of file em_meta.c.

MODULE_ALIAS_TCF_EMATCH ( TCF_EM_META  )
module_exit ( exit_em_meta  )
module_init ( init_em_meta  )
MODULE_LICENSE ( "GPL"  )