logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

tc_mirred.h (749B)


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