tc_em_text.h 321 B

12345678910111213141516171819
  1. #ifndef __LINUX_TC_EM_TEXT_H
  2. #define __LINUX_TC_EM_TEXT_H
  3. #include <linux/types.h>
  4. #include <linux/pkt_cls.h>
  5. #define TC_EM_TEXT_ALGOSIZ 16
  6. struct tcf_em_text {
  7. char algo[TC_EM_TEXT_ALGOSIZ];
  8. __u16 from_offset;
  9. __u16 to_offset;
  10. __u16 pattern_len;
  11. __u8 from_layer:4;
  12. __u8 to_layer:4;
  13. __u8 pad;
  14. };
  15. #endif