summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/xt_TCPOPTSTRIP.h
blob: 2db543214ff59b57b644c5abc1163086ef8ca732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _XT_TCPOPTSTRIP_H
#define _XT_TCPOPTSTRIP_H

#define tcpoptstrip_set_bit(bmap, idx) \
	(bmap[(idx) >> 5] |= 1U << (idx & 31))
#define tcpoptstrip_test_bit(bmap, idx) \
	(((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)

struct xt_tcpoptstrip_target_info {
	u_int32_t strip_bmap[8];
};

#endif /* _XT_TCPOPTSTRIP_H */