diff options
Diffstat (limited to 'include/linux/tc_act/tc_mirred.h')
-rw-r--r-- | include/linux/tc_act/tc_mirred.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/tc_act/tc_mirred.h b/include/linux/tc_act/tc_mirred.h new file mode 100644 index 000000000000..71d63409d568 --- /dev/null +++ b/include/linux/tc_act/tc_mirred.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #ifndef __LINUX_TC_MIR_H | ||
2 | #define __LINUX_TC_MIR_H | ||
3 | |||
4 | #include <linux/pkt_cls.h> | ||
5 | |||
6 | #define TCA_ACT_MIRRED 8 | ||
7 | #define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ | ||
8 | #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ | ||
9 | #define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ | ||
10 | #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ | ||
11 | |||
12 | struct tc_mirred | ||
13 | { | ||
14 | tc_gen; | ||
15 | int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ | ||
16 | __u32 ifindex; /* ifindex of egress port */ | ||
17 | }; | ||
18 | |||
19 | enum | ||
20 | { | ||
21 | TCA_MIRRED_UNSPEC, | ||
22 | TCA_MIRRED_TM, | ||
23 | TCA_MIRRED_PARMS, | ||
24 | __TCA_MIRRED_MAX | ||
25 | }; | ||
26 | #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) | ||
27 | |||
28 | #endif | ||