Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_TC_EM_CMP_H |
| 2 | #define __LINUX_TC_EM_CMP_H |
| 3 | |
Jaswinder Singh Rajput | ba3a51e | 2009-01-30 20:12:01 +0530 | [diff] [blame] | 4 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <linux/pkt_cls.h> |
| 6 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 7 | struct tcf_em_cmp { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | __u32 val; |
| 9 | __u32 mask; |
| 10 | __u16 off; |
| 11 | __u8 align:4; |
| 12 | __u8 flags:4; |
| 13 | __u8 layer:4; |
| 14 | __u8 opnd:4; |
| 15 | }; |
| 16 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 17 | enum { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | TCF_EM_ALIGN_U8 = 1, |
| 19 | TCF_EM_ALIGN_U16 = 2, |
| 20 | TCF_EM_ALIGN_U32 = 4 |
| 21 | }; |
| 22 | |
| 23 | #define TCF_EM_CMP_TRANS 1 |
| 24 | |
| 25 | #endif |