diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/tc_act/tc_mirred.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'include/linux/tc_act/tc_mirred.h')
-rw-r--r-- | include/linux/tc_act/tc_mirred.h | 27 |
1 files changed, 27 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 00000000000..7561750e8fd --- /dev/null +++ b/include/linux/tc_act/tc_mirred.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef __LINUX_TC_MIR_H | ||
2 | #define __LINUX_TC_MIR_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include <linux/pkt_cls.h> | ||
6 | |||
7 | #define TCA_ACT_MIRRED 8 | ||
8 | #define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ | ||
9 | #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ | ||
10 | #define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ | ||
11 | #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ | ||
12 | |||
13 | struct tc_mirred { | ||
14 | tc_gen; | ||
15 | int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ | ||
16 | __u32 ifindex; /* ifindex of egress port */ | ||
17 | }; | ||
18 | |||
19 | enum { | ||
20 | TCA_MIRRED_UNSPEC, | ||
21 | TCA_MIRRED_TM, | ||
22 | TCA_MIRRED_PARMS, | ||
23 | __TCA_MIRRED_MAX | ||
24 | }; | ||
25 | #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) | ||
26 | |||
27 | #endif | ||