Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __NET_TC_MIR_H |
| 2 | #define __NET_TC_MIR_H |
| 3 | |
| 4 | #include <net/act_api.h> |
| 5 | |
David S. Miller | e9ce1cd | 2006-08-21 23:54:55 -0700 | [diff] [blame] | 6 | struct tcf_mirred { |
| 7 | struct tcf_common common; |
| 8 | int tcfm_eaction; |
| 9 | int tcfm_ifindex; |
| 10 | int tcfm_ok_push; |
| 11 | struct net_device *tcfm_dev; |
stephen hemminger | 3b87956 | 2010-07-22 18:45:04 +0000 | [diff] [blame] | 12 | struct list_head tcfm_list; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | }; |
David S. Miller | e9ce1cd | 2006-08-21 23:54:55 -0700 | [diff] [blame] | 14 | #define to_mirred(pc) \ |
| 15 | container_of(pc, struct tcf_mirred, common) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
David S. Miller | e9ce1cd | 2006-08-21 23:54:55 -0700 | [diff] [blame] | 17 | #endif /* __NET_TC_MIR_H */ |