tc_em_cmp.h 351 B

12345678910111213141516171819202122232425
  1. #ifndef __LINUX_TC_EM_CMP_H
  2. #define __LINUX_TC_EM_CMP_H
  3. #include <linux/types.h>
  4. #include <linux/pkt_cls.h>
  5. struct tcf_em_cmp {
  6. __u32 val;
  7. __u32 mask;
  8. __u16 off;
  9. __u8 align:4;
  10. __u8 flags:4;
  11. __u8 layer:4;
  12. __u8 opnd:4;
  13. };
  14. enum {
  15. TCF_EM_ALIGN_U8 = 1,
  16. TCF_EM_ALIGN_U16 = 2,
  17. TCF_EM_ALIGN_U32 = 4
  18. };
  19. #define TCF_EM_CMP_TRANS 1
  20. #endif