blob: 7561750e8fd69b92e1e1a4929e25ec8709d74ce2 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_TC_MIR_H
2#define __LINUX_TC_MIR_H
3
Jaswinder Singh Rajput9c536d22009-01-30 20:10:44 +05304#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#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
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080013struct tc_mirred {
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 tc_gen;
15 int eaction; /* one of IN/EGRESS_MIRROR/REDIR */
16 __u32 ifindex; /* ifindex of egress port */
17};
18
Eric Dumazetd94d9fe2009-11-04 09:50:58 -080019enum {
Linus Torvalds1da177e2005-04-16 15:20:36 -070020 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