tc_mirred.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef __LINUX_TC_MIR_H
  2. #define __LINUX_TC_MIR_H
  3. #include <linux/pkt_cls.h>
  4. #define TCA_ACT_MIRRED 8
  5. #define TCA_EGRESS_REDIR 1  /* packet redirect to EGRESS*/
  6. #define TCA_EGRESS_MIRROR 2 /* mirror packet to EGRESS */
  7. #define TCA_INGRESS_REDIR 3  /* packet redirect to INGRESS*/
  8. #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */
  9.                                                                                 
  10. struct tc_mirred
  11. {
  12. tc_gen;
  13. int                     eaction;   /* one of IN/EGRESS_MIRROR/REDIR */
  14. __u32                   ifindex;  /* ifindex of egress port */
  15. };
  16.                                                                                 
  17. enum
  18. {
  19. TCA_MIRRED_UNSPEC,
  20. TCA_MIRRED_TM,
  21. TCA_MIRRED_PARMS,
  22. __TCA_MIRRED_MAX
  23. };
  24. #define TCA_MIRRED_MAX (__TCA_MIRRED_MAX - 1)
  25.                                                                                 
  26. #endif