1
2
3
4
5
6
7
8
9
10
11#ifndef __LINUX_TC_TUNNEL_KEY_H
12#define __LINUX_TC_TUNNEL_KEY_H
13
14#include <linux/pkt_cls.h>
15
16#define TCA_ACT_TUNNEL_KEY 17
17
18#define TCA_TUNNEL_KEY_ACT_SET 1
19#define TCA_TUNNEL_KEY_ACT_RELEASE 2
20
21struct tc_tunnel_key {
22 tc_gen;
23 int t_action;
24};
25
26enum {
27 TCA_TUNNEL_KEY_UNSPEC,
28 TCA_TUNNEL_KEY_TM,
29 TCA_TUNNEL_KEY_PARMS,
30 TCA_TUNNEL_KEY_ENC_IPV4_SRC,
31 TCA_TUNNEL_KEY_ENC_IPV4_DST,
32 TCA_TUNNEL_KEY_ENC_IPV6_SRC,
33 TCA_TUNNEL_KEY_ENC_IPV6_DST,
34 TCA_TUNNEL_KEY_ENC_KEY_ID,
35 TCA_TUNNEL_KEY_PAD,
36 TCA_TUNNEL_KEY_ENC_DST_PORT,
37 TCA_TUNNEL_KEY_NO_CSUM,
38 __TCA_TUNNEL_KEY_MAX,
39};
40
41#define TCA_TUNNEL_KEY_MAX (__TCA_TUNNEL_KEY_MAX - 1)
42
43#endif
44