]>
Commit | Line | Data |
---|---|---|
6f52b16c | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
1da177e4 LT |
2 | #ifndef __LINUX_TC_MIR_H |
3 | #define __LINUX_TC_MIR_H | |
4 | ||
9c536d27 | 5 | #include <linux/types.h> |
1da177e4 LT |
6 | #include <linux/pkt_cls.h> |
7 | ||
8 | #define TCA_ACT_MIRRED 8 | |
9 | #define TCA_EGRESS_REDIR 1 /* packet redirect to EGRESS*/ | |
10 | #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */ | |
11 | #define TCA_INGRESS_REDIR 3 /* packet redirect to INGRESS*/ | |
12 | #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ | |
13 | ||
d94d9fee | 14 | struct tc_mirred { |
1da177e4 LT |
15 | tc_gen; |
16 | int eaction; /* one of IN/EGRESS_MIRROR/REDIR */ | |
17 | __u32 ifindex; /* ifindex of egress port */ | |
18 | }; | |
19 | ||
d94d9fee | 20 | enum { |
1da177e4 LT |
21 | TCA_MIRRED_UNSPEC, |
22 | TCA_MIRRED_TM, | |
23 | TCA_MIRRED_PARMS, | |
9854518e | 24 | TCA_MIRRED_PAD, |
1da177e4 LT |
25 | __TCA_MIRRED_MAX |
26 | }; | |
27 | #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1) | |
28 | ||
29 | #endif |