Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 1 | #ifndef _XT_TCPOPTSTRIP_H |
| 2 | #define _XT_TCPOPTSTRIP_H |
| 3 | |
Jan Engelhardt | 06988b0 | 2011-01-20 17:50:17 +0100 | [diff] [blame] | 4 | #include <linux/types.h> |
| 5 | |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 6 | #define tcpoptstrip_set_bit(bmap, idx) \ |
| 7 | (bmap[(idx) >> 5] |= 1U << (idx & 31)) |
| 8 | #define tcpoptstrip_test_bit(bmap, idx) \ |
| 9 | (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0) |
| 10 | |
| 11 | struct xt_tcpoptstrip_target_info { |
Jan Engelhardt | f1c7222 | 2010-12-15 22:58:53 +0100 | [diff] [blame] | 12 | __u32 strip_bmap[8]; |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | #endif /* _XT_TCPOPTSTRIP_H */ |