summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2010-11-03 01:08:33 +0100
committerThomas GraF <tgraf@suug.ch>2010-11-03 01:09:28 +0100
commitd95a4193f3ecd13bc53c8126109d7bd662b5d13d (patch)
tree415930ef1e5f6137faf5207308ba673deb5ca671 /lib
parentdf36c25bbfb864d8ecf040163e91bbf363f0bf93 (diff)
downloadlibnl-d95a4193f3ecd13bc53c8126109d7bd662b5d13d.tar.gz
ematch/meta: id definitions
Diffstat (limited to 'lib')
-rw-r--r--lib/route/cls/ematch/meta.c45
1 files changed, 44 insertions, 1 deletions
diff --git a/lib/route/cls/ematch/meta.c b/lib/route/cls/ematch/meta.c
index 5752c75..eeddc17 100644
--- a/lib/route/cls/ematch/meta.c
+++ b/lib/route/cls/ematch/meta.c
@@ -165,8 +165,51 @@ static int meta_parse(struct rtnl_ematch *e, void *data, size_t len)
}
static struct trans_tbl meta_int[] = {
- __ADD(TCF_META_ID_VLAN_TAG, vlan)
+ __ADD(TCF_META_ID_RANDOM, random)
+ __ADD(TCF_META_ID_LOADAVG_0, loadavg_0)
+ __ADD(TCF_META_ID_LOADAVG_1, loadavg_1)
+ __ADD(TCF_META_ID_LOADAVG_2, loadavg_2)
+ __ADD(TCF_META_ID_DEV, dev)
+ __ADD(TCF_META_ID_PRIORITY, prio)
+ __ADD(TCF_META_ID_PROTOCOL, proto)
+ __ADD(TCF_META_ID_PKTTYPE, pkttype)
__ADD(TCF_META_ID_PKTLEN, pktlen)
+ __ADD(TCF_META_ID_DATALEN, datalen)
+ __ADD(TCF_META_ID_MACLEN, maclen)
+ __ADD(TCF_META_ID_NFMARK, mark)
+ __ADD(TCF_META_ID_TCINDEX, tcindex)
+ __ADD(TCF_META_ID_RTCLASSID, rtclassid)
+ __ADD(TCF_META_ID_RTIIF, rtiif)
+ __ADD(TCF_META_ID_SK_FAMILY, sk_family)
+ __ADD(TCF_META_ID_SK_STATE, sk_state)
+ __ADD(TCF_META_ID_SK_REUSE, sk_reuse)
+ __ADD(TCF_META_ID_SK_REFCNT, sk_refcnt)
+ __ADD(TCF_META_ID_SK_RCVBUF, sk_rcvbuf)
+ __ADD(TCF_META_ID_SK_SNDBUF, sk_sndbuf)
+ __ADD(TCF_META_ID_SK_SHUTDOWN, sk_sutdown)
+ __ADD(TCF_META_ID_SK_PROTO, sk_proto)
+ __ADD(TCF_META_ID_SK_TYPE, sk_type)
+ __ADD(TCF_META_ID_SK_RMEM_ALLOC, sk_rmem_alloc)
+ __ADD(TCF_META_ID_SK_WMEM_ALLOC, sk_wmem_alloc)
+ __ADD(TCF_META_ID_SK_WMEM_QUEUED, sk_wmem_queued)
+ __ADD(TCF_META_ID_SK_RCV_QLEN, sk_rcv_qlen)
+ __ADD(TCF_META_ID_SK_SND_QLEN, sk_snd_qlen)
+ __ADD(TCF_META_ID_SK_ERR_QLEN, sk_err_qlen)
+ __ADD(TCF_META_ID_SK_FORWARD_ALLOCS, sk_forward_allocs)
+ __ADD(TCF_META_ID_SK_ALLOCS, sk_allocs)
+ __ADD(TCF_META_ID_SK_ROUTE_CAPS, sk_route_caps)
+ __ADD(TCF_META_ID_SK_HASH, sk_hash)
+ __ADD(TCF_META_ID_SK_LINGERTIME, sk_lingertime)
+ __ADD(TCF_META_ID_SK_ACK_BACKLOG, sk_ack_backlog)
+ __ADD(TCF_META_ID_SK_MAX_ACK_BACKLOG, sk_max_ack_backlog)
+ __ADD(TCF_META_ID_SK_PRIO, sk_prio)
+ __ADD(TCF_META_ID_SK_RCVLOWAT, sk_rcvlowat)
+ __ADD(TCF_META_ID_SK_RCVTIMEO, sk_rcvtimeo)
+ __ADD(TCF_META_ID_SK_SNDTIMEO, sk_sndtimeo)
+ __ADD(TCF_META_ID_SK_SENDMSG_OFF, sk_sendmsg_off)
+ __ADD(TCF_META_ID_SK_WRITE_PENDING, sk_write_pending)
+ __ADD(TCF_META_ID_VLAN_TAG, vlan)
+ __ADD(TCF_META_ID_RXHASH, rxhash)
};
static char *int_id2str(int id, char *buf, size_t size)