Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 2 | #ifndef _XT_TCPOPTSTRIP_H |
| 3 | #define _XT_TCPOPTSTRIP_H |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | |
| 7 | #define tcpoptstrip_set_bit(bmap, idx) \ |
| 8 | (bmap[(idx) >> 5] |= 1U << (idx & 31)) |
| 9 | #define tcpoptstrip_test_bit(bmap, idx) \ |
| 10 | (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0) |
| 11 | |
| 12 | struct xt_tcpoptstrip_target_info { |
| 13 | __u32 strip_bmap[8]; |
| 14 | }; |
| 15 | |
| 16 | #endif /* _XT_TCPOPTSTRIP_H */ |