• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __LINUX_TC_EM_META_H
8 #define __LINUX_TC_EM_META_H
9 #include <linux/types.h>
10 #include <linux/pkt_cls.h>
11 enum {
12   TCA_EM_META_UNSPEC,
13   TCA_EM_META_HDR,
14   TCA_EM_META_LVALUE,
15   TCA_EM_META_RVALUE,
16   __TCA_EM_META_MAX
17 };
18 #define TCA_EM_META_MAX (__TCA_EM_META_MAX - 1)
19 struct tcf_meta_val {
20   __u16 kind;
21   __u8 shift;
22   __u8 op;
23 };
24 #define TCF_META_TYPE_MASK (0xf << 12)
25 #define TCF_META_TYPE(kind) (((kind) & TCF_META_TYPE_MASK) >> 12)
26 #define TCF_META_ID_MASK 0x7ff
27 #define TCF_META_ID(kind) ((kind) & TCF_META_ID_MASK)
28 enum {
29   TCF_META_TYPE_VAR,
30   TCF_META_TYPE_INT,
31   __TCF_META_TYPE_MAX
32 };
33 #define TCF_META_TYPE_MAX (__TCF_META_TYPE_MAX - 1)
34 enum {
35   TCF_META_ID_VALUE,
36   TCF_META_ID_RANDOM,
37   TCF_META_ID_LOADAVG_0,
38   TCF_META_ID_LOADAVG_1,
39   TCF_META_ID_LOADAVG_2,
40   TCF_META_ID_DEV,
41   TCF_META_ID_PRIORITY,
42   TCF_META_ID_PROTOCOL,
43   TCF_META_ID_PKTTYPE,
44   TCF_META_ID_PKTLEN,
45   TCF_META_ID_DATALEN,
46   TCF_META_ID_MACLEN,
47   TCF_META_ID_NFMARK,
48   TCF_META_ID_TCINDEX,
49   TCF_META_ID_RTCLASSID,
50   TCF_META_ID_RTIIF,
51   TCF_META_ID_SK_FAMILY,
52   TCF_META_ID_SK_STATE,
53   TCF_META_ID_SK_REUSE,
54   TCF_META_ID_SK_BOUND_IF,
55   TCF_META_ID_SK_REFCNT,
56   TCF_META_ID_SK_SHUTDOWN,
57   TCF_META_ID_SK_PROTO,
58   TCF_META_ID_SK_TYPE,
59   TCF_META_ID_SK_RCVBUF,
60   TCF_META_ID_SK_RMEM_ALLOC,
61   TCF_META_ID_SK_WMEM_ALLOC,
62   TCF_META_ID_SK_OMEM_ALLOC,
63   TCF_META_ID_SK_WMEM_QUEUED,
64   TCF_META_ID_SK_RCV_QLEN,
65   TCF_META_ID_SK_SND_QLEN,
66   TCF_META_ID_SK_ERR_QLEN,
67   TCF_META_ID_SK_FORWARD_ALLOCS,
68   TCF_META_ID_SK_SNDBUF,
69   TCF_META_ID_SK_ALLOCS,
70   __TCF_META_ID_SK_ROUTE_CAPS,
71   TCF_META_ID_SK_HASH,
72   TCF_META_ID_SK_LINGERTIME,
73   TCF_META_ID_SK_ACK_BACKLOG,
74   TCF_META_ID_SK_MAX_ACK_BACKLOG,
75   TCF_META_ID_SK_PRIO,
76   TCF_META_ID_SK_RCVLOWAT,
77   TCF_META_ID_SK_RCVTIMEO,
78   TCF_META_ID_SK_SNDTIMEO,
79   TCF_META_ID_SK_SENDMSG_OFF,
80   TCF_META_ID_SK_WRITE_PENDING,
81   TCF_META_ID_VLAN_TAG,
82   TCF_META_ID_RXHASH,
83   __TCF_META_ID_MAX
84 };
85 #define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1)
86 struct tcf_meta_hdr {
87   struct tcf_meta_val left;
88   struct tcf_meta_val right;
89 };
90 #endif
91